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
require 'net/http' | |
require 'uri' | |
def isLive?(url) | |
uri = URI.parse(url) | |
response = nil | |
Net::HTTP.start(uri.host, uri.port) { |http| | |
response = http.head(uri.path.size > 0 ? uri.path : "/") | |
} | |
return response.code == "200" |
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
require 'isaac' | |
require 'lastfm' | |
api_key = "api_keyhere" | |
api_secret = "api_secret here" | |
lastfm = Lastfm.new(api_key, api_secret) | |
token = lastfm.auth.get_token | |
#puts api_key | |
#puts token | |
puts "http://www.last.fm/api/auth/?api_key=#{api_key}&token=#{token}" | |
sleep 10.0 |
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 | |
$tnumbertnumber=`echo $1 | cut -c32-` | |
mkdir $tnumber | |
cd $tnumber | |
while : | |
do | |
wget -e robots=off -E -nd -nc -np -r -k -H -D images.4chan.org,thumbs.4chan.org $1 | |
cp $tnumber.html index.html | |
sleep 10 | |
done |
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 | |
#Twitter tweeter by http://360percents.com | |
#v1.1 on May 12th 2011 | |
#Edited by TheShadowFog | |
PROGRAM='cmus' | |
#DIRECTORY="$HOME/log" | |
username="email" | |
password="password" |
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 | |
############# SYSTEM MONITOR ###################### | |
#Made by Gregory12z | |
#UNFINISHED. Only shows minimal info. ALSO... Next version will use ncurses. | |
#Enjoy. | |
#This program is free software: you can redistribute it and/or modify | |
#it under the terms of the GNU General Public License as published by | |
#the Free Software Foundation, either version 3 of the License, or | |
#(at your option) any later version. |
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
#cmus and ttytter must be installed | |
#Full twitter intergration coming soon to script. (No need for ttytter) | |
PROGRAM='cmus' | |
#DIRECTORY="$HOME/log" | |
if ps ax | grep -v grep | grep $PROGRAM > /dev/null | |
then | |
echo "CMUS is running" | |
else | |
echo "cmus is not running! Start cmus and then try again." | |
exit 1 |
NewerOlder