This file contains hidden or 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
# rake.rb | |
# setup >(rake your_task pc=a_one_of_sacrifice p=where_to_agony) 1> errIO.txt | |
task :hell_grinder do | |
begin | |
ruby "death_test.rb " | |
rescue | |
p "ring ring ring..." | |
ruby "death_agony.rb " + ENV['pc'] + " " + ENV['p'] | |
end | |
end |
This file contains hidden or 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 -Ku | |
# mooding.rb | |
require 'rubygems' | |
require 'win32ole' | |
require 'twitter' | |
require 'kconv' | |
$KCODE = 'UTF8' | |
@oTwitter = Twitter::Client.new |
This file contains hidden or 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
% mutt (enter) | |
Then when see mutt,Type 'c' | |
#####Starting Interactive with mutt######## | |
Open mailbox ('?') for list):imaps://imap.gmail.com:993(enter) | |
your account or id:[email protected](enter) | |
Passwd:YoursPasswd(enter) |
This file contains hidden or 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
$label_url = "http://www.blogger.com/feeds/#{$userID}/blogs/#{$blogID}?alt=json-in-script&callback=listLabels" | |
class BlogLabels | |
def get_labels | |
result = URLFetch.get($label_url) | |
result_headless = result.gsub("listLabels(",'') | |
pure_result = result_headless.gsub(");",'') | |
JSON.parse(pure_result)['entry']['category'] | |
end |
This file contains hidden or 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
response = URLFetch.get($label_url) | |
result = response.to_s | |
result_headless = result.gsub("listLabels(",'') | |
pure_result = result_headless.gsub(");",'') | |
json_to_yaml = YAML::load(pure_result)['entry']['category'] |
This file contains hidden or 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
cd some/src/openswan-2.4.15 | |
make KERNELSRC=/usr/src/kernel-source<yo linux> programs module | |
make KERNELSRC=/usr/src/kernel-source<yo linux> install minstall |
This file contains hidden or 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
cd /usr/src | |
wget http://www.openswan.org/download/openswan-2.4.15.tar.gz | |
wget http://www.openswan.org/download/openswan-2.4.15.kernel-2.4-klips.patch.gz | |
tar -xvjf kernel-source<yo linux> | |
cd kernel-source<yo linux> | |
cp -r ../kernel-headers-<yo linux>/* . | |
patch -p1 < some/patch/openswan-2.4.15.kernel-2.4-klips.patch | |
make oldconfig or make menuconfig | |
make-kpkg clean | |
make-kpkg --revision klips.rc03 kernel-image modules_image |
This file contains hidden or 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
cd /tmp | |
wget http://downloads.howtoforge.com/files/yaird_0.0.12-8bpo1_i386.deb | |
dpkg -i yaird_0.0.12-8bpo1_i386.deb |
This file contains hidden or 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 -xv | |
rm -f ${INITRDDIR}/sbin/{vgscan,vgchange} | |
cp {,${INITRDDIR}}/sbin/lvmiopversion | |
for FILE in /lib/lvm-10/*; do | |
cp ${FILE} ${INITRDDIR}/${FILE} | |
ln -s lvmiopversion ${INITRDDIR}/sbin/$(basename ${FILE}) | |
done |