Skip to content

Instantly share code, notes, and snippets.

View levifig's full-sized avatar
👀

Levi Figueira levifig

👀
View GitHub Profile
I'm firewall'ed, but I obviously open port 22 for remote login!
I found out getpwnam() is a PERL script
Never knew you could run scripts at login prompt... OpenSSHd hole? :S
WTF !?!?
SCARY!
############
8/3/09 10:47:55 PM com.apple.SecurityServer[22] getpwnam() failed for user kevin, creating invalid credential
8/3/09 10:47:55 PM com.apple.SecurityServer[22] getpwnam() failed for user kevin, creating invalid credential
/* `HTML5 Reset
----------------------------------------------------------------------------------------------------*/
a,
abbr,
address,
article,
aside,
audio,
b,
@levifig
levifig / Apache Tweaking
Created February 16, 2010 00:58 — forked from fcoury/Apache Tweaking
Apache Tweaking
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 180
#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On
@levifig
levifig / RPS-SPEC
Created April 10, 2010 05:54 — forked from jarodl/RPS-SPEC
= Ruby Packaging Standard
The aim of this document is to specify a common structure of how a
Ruby package distributed as source (that is, but not limited to,
development directories, version-controlled repositories, .tar.gz,
Gems, ...) should conform to.
(See RFC 2119 for use of MUST, SHOULD, SHALL.)
== Library files
@levifig
levifig / gist:463511
Created July 4, 2010 15:09 — forked from fortuity/gist:452364
Application generator template modifies a Rails app to use Mongoid, Devise and jQuery
# Application Generator Template
# Modifies a Rails app to use Mongoid, Devise, jQuery, Haml
# Usage: rails new app_name -m http://gist.github.com/raw/452364/gistfile1.txt
# More info: http://github.com/fortuity/rails3-mongoid-devise/
# If you are customizing this template, you can use any methods provided by Thor::Actions
# http://rdoc.info/rdoc/wycats/thor/blob/f939a3e8a854616784cac1dcff04ef4f3ee5f7ff/Thor/Actions.html
# and Rails::Generators::Actions
# http://github.com/rails/rails/blob/master/railties/lib/rails/generators/actions.rb
@levifig
levifig / gist:610643
Created October 4, 2010 23:21
Goes through the links in my <nav> and compares their own 'href' with the current URL.
We couldn’t find that file to show.
@levifig
levifig / gist:610978
Created October 5, 2010 04:10
Goes through the links in my <nav> and compares their own 'href' with the current URL.
// Goes through the links in my navigation and compares their own 'href' with the current URL
// Really handy and I'm sure I'll reuse hence posting it here. ;)
// Thank you to Paul Irish (#jquery @ freenode.net) for the indexOf recommendation! ;)
$('nav ul li a').each(function() {
if (location.pathname.indexOf($(this).attr('href')) > -1 ) {
$(this).addClass('active');
}
});
levifig@aragorn ~ % brew install mysql
==> Downloading http://downloads.mysql.com/archives/mysql-5.5/mysql-5.5.12.tar.gz
File already downloaded in /Users/levifig/Library/Caches/Homebrew
==> Downloading patches
==> Patching
patching file scripts/mysqld_safe.sh
Hunk #1 succeeded at 555 (offset 172 lines).
patching file scripts/mysql_config.sh
Hunk #1 succeeded at 137 (offset 5 lines).
==> cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/mysql/5.5.12 -DMYSQL_DATADIR=/usr/local/var/mysql -DINSTALL_MANDIR=/usr/local/Cellar/my
levifig@aragorn ~/Workspace/SYSTEM/SRC/mysql-5.5.14 % make
Scanning dependencies of target INFO_BIN
[ 0%] Built target INFO_BIN
Scanning dependencies of target INFO_SRC
[ 0%] Built target INFO_SRC
Scanning dependencies of target abi_check
[ 0%] Built target abi_check
[ 1%] Generating common.h
[ 1%] Generating help.c
[ 1%] Generating help.h
@levifig
levifig / rbenv-install-system-wide.sh
Created December 1, 2011 06:53
rbenv install and system wide install on Ubuntu 11.10
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential
apt-get -y install git-core
# Install rbenv
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv
# Add rbenv to the path: