- run terminal commands from atom
- vagrant actions [ db snapshot, db import, magento debug on/off]
- open key folders (BOOKMARKS)
- dropdown terminal
- open current in file exploer
- manage projects config
- beautify - formatting
This file contains 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
# Machine currently playing goes into sleep mode during playback | |
# A simple curl request to see if this machine is currently active | |
# If true reset wake timer and set timer to run again at t-1 wake timer | |
# Hooks: Run script at spotify application launch and run at machine wake | |
# https://developer.spotify.com/web-api/endpoint-reference/ | |
# ref: https://developer.spotify.com/web-api/console/get-user-player/ | |
# example: | |
curl -X GET "https://api.spotify.com/v1/me/player" -H "Accept: application/json" -H "Authorization: Bearer <API-KEY>" |
This file contains 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
/***************************************************************************/ | |
// Vanilla Javascript Data Gathering | |
// Used to collect data without using a framework or library tools | |
// TODO: Get all X on a page (img url, a href, script src etc) | |
// REF: https://drafts.csswg.org/cssom/ | |
// GET ALL IDS ON PAGE | |
function getAllIds() { |
This file contains 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
regexLib = { | |
multiLineCComments: a("/\\*.*?\\*/", "gs"), | |
singleLineCComments: /\/\/.*$/gm, | |
singleLinePerlComments: /#.*$/gm, | |
doubleQuotedString: /"([^\\"\n]|\\.)*"/g, | |
singleQuotedString: /'([^\\'\n]|\\.)*'/g, | |
multiLineDoubleQuotedString: a('"([^\\\\"]|\\\\.)*"', "gs"), | |
multiLineSingleQuotedString: a("'([^\\\\']|\\\\.)*'", "gs"), | |
xmlComments: a("(<|<)!--f.*?--(>|>)", "gs"), | |
url: /\w+:\/\/[\w-.\/?%&=:@;#]*/g, |
This file contains 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
# .editorconfig (not found) |
This file contains 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
# COUNT FILES IN SUB DIRECTORIES | |
find . -maxdepth 1 -mindepth 1 -type d | while read dir; do | |
printf "%-25.25s : " "$dir" | |
find "$dir" -type f | wc -l | |
done | |
Backtick is a customizable command command pallete for chrome letting you run your own javascript snippets easily in a live browsing session.
To createa a command:
-
Create a new Gist with a
command.js
andcommand.json
file, or simply fork this one. -
Write your JavaScript in
command.js
. This will be injected into and executed on the page the user is currently on when they run it.
This file contains 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
// A SCRIPT TO SUMMARIZE DATA ABOUT CSS BEING GENERATED BY NPM SPECIFICITY GRAPH | |
// https://www.npmjs.com/package/specificity-graph | |
// arry stats helpers. | |
//https://gist.github.com/Daniel-Hug/7273430 | |
var arr = { | |
max: function(array) { | |
return Math.max.apply(null, array); | |
}, |
This file contains 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
<i>1</i> | |
<i>2</i> | |
<i>3</i> | |
<i>4</i> | |
<i>5</i> | |
<i>6</i> |
Full tutorial: http://hofmannsven.com/2013/laboratory/wordpress-admin-ui/
OlderNewer