Useful things
This is a list of free and useful things on the net, along with quick fixes to peculiar problems.
Tutorials & References
- Learn to Code HTML & CSS by Shay Howe is a seemingly up-to-date resource. I use this to refresh my HTML5 and CSS3 knowledge.
- Markdown Cheatsheet by Adam Pritchard
Linux
- Unless you’re using a wildly popular distro (Ubuntu, Fedora), your fonts probably don’t look all that good. Fortunately, I’ve found a quick fix on StackExchange. Create or replace the contents of your
~/.fonts.conf
with the following configuration:<?xml version='1.0'?> <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> <fontconfig> <match target="font"> <edit mode="assign" name="rgba"> <const>rgb</const> </edit> </match> <match target="font"> <edit mode="assign" name="hinting"> <bool>true</bool> </edit> </match> <match target="font"> <edit mode="assign" name="hintstyle"> <const>hintslight</const> </edit> </match> <match target="font"> <edit mode="assign" name="antialias"> <bool>true</bool> </edit> </match> <match target="font"> <edit mode="assign" name="lcdfilter"> <const>lcddefault</const> </edit> </match> </fontconfig>
Don’t forget to restart your browser and DE afterwards. I’ve successfully tested this on Slackware 14.2.
- Firefox won’t play H.264-encoded video on Slacwkware 14.2 by default. Facebook and Netflix deliver video this way. There’s an easy fix for this–either compile
ffmpeg
from Slackbuilds withX264=yes
or use AlienBob’s package which already has this enabled.
Other Tips
- A way to make
ctrl+`
toggle between the terminal and the current editor in Visual Studio Code:// Toggle between terminal and editor focus { "key": "ctrl+`", "command": "workbench.action.terminal.focus"}, { "key": "ctrl+`", "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus"}