Skip to content

Instantly share code, notes, and snippets.


AJ Farkas ajfarkas

View GitHub Profile
benfrain /
Last active Nov 25, 2019
Set Defaults for OS X DOT files (download to root, rename as '.set-defaults' and then type 'source .set-defaults' fro Terminal)
# Sets reasonable OS X defaults.
# Starting point was:
# BF says: Download this file to root, rename as '.set-defaults' (e.g. remove the file extension) and then type 'source .set-defaults' from Terminal. Once done, restart and your golden.
# Disable the sound effects on boot
sudo nvram SystemAudioVolume=%00
danburzo /
Last active Jul 29, 2021
Get all event listeners on the page in Google Chrome
jadaradix / yosemite-subl
Last active Jan 25, 2022
Fix Sublime's "subl" command on OS X Yosemite.
View yosemite-subl
rm /usr/local/bin/subl;
sudo ln -s "/Applications/Sublime" /usr/local/bin/subl;
barnes7td /
Last active Jul 9, 2022
Sublime Terminal Setup

Setup Terminal for Sublime Shorcut "subl":

Open terminal and type:

1. Create a directory at ~/bin:

mkdir ~/bin

2. Copy sublime executable to your ~/bin directory:

cletusw / .eslintrc
Last active Aug 4, 2022
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).
View .eslintrc
"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
mandiwise / Count lines in Git repo
Last active Sep 22, 2022
A command to calculate lines of code in all tracked files in a Git repo
View Count lines in Git repo
// Reference:
$ git ls-files | xargs wc -l