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/perl -w | |
use strict; | |
use LWP::Simple; | |
my $url = $ARGV[0]; | |
die"URL Needed\n" unless defined $url; | |
$url =~ /[\?&]v=(.{11})/g; | |
my $video_id = $1; | |
my $info_url = "http://www.youtube.com/get_video_info?video_id=" . $video_id; | |
my $content = get $info_url; |
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/python | |
import sys, urllib, urllib2, random, string | |
def random_image(): | |
chars = string.ascii_uppercase + string.ascii_lowercase + string.digits | |
rand_img = ''.join(random.choice(chars) for x in range(5)) | |
base = 'http://i.imgur.com/%s.png' % rand_img | |
return base |
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/python | |
# -*- coding: UTF-8 -*- | |
string = "something something something" | |
key = "cheese" | |
def crypt(string, key): | |
data = '' | |
for i in range(len(string)): |
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/python | |
import re, sys, bencode, binascii, urllib, hashlib | |
tracker = "http://swiftler.com:6969/scrape?info_hash=" | |
def usage(): | |
print """ | |
Usage: ./scrape [OPTION] [FILE/HASH] | |
-h Use a hash to get seeders, leechers and completed downloads |
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
Xft.autohint: 0 | |
Xft.antialias: 1 | |
Xft.hinting: true | |
Xft.hintstyle: hintslight | |
Xft.dpi: 96 | |
Xft.rgba: rgb | |
Xft.lcdfilter: lcddefault | |
URxvt*termName:rxvt-256color | |
URxvt*transparent: true |
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
$(function() { | |
var scntDiv = $('#p_scents'); | |
var i = $('#p_scents p').size() + 1; | |
$('body').on('click', '#addScnt', function() { | |
$('<p><label for="p_scnts"><input type="text" id="p_scnt" name="p_scnt_' + i +'" value="" /></label> <a href="#" id="remScnt">Remove</a></p>').appendTo(scntDiv); | |
i++; | |
return false; | |
}); | |
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
@echo off | |
set username= | |
AT > NUL | |
IF %ERRORLEVEL% EQU 0 ( | |
goto start | |
) ELSE ( | |
ECHO This scripts needs to be run with Administrator privileges | |
goto end | |
) |
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
REM Do not change these until you have ran the script for a first time | |
set currentlogin=ral | |
set olduser=esguser | |
set newuser=CORP.USER | |
if NOT "%olduser%" == "esguser" (GOTO scan) | |
mkdir C:\m | |
xcopy \\srv-mir-fp02\ral$\1\* C:\m\ /E | |
REM AV Installation -------------------------------------------------------------------------------- |
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
<?php | |
$pages = 20; | |
$current_page = (int) $_GET['p']; | |
if ($current_page > 3) { | |
echo "1 ... "; | |
} | |
for($i=$current_page-3;$i<=$current_page+3;$i++) { |
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/python | |
import base64 | |
import requests | |
skyrouter = "10.0.0.2" | |
userpass = "admin:sky" | |
# http://en.wikipedia.org/wiki/Basic_access_authentication#Client_side | |
b64userpass = base64.b64encode(userpass) |
OlderNewer