Skip to content

Instantly share code, notes, and snippets.

View weirdpercent's full-sized avatar

Drew Prentice weirdpercent

View GitHub Profile
@cletusw
cletusw / .eslintrc
Last active February 29, 2024 20:24
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 25, 2024 06:23
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@persand
persand / gist:1355592
Created November 10, 2011 18:02
Bash script for gist.github.com/x URL:s -> git.io
function shist() {
if [ -n "$2" ]; then
curl -i http://git.io -F url=https://gist.github.com/"$1" -F code="$2";
else
curl -i http://git.io -F url=https://gist.github.com/"$1";
fi
}
@persand
persand / gist:1355589
Created November 10, 2011 18:01
Bash script for github.com/x URL:s -> git.io
function shit() {
if [ -n "$2" ]; then
curl -i http://git.io -F url=https://github.com/"$1" -F code="$2";
else
curl -i http://git.io -F url=https://github.com/"$1";
fi
}