This file contains hidden or 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 config --global init.defaultBranch main | |
git config --global merge.conflictstyle zdiff3 | |
git config --global commit.verbose true | |
git config --global rerere.enabled true | |
git config --global core.pager delta | |
git config --global diff.algorithm histogram | |
git config --global transfer.fsckobjects true | |
git config --global fetch.fsckobjects true | |
git config --global receive.fsckobjects true | |
git config --global status.submoduleSummary true |
This file contains hidden or 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
import Controller from '@ember/controller'; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
} |
This file contains hidden or 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
import Controller from '@ember/controller'; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
} |
This file contains hidden or 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
import Controller from '@ember/controller'; | |
export default class ApplicationController extends Controller { | |
queryParams = [ | |
"vtype", | |
]; | |
appName = 'Ember Twiddle'; | |
vtype = 0; | |
} |
This file contains hidden or 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
import Controller from '@ember/controller'; | |
import { tracked } from "@glimmer/tracking"; | |
import { action } from "@ember/object"; | |
class Parameters() | |
{ | |
@tracked param1 = 1; | |
@tracked param2; | |
} | |
export default class ApplicationController extends Controller { |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
net.inet.tcp.rfc1323=1 | |
kern.ipc.maxsockbuf=16777216 | |
net.inet.tcp.sendspace=1048576 | |
net.inet.tcp.recvspace=1048576 | |
net.inet.tcp.slowstart_flightsize=4 |
This file contains hidden or 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
# Make some possibly destructive commands more interactive. | |
alias rm='rm -i' | |
alias mv='mv -i' | |
alias cp='cp -i' | |
# Add some easy shortcuts for formatted directory listings and add a touch of color. | |
alias ll='ls -lF' | |
alias la='ls -alF' | |
alias ls='ls -F' |
This file contains hidden or 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
#!/bin/sh | |
red='\x1B[0;31m' | |
green='\x1B[0;32m' | |
NC='\x1B[0m' # No Color | |
underline='\033[4m' | |
git stash -q --keep-index | |
# Test |
This file contains hidden or 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
#!/bin/sh | |
# | |
# Based on http://blog.bartoszmajsak.com/blog/2012/11/07/lazy-developers-toolbox-number-1-prepend-git-commit-messages/ | |
# | |
BRANCH_NAME=$(git branch 2>/dev/null | grep -e ^* | tr -d ' *') | |
if [ -n "$BRANCH_NAME" ] && [ "$BRANCH_NAME" != "master" ]; then | |
echo "[$BRANCH_NAME] $(cat $1)" > $1 | |
fi |
NewerOlder