Skip to content

Instantly share code, notes, and snippets.

Avatar

Sam Faragalla sam2de

  • North Carolina
View GitHub Profile
View gist:468078828b5ef661a98ff09702bac11e
for t in $(drush sqlq "show tables"); do echo $(drush sqlq "SELECT '$t' n, COUNT(*) r FROM $t") ; done
View Macos commands
# Add MS code to path https://code.visualstudio.com/docs/setup/mac
cat << EOF >> ~/.zshrc
# Add Visual Studio Code (code)
export PATH="/Applications/Visual Studio Code.app/Contents/Resources/app/bin:$PATH"
EOF
==================
# Add Sublime text to path https://code.visualstudio.com/docs/setup/mac
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
@sam2de
sam2de / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console