#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync
| #!/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" |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| [alias] | |
| verbs = !git log --pretty=format:'%s' | cut -d \" \" -f 1 | sort | uniq -c | sort -nr |
#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync
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 |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Movable and Re-sizable Raphael JS Shape</title> | |
| </head> | |
| <body> | |
| <div id="paper"></div> |
| package main | |
| import ( | |
| "bytes" | |
| "encoding/hex" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net" |
| #!/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 |
| package main | |
| import ( | |
| "fmt" | |
| "net/textproto" | |
| "regexp" | |
| "strings" | |
| "os" | |
| ) |
| 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; |