Skip to content

Instantly share code, notes, and snippets.

View lazzarello's full-sized avatar

Lee Azzarello lazzarello

View GitHub Profile
@lazzarello
lazzarello / test.sh
Created March 28, 2014 06:44
hello world
#!/bin/bash
echo "Hello World!"
@lazzarello
lazzarello / gist:9907438
Last active August 29, 2015 13:57
dark souls ladle only build
Pick Sorcerer, for magic weapon to cast on ladle, as it gets broken really easy with a durability of 10. Take human effigy as gift. Use the dagger or sorcery at first beacuse the ladle has a base strength of 6 and the class starts with 3. Kill hippos because we need souls to get resins to buff the ladle because it does damage even when it is broken. Get bonfire ascetic and burn it at the first bonefire in Heide castle so you can cheese Dragon Rider twice for moar souls to level up. Reinforce ladle to +3. First Heide knight can fall off, near the bonefire for souls, second can fall for Sublime Bone Dust.
Go to no man's wharf and but magic weapon from the sorcerer dude. Get a fragrant branch of yore, unpetrify the pyro lady so you can buy charcoal resin. Go to second bonefire in forest of giants and talk to undead merchant, but the blacksmith key, talk to her so she goes back to maluja and sells gold pine resin.
You will need a lot of repair powder and the repair spell.
@lazzarello
lazzarello / keybase.md
Created June 12, 2014 23:56
i wrote this so i'm proof

Keybase proof

I hereby claim:

  • I am lazzarello on github.
  • I am pizza (https://keybase.io/pizza) on keybase.
  • I have a public key whose fingerprint is D16F 04E9 2868 8169 B640 88D5 A84B F48A 12CA 3765

To claim this, I am signing this object:

apt-cache depends mysql-server-5.5 | grep Depends
# some shell crap to parse this into a list to pass to apt-get
apt-get install -y mysql-client-5.5 libdbi-perl perl libc6 libgcc1 libstdc++6 zlib1g debconf psmisc passwd lsb-base mysql-server-core-5.5 initscripts mysql-common adduser debconf heirloom-mailx libhtml-template-perl
apt-get -d mysql-server-5.5
dpkg --unpack /var/cache/apt/archives/mysql-server-5.5_5.5.38-0+wheezy1_amd64.deb
# do your crazy configuration stuff here
dpkg --configure mysql-server-5.5
require 'time'
require 'json'
(ENV.fetch("OHURI") and ENV.fetch("OHAUTH"))
min_time = Time.new(2015,05,13)
# This will automatically transform valid JSON into a Ruby data type, in this case an array of hashes. USEFUL!
all_servers = JSON.parse(`openhosting -j servers info`)
# The "type" key for a server object is misleading. Versions of the API (which
@lazzarello
lazzarello / sounbds_and_emotions.sh
Created March 31, 2009 16:10
record sounds and emotions radio show to an mp3
#!/bin/sh
filename="sounds_and_emotions-`date +%d-%m-%Y`.mp3"
dumpfile="stream.dump"
mplayer="/usr/bin/mplayer"
mplayer_args="-dumpaudio"
wget="/usr/bin/wget"
wget_args="-O - -q"
url="http://wm.streampower.be/fmbrussel/webradio/sounds.mp3"
match_key="Ref1="
ref=`${wget} ${wget_args} ${url} | grep ${match_key} | sed "s/${match_key}//"`
(in /usr/local/src/chef)
rake package
(in /usr/local/src/chef/chef)
rake package
(in /usr/local/src/chef/chef-server-slice)
rake package
(in /usr/local/src/chef/chef-server)
rake aborted!
no such file to load -- chef
/usr/local/src/chef/chef-server/Rakefile:8
~/src/chef$ rake gem
(in /home/lee/src/chef)
rake package
(in /home/lee/src/chef/chef)
rake package
(in /home/lee/src/chef/chef-server-slice)
mkdir -p pkg
Successfully built RubyGem
Name: chef-server-slice
Version: 0.5.7
INFO: Creating template[/etc/sv/stompserver/log/run] at /etc/sv/stompserver/log/run
INFO: Setting mode to 755 for template[/etc/sv/stompserver/log/run]
DEBUG: Processing link[/etc/init.d/stompserver]
DEBUG: link[/etc/init.d/stompserver] using Chef::Provider::Link
DEBUG: Processing link[/etc/service/stompserver]
DEBUG: link[/etc/service/stompserver] using Chef::Provider::Link
INFO: Creating a symbolic link from /etc/sv/stompserver -> /etc/service/stompserver for link[/etc/service/stompserver]
DEBUG: Executing ln -nfs /etc/sv/stompserver /etc/service/stompserver
DEBUG: ---- Begin output of ln -nfs /etc/sv/stompserver /etc/service/stompserver ----
DEBUG: ---- End output of ln -nfs /etc/sv/stompserver /etc/service/stompserver ----
INFO: Creating directory[/etc/sv/stompserver] at /etc/sv/stompserver
INFO: Setting mode to 755 for directory[/etc/sv/stompserver]
INFO: Creating directory[/etc/sv/stompserver/log] at /etc/sv/stompserver/log
INFO: Setting mode to 755 for directory[/etc/sv/stompserver/log]
INFO: Creating directory[/etc/sv/stompserver/log/main] at /etc/sv/stompserver/log/main
INFO: Setting mode to 755 for directory[/etc/sv/stompserver/log/main]
INFO: Creating template[/etc/sv/stompserver/run] at /etc/sv/stompserver/run
INFO: Setting mode to 755 for template[/etc/sv/stompserver/run]
INFO: Creating template[/etc/sv/stompserver/log/run] at /etc/sv/stompserver/log/run
INFO: Setting mode to 755 for template[/etc/sv/stompserver/log/run]