Skip to content

Instantly share code, notes, and snippets.

View justinhernandez's full-sized avatar
🐙

Justin Hernandez justinhernandez

🐙
View GitHub Profile
# Video: http://rubyhoedown2008.confreaks.com/08-chris-wanstrath-keynote.html
Hi everyone, I'm Chris Wanstrath.
When Jeremy asked me to come talk, I said yes. Hell yes. Immediately. But
then I took a few moments and thought, Wait, why? Why me? What am I supposed
to say that's interesting? Something about Ruby, perhaps. Maybe the
future of it. The future of something, at least. That sounds
keynote-y.
@justinhernandez
justinhernandez / nginx compile conf
Created July 28, 2009 21:59
compile passenger for nginx
--conf-path=/etc/nginx/conf.d/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-http_ssl_module --http-client-body-temp-path=/var/lib/nginx/body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi
./configure --with-fpm --with-libevent --with-mcrypt --enable-mbstring --with-mysql --with-openssl --with-mysql=/usr/local/mysql --with-mysql-sock=/tmp/mysql.sock --with-curl --with-gd --with-zlib --with-iconv --with-jpeg-dir=/usr/lib --with-mhash --with-mysqli --enable-xml --with-curl --with-openssl --with-zlib --with-png-dir=/usr/lib --enable-zip --with-bz2 --with-config-file-path=/etc/php5/cgi --with-config-file-scan-dir=/etc/php5/cgi/conf.d --enable-pcntl
sudo chmod 755 /home/git/repositories/gitosis-admin.git/hooks/post-update
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3EE67F3D0FF405B2; gpg --export --armor 3EE67F3D0FF405B2 | sudo apt-key add -
sudo sed -i 's/jaunty/karmic/g' /etc/apt/sources.list; sudo aptitude update && sudo aptitude dist-upgrade
<?php if (@$errors): ?>
<ul class="errors">
<?php foreach ($errors as $field => $error): ?>
<li><?php echo $error; ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
"Effective people are not problem-minded; they're opportunity minded. They feed opportunities and starve problems." -Stephen R. Covey
"Don't think of problems as difficulties. Think of them as opportunities for action." - Unknown
While one person hesitates because he feels inferior, the other is busy making mistakes and becoming superior. - Henry C. Link
Innovation distinguishes between a leader and a follower. - Steve Jobs
The art of leadership is saying no, not yes. It is very easy to say yes. - Tony Blair
@justinhernandez
justinhernandez / gist:630770
Created October 17, 2010 11:39
pretty array export for var_export
function pretty_var($myArray){
print str_replace(array("\n"," "),array("<br>","&nbsp;"), var_export($myArray,true))."<br>";
}
# ${HOME} will be replaced by JVM user.home system property
netbeans_default_userdir="${HOME}/.netbeans/6.9"
# Options used by NetBeans launcher by default, can be overridden by explicit
# command line switches:
netbeans_default_options="-J-server -J-Xverify:none -J-d64 -J-Xss2m -J-Xms256m -J-Xmx512m -J-XX:PermSize=32m -J-XX:MaxPermSize=512m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.opengl=true -J-Dsun.java2d.d3d=false -J-Dawt.nativeDoubleBuffering=true -J-XX:+UseAdaptiveSizePolicy -J-Djava.net.preferIPv4Stack=true -J-XX:+AggressiveOpts -J-XX:+AggressiveHeap"
# Note that a default -Xmx is selected for you automatically.
# You can find this value in var/log/messages.log file in your userdir.
# The automatically selected value can be overridden by specifying -J-Xmx here
# or on the command line.