git branch --set-upstream-to=upstream/branchname
git fetch upstream -n
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # run after updating: source ~/.bashrc | |
| # some lazy ls aliases | |
| alias ll='ls -alF' | |
| alias la='ls -A' | |
| alias l='ls -CF' | |
| # Alias definitions. | |
| # You may want to put all your additions into a separate file like |
| # Go to package repo page | |
| npm repo $package | |
| # Go to package home page | |
| npm home $package | |
| # List outdated packages | |
| npm outdated | |
| # Remove extraneous packages |
| # Your snippets | |
| # | |
| # Atom snippets allow you to enter a simple prefix in the editor and hit tab to | |
| # expand the prefix into a larger code block with templated values. | |
| # | |
| # You can create a new snippet in this file by typing "snip" and then hitting | |
| # tab. | |
| # | |
| # An example CoffeeScript snippet to expand log to console.log: | |
| # |
| // Place your settings in this file to overwrite the default settings | |
| { | |
| "editor.tabSize": 2, | |
| "editor.insertSpaces": true, | |
| "editor.wordWrap": "off", | |
| "editor.detectIndentation": false, | |
| "files.associations": { | |
| "*.css.erb": "css", | |
| "*.ejs": "html", | |
| "*.pac": "javascript", |
| # CSS | |
| # add missing semicolon to last property | |
| ([^;])$(\n}) | |
| $1;$2 | |
| # Shorten hex color values | |
| #([\da-f])\1([\da-f])\2([\da-f])\3\b | |
| #$1$2$3 |
| { | |
| "Print to console": { | |
| "prefix": "conl", | |
| "body": [ | |
| "console.log($1);" | |
| ], | |
| "description": "Log output to console" | |
| }, | |
| "Print info to console": { | |
| "prefix": "coni", |
| #!/bin/sh | |
| FILE_COUNT=$(git status | grep 'modified:' | wc -l) | |
| if [ $FILE_COUNT -gt 100 ] ; then | |
| echo "File count is 100+, skipping pre-commit validation" | |
| exit 0 | |
| fi | |
| FAILED=0 |
| docker image rm --force $(docker image ls | awk '$1 == "<none>" {print $3}') |
| console.log('E-Learning Boost Activated'); | |
| let initialized = false; | |
| function getAnswerWindow() { | |
| let win = window; | |
| while (win.window.length > 0) { | |
| win = win.window[1]; | |
| } | |
| return win; |