Skip to content

Instantly share code, notes, and snippets.

Avatar

AJ Farkas ajfarkas

View GitHub Profile
@cletusw
cletusw / .eslintrc
Last active Aug 6, 2021
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
{
// 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
@mandiwise
mandiwise / Count lines in Git repo
Last active Oct 8, 2021
A command to calculate lines of code in all tracked files in a Git repo
View Count lines in Git repo
// Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository
$ git ls-files | xargs wc -l
@jadaradix
jadaradix / yosemite-subl
Last active Feb 15, 2021
Fix Sublime's "subl" command on OS X Yosemite.
View yosemite-subl
rm /usr/local/bin/subl;
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl;
@danburzo
danburzo / README.md
Last active Jul 29, 2021
Get all event listeners on the page in Google Chrome
View README.md
@benfrain
benfrain / .set-defaults.sh
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)
View .set-defaults.sh
# Sets reasonable OS X defaults.
# Starting point was: https://github.com/holman/dotfiles/blob/master/osx/set-defaults.sh
#
#
#
# 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
@barnes7td
barnes7td / sublime_setup.md
Last active Aug 18, 2021
Sublime Terminal Setup
View sublime_setup.md

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: