This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# based on script at <http://gohugo.io/tutorials/github_pages_blog/> | |
echo -e "\033[1mDeploying updates to username.github.io...\033[0m" | |
# go to project folder | |
cd ~/path/ | |
# build the project. | |
hugo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">JRN-EBO notes and weblog</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="JackNicholas.github.io" property="cc:attributionName" rel="cc:attributionURL">Jack Nicholas</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="JackNicholas.github.io" rel="dct:source">JackNicholas.github.io</a>. | |
JRN-EBO notes and weblog by Jack Nicholas is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. | |
Based on a work at JackNicholas.github.io. | |
http://creativecommons.org/choose/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Images and Icons # | |
#################### | |
*.png | |
*.jpg | |
*.gif | |
*.tiff | |
*.ico | |
# Fonts # | |
######### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shortcuts | |
git config --global alias.co checkout | |
git config --global alias.br branch | |
git config --global alias.ci commit | |
git config --global alias.st status | |
basic set up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can test command line prompts with commands like | |
export PS1="\W \u \$ “ | |
(then save to .bashrc or .bash_profile if want it permanently) | |
Make sure that path is up to date. | |
export PATH=/usr/local/bin:$PATH | |
The script and commands to add a coloured branch name to the prompt: Save this to .bashrc or .bash_profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set up git in local | |
$ cd into-your-app-root-folder | |
$ git init | |
$ git add . | |
$ git commit -m "initial commit" (or using my shortcut, git ci --all -m "initial commit") | |
# set up heroku remote | |
$ heroku create | |
Creating shrouded-reaches-5937... done, stack is cedar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Images and Icons # | |
#################### | |
*.png | |
*.jpg | |
*.gif | |
*.tiff | |
*.ico | |
# Fonts # | |
######### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Go to ST menu bar | |
* Application menu | |
* sub menu Preferences | |
* browse packages | |
* go to folder Default | |
* open file Main.sublime-menu. | |
* search for menu item |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create a keyboard shortcut in sublime text for a specific file | |
Open the command palette, search for "Preferences: Key bindings - User", open it and add this code to it: | |
{ | |
{ "keys": ["ctrl+alt+0"], "command": "open_file", "args": {"file": "/path/to/your/file.txt"} } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --stat | |
the --stat option prints below each commit entry a list of modified files, how many files were changed, and how many lines in those files were added and removed |
NewerOlder