Skip to content

Instantly share code, notes, and snippets.

View andxyz's full-sized avatar
:octocat:
ship it

Andrew Stevens andxyz

:octocat:
ship it
View GitHub Profile
@andxyz
andxyz / chrome-insecure.sh
Last active December 23, 2015 12:59
~/bin/chrome-insecure for osx
#!/bin/bash
#
# see https://github.com/gruntjs/grunt-contrib-watch/pull/197
# some info about redirecting the output http://www.xaprb.com/blog/2006/06/06/what-does-devnull-21-mean/
#
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --allow-running-insecure-content --ignore-certificate-errors > /dev/null 2>&1
@andxyz
andxyz / markdown-autolink-st2.md
Created January 22, 2014 22:48
Add urlize to Sublimetext2 - Markdown Preview
@andxyz
andxyz / stopMysql.sh
Created March 6, 2014 15:39
stopMysql.sh
# /bin/sh
/Applications/MAMP/Library/bin/mysqladmin -u root -proot --socket=/Applications/MAMP/tmp/mysql/mysql.sock shutdown
@andxyz
andxyz / startMysql.sh
Created March 6, 2014 15:39
startMysql.sh
# /bin/sh
/Applications/MAMP/Library/bin/mysqld_safe --port=8889 --socket=/Applications/MAMP/tmp/mysql/mysql.sock --lower_case_table_names=0 --pid-file=/Applications/MAMP/tmp/mysql/mysql.pid --log-error=/Applications/MAMP/logs/mysql_error_log &
@andxyz
andxyz / installed-crap.txt
Last active October 26, 2015 06:26
some stuff I've installed over the past months
~/Downloads/_apps$ tree
.
├── 360ControllerInstall_0.14_unofficial.dmg
├── AX88772C_772B_772A_760_772_Macintosh_10.5_to_10.10_Driver_Installer_v2.4.0_20141215.zip
├── Adium_1.5.10.dmg
├── Afloat-2.4.1_10.9_x86-64.zip
├── Afloat.bundle
│   └── Contents
│   ├── Afloat Scripting.app
│   │   └── Contents
# tips http://wiki.nginx.org/Pitfalls
#
server {
listen 80;
server_name www.andxyz.com;
rewrite ^ http://andxyz.com$request_uri? permanent;
}
server {
@andxyz
andxyz / zsh-topten-commandline.sh
Created March 10, 2014 15:01
zsh top ten commandline
#!/bin/bash
# history -99999 | awk '{print $2}' | sort | uniq -c | sort -rn | head -20 # ttopten1
2909 git
537 curl
358 cd
244 brew
198 ls
185 rm
178 subl
@andxyz
andxyz / sass-alpha-opacity issue
Created April 8, 2014 20:05
allowing sass to compile strange ms filter:
sass alpha(opacity=0) issues
libsass notes https://github.com/hcatlin/libsass/issues/154
nice workaround https://github.com/hcatlin/libsass/issues/72
.flex-direction-nav .flex-disabled {
opacity: 0!important;
filter: unquote("alpha(opacity=0)");
cursor: default;
}