Skip to content

Instantly share code, notes, and snippets.

@steve-ross
steve-ross / hideFiles.fish
Created August 3, 2016 18:19
fish function hide hidden files fish function
function hideFiles
defaults write com.apple.finder AppleShowAllFiles NO
killall Finder /System/Library/CoreServices/Finder.app $argv
end
@steve-ross
steve-ross / .eslintrc.json
Created July 8, 2016 15:00
eslintrc.json
{
"env": {
"browser": true,
"meteor": true,
"node": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module",
@steve-ross
steve-ross / n98-magerun.phar.fish
Last active May 17, 2016 17:50
n98-magerun completions for fish
# Installation:
# This assumes that "n98-magerun.phar" is in your path!
# Copy to ~/.config/fish/completions/n98-magerun.phar.fish
# open new or restart existing shell session
for cmd in (n98-magerun.phar --raw --no-ansi list | sed "s/[[:space:]].*//g");
complete -f -c n98-magerun.phar -a $cmd;
end
@steve-ross
steve-ross / gist:3899678ad3491f3d570f7a4475bfbd39
Created April 22, 2016 19:51
Meteor Rebuild time on 2011 MacBook Pro 16GB RAM
=> Started your app.
=> App running at: http://localhost:3000
| (#3) Profiling: ProjectContext prepareProjectForBuild
|
| ProjectContext prepareProjectForBuild...........................527 ms (1)
| ├─ _initializeCatalog............................................46 ms (1)
| │ ├─ files.readFile 6 ms (16)
| │ ├─ files.exists 4 ms (9)
| │ ├─ runJavaScript package.js 3 ms (9)
# Aliases
alias m "meteor"
alias a "atom"
alias a. "atom ."
alias gst "git status"
alias gco "git checkout"
alias j "jump"
alias ef "atom ~/.config/fish/config.fish"
alias reload "source ~/.config/fish/config.fish"
alias ksd "sudo launchctl kickstart system/homebrew.mxcl.dnsmasq"
@steve-ross
steve-ross / n98-magerun.phar.fish
Created April 18, 2016 15:11
n98 magerun completions for fish
# Installation:
# This assumes that "n98-magerun.phar" is in your path!
# Copy to ~/.config/fish/completions/n98-magerun.phar.fish
# open new or restart existing shell session
for cmd in (n98-magerun.phar --raw --no-ansi list | sed "s/[[:space:]].*//g");
complete -f -c n98-magerun.phar -a $cmd;
end
@steve-ross
steve-ross / git-issue.fish
Created February 25, 2016 16:18
if you name your github branches ending in #123 this will open the issue on github (using hub)
function _git_branch_issue_number
echo (git symbolic-ref HEAD ^/dev/null | sed -e 's/.*#//')
end
function git-issue
set -l issue_number (_git_branch_issue_number)
git browse -- issues/$issue_number
end
[alias]
co = checkout
st = status
ci = commit
br = branch
df = diff
lg = log -p
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
<IfModule php5_module>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
<IfModule dir_module>
DirectoryIndex x index.html index.php index.cfm
</IfModule>
</IfModule>
SetEnv MAGE_IS_DEVELOPER_MODE=true
RewriteBase /
############################################
## uncomment these lines for CGI mode
## make sure to specify the correct cgi php binary file name
## it might be /cgi-bin/php-cgi
# Action php5-cgi /cgi-bin/php5-cgi
# AddHandler php5-cgi .php