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
{ | |
"neutral" : [ | |
{ | |
"gray" : { | |
"dark" : "#2F3634", | |
"light" : "#868688" | |
} | |
} | |
], | |
"data" : [ |
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
<?php | |
/** | |
* Get content by taxonomy | |
* Sorts in reverse-cron | |
* @param category {integer} the ID of the term we're pulling from | |
* @param postType {string, array} the post type(s) we're drawing from | |
* @param numberPosts {integer} the number of posts we'd like back | |
*/ |
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
<?php | |
/** | |
* Run w/in same directory as CSV | |
*/ | |
$file = fopen( dirname( __FILE__ ) . "/filename.csv", "r" ); | |
while( !feof( $file )){ | |
$line = fgetcsv( $file ); |
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
{ | |
"editor.fontSize": 16, | |
"editor.lineHeight": 36, | |
"editor.showFoldingControls": "always", | |
"git.enableSmartCommit": true, | |
"terminal.integrated.fontSize": 14, | |
"terminal.integrated.lineHeight": 2, | |
"workbench.iconTheme": "easy-icons", | |
"workbench.colorTheme": "Atom One Dark", | |
"window.zoomLevel": 0, |
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
# Auto deploy repo from Github to Amazon S3 bucket via Travis CI | |
# * Set env vars for ACCESS_KEY_ID and SECRET_ACCESS_KEY on Travis | |
# * Update `bucket.name` in `sync` command | |
# * Assumes your `publishDir` is the default (`public`) - if not update `sync` command | |
language: go | |
install: go get -v github.com/spf13/hugo | |
script: | |
- hugo | |
- python --version |
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
{ | |
"workbench.colorTheme": "One Dark Pro", | |
"editor.fontSize": 16, | |
"editor.fontFamily": "Menlo", | |
"editor.lineHeight": 36, | |
"window.zoomLevel": 0, | |
"git.enableSmartCommit": true, | |
"terminal.integrated.fontSize": 16, | |
"terminal.integrated.lineHeight": 2, | |
"terminal.integrated.cursorBlinking": true, |
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
# Git branch in prompt. | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " |
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
PHP_VERSION=`ls /Applications/MAMP/bin/php/ | sort -n | tail -1` | |
export PATH=/Applications/MAMP/bin/php/${PHP_VERSION}/bin:$PATH |
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
# Create a symlink to MAMP's mysql.sock where Drush is looking | |
ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock |
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
INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`) | |
VALUES ('newadmin', MD5('pass123'), 'firstname lastname', '[email protected]', '0'); | |
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) | |
VALUES (NULL, (Select max(id) FROM wp_users), 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}'); | |
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) | |
VALUES (NULL, (Select max(id) FROM wp_users), 'wp_user_level', '10'); |
NewerOlder