Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(` | |
[Security.Principal.WindowsBuiltInRole] "Administrator")) | |
{ | |
Write-Warning "You do not have Administrator rights to run this script!`nPlease re-run this script as an Administrator!" | |
Break | |
} | |
Write-Host "Hi Art! I will install your working environment." | |
$answer = Read-Host "Continue? (y/n)" | |
if($answer -eq "y"){ | |
Write-Host "Processing..." |
# Define a few colors for later use. The escaped brackets tell bash that they | |
# are non-printable and keep word-wrapping sane. | |
TXT_RED='\['`tput setaf 1`'\]' | |
TXT_GREEN='\['`tput setaf 2`'\]' | |
TXT_RESET='\['`tput sgr0`'\]' | |
# Build a prompt decorator if we're in a hg repo. The branch name is included | |
# in green if the branch is default, red otherwise. A symbol appears if the | |
# working directory is not clean. This uses Steve Losh's excellent hg-prompt |
{ | |
"cmd": ["pandoc.exe", "--to=html", "--output=$file.html", "$file"], | |
"selector": "source.md" | |
} |
new Migrate().Set(p => | |
{ | |
p.ConnectionString = connectionString; | |
p.SqlFilesDirectory = scriptsLocation; | |
p.EnvironmentName = environmentName; | |
p.Drop = dropDatabase; | |
p.RecoveryModeSimple = useSimpleRecoveryMode; | |
p.Restore = restore; | |
p.RestoreFromPath = restorePath; | |
p.RepositoryPath = repositoryPath; |
#!/bin/bash | |
declare -a SOLUTIONS=$(find . -name "*.sln") | |
declare -a PROJECTS=$(find . -name "*.csproj") | |
for PROJECT in ${PROJECTS[*]} | |
do | |
PROJECT_NAME=$(basename $PROJECT) | |
USED=0 |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
#!/bin/zsh | |
# Compatible with bash, just change "zsh" to "bash" | |
# First param: The folder that the original file is stored in | |
# Second param: The original image name | |
sips --resampleWidth 512 "${1}/${2}" --out "${1}/iTunesArtwork" | |
sips --resampleWidth 57 "${1}/${2}" --out "${1}/Icon.png" | |
sips --resampleWidth 114 "${1}/${2}" --out "${1}/Icon@2x.png" | |
sips --resampleWidth 29 "${1}/${2}" --out "${1}/Icon-Small.png" | |
sips --resampleWidth 58 "${1}/${2}" --out "${1}/Icon-Small@2x.png" |
* {} | |
tag {} | |
[attribute] {} | |
[attribute="value"] {} | |
.class {} |
Copy this file to: /Library/LaunchDaemons/fwd-80-to-3000.plist
and then reboot:
$ sudo -s
$ curl -L https://gist.github.com/TooTallNate/3372589/raw/ace6451e9e47f59550f12d09cb924a64531cfd1f/fwd-80-to-3000.plist > /Library/LaunchDaemons/fwd-80-to-3000.plist
$ reboot
<canvas class="c"></canvas> |