This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Colors ---------------------------------------------------------- | |
export TERM=xterm-color | |
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32' | |
export CLICOLOR=1 | |
alias ls='ls -G' # OS-X SPECIFIC - the -G command in OS-X is for colors, in Linux it's no groups | |
#alias ls='ls --color=auto' # For linux, etc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See following for more information: http://www.infinitered.com/blog/?p=19 | |
# Path ------------------------------------------------------------ | |
export PATH=/opt/local/bin:/opt/local/sbin:/usr/local/mysql/bin:$PATH # OS-X Specific, with MacPorts and MySQL installed | |
#export PATH=/opt/local/bin:/opt/local/sbin:$PATH # OS-X Specific, with MacPorts installed | |
if [ -d ~/bin ]; then | |
export PATH=:~/bin:$PATH # add your bin folder to the path, if you have it. It's a good place to add all your scripts | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
BUILD_URL='http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/' | |
update_google_chrome() { | |
get_latest_revision_number | |
download_latest_revision | |
extract_code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./smbldap-groupshow.pl group_name | grep memberUid | cut -d" " -f2 | sed 's/user_to_keep_in\|user2_to_keep_in//g' | tr -s "," | xargs -i ./smbldap-groupmod.pl -x {} group_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#fx-useradd uid "first name" "last name" | |
PATH='/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin' | |
SKEL_PATH="/homes/skeleton" | |
usage() { | |
cat <<EOT | |
Usage: ${CMD} login first_name last_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Ruby script to generate SSHA (Good for LDAP) | |
require 'sha1' | |
require 'base64' | |
hash = "{SSHA}"+Base64.encode64(Digest::SHA1.digest(ARGV[0]+'salt')+'salt').chomp! | |
puts 'userPassword: '+hash+"\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ruby on Rails Developer, Paris | |
describe "Ruby on Rails Developer" do | |
before do | |
me = Developer.new( | |
:name => 'Julien Blanchard', | |
:website => 'http://sideburns.eu', | |
:email => 'julien@sideburns.eu', | |
) | |
you = Company.new | |
job = Job.new(me, you, :title => "Ruby on Rails Developer", :location => "Paris") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/opt/ruby-enterprise/bin/ruby | |
# | |
# you need to install : | |
# ruby | |
# ruby-dev | |
# libopenssl-ruby libxml2-dev libxslt1-dev (ubuntu/debian) | |
# lsb_release package (named redhat-lsb on centos and fedora) | |
# rubygems : | |
## gem install uuidtools activeresource sysinfo nokogiri | |
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rvm install jruby | |
/Users/julien/.rvm/src/jruby-1.4.0 has already been extracted. | |
Building Nailgun | |
Error running 'builtin cd "/Users/julien/.rvm/src/jruby-1.4.0/tool/nailgun" && ./configure --prefix=/Users/julien/.rvm/rubies/jruby-1.4.0 && make ', please check /Users/julien/.rvm/log/jruby-1.4.0/nailgun.error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
julien@infmac02 ~ > rvm debug | |
rvm 0.1.3 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/] | |
system: | |
uname: "Darwin infmac02.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386" | |
ruby: | |
interpreter: "ruby" |
OlderNewer