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 / 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 &
# 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;
}
@andxyz
andxyz / pamplona.md
Created April 16, 2014 17:12
Pamplona

Pamplona

repo name ideas

  • github.com/andxyz/dream-of-electric-bulls
  • github.com/andxyz/bull-nightmare
@andxyz
andxyz / dixie-flatline.md
Last active August 29, 2015 13:59
dixie-flatline

I’m enjoying reading neuromancer again.


“You Know that Dixie Flatline’s dead?”

He nodded. “Heart, I heard.”

“You’ll be working with his construct.” She smiled. “Taught you the ropes, huh? Him and Quine. I know Quine, by the way. Real asshole.”

@andxyz
andxyz / going-all-php-mailer-on-a-wordpress-multisite.md
Last active August 29, 2015 14:00
going-all-php-mailer-on-a-wordpress-multisite
@andxyz
andxyz / markdown-autolink-st3.md
Created September 2, 2014 16:10
markdown-autolink-st3.md