This file contains hidden or 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
    
  
  
    
  | pv mydump.sql.gz | gunzip | mysql -u root -p dbname | 
  
    
      This file contains hidden or 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
    
  
  
    
  | def scrub_email(email): | |
| """ Takes an email address and masks the left side. [email protected] becomes t***@test.com """ | |
| user, domain = email.split('@') | |
| user = user[0].ljust(len(user), "*") | |
| return("{}@{}".format(user, domain)) | 
  
    
      This file contains hidden or 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
    
  
  
    
  | hdiutil makehybrid -o ~/Desktop/image.iso ~/path/to/folder/to/be/converted -iso -joliet | 
  
    
      This file contains hidden or 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'); | 
  
    
      This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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, |