If you have an issue comment / PR description on GitHub, it doesn't automatically get anchors / IDs that you could link to:
What I like to do is to add a visible #
character like this:
wget -O /tmp/YaHei.Consolas.1.12.zip https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/uigroupcode/YaHei.Consolas.1.12.zip | |
unzip /tmp/YaHei.Consolas.1.12.zip | |
sudo mkdir -p /usr/share/fonts/consolas | |
sudo mv YaHei.Consolas.1.12.ttf /usr/share/fonts/consolas/ | |
sudo chmod 644 /usr/share/fonts/consolas/YaHei.Consolas.1.12.ttf | |
cd /usr/share/fonts/consolas | |
sudo mkfontscale && sudo mkfontdir && sudo fc-cache -fv |
directions for getting windows 10 to work with virtualbox 5.2 based on this page
#!/bin/sh | |
if [ "$PYENV_VERSION" -ne "" ] | |
then | |
name=`pyenv version-name` | |
python=`pyenv which python` | |
else | |
name=`basename "$VIRTUAL_ENV"` | |
python="$VIRTUALENV/bin/python" | |
fi |
<!-- | |
Basic syntax highlight for Unity ShaderLab code in Project Rider. | |
v1.0 | |
Download this file and put it into your "filetypes" folder. | |
Windows Vista, 7, 8, 10: | |
<SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.Rider10\config\filetypes | |
Mac OS X: |
.force-show-scrollbars ::-webkit-scrollbar-track:vertical { | |
border-left: 1px solid #E7E7E7; | |
box-shadow: 1px 0 1px 0 #F6F6F6 inset, -1px 0 1px 0 #F6F6F6 inset; | |
} | |
.force-show-scrollbars ::-webkit-scrollbar-track:horizontal { | |
border-top: 1px solid #E7E7E7; | |
box-shadow: 0 1px 1px 0 #F6F6F6 inset, 0 -1px 1px 0 #F6F6F6 inset; | |
} |
git archive --format=tar.gz -o /tmp/my-repo.tar.gz --prefix=my-repo/ master
More detailed version: https://til.simonwillison.net/git/git-archive
#!/bin/bash | |
# Run once to patch `rcd` daemon after creating a backup. | |
# Run again to restore the backup and revert back to original functionality. | |
set -eu | |
if [ "$USER" != "root" ]; then | |
exec sudo "$0" "$@" | |
fi | |
rcd="/System/Library/CoreServices/rcd.app/Contents/MacOS/rcd" |