Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View random-robbie's full-sized avatar
💭
Hacking!

Robbie random-robbie

💭
Hacking!
View GitHub Profile
@random-robbie
random-robbie / replaceimages.js
Created July 27, 2015 15:24
Replaces all images on page with a skull and cross bones.
function replaceSrc()
{
var images = document.getElementsByTagName('img');
for(var i = 0; i < images.length; i++)
{
var img = images[i];
@random-robbie
random-robbie / rickroll.js
Created July 27, 2015 15:28
RickRoll for insering in to a JS file
document.write('<div id="video" style="text-align:center;">');
document.write('<embed src="http://www.dafk.net/what/lol.swf" hidden="true"></embed>');
document.write('</div>');
window.onmouseover=function() {
load();
}
function timeout() {
setTimeout('load()',1000);
(function(){
function rotate(degrees)
{
$('html').css({
'-webkit-transform':'rotate(-' + degrees + 'deg)',
'-moz-transform':'rotate(-' + degrees + 'deg)',
'-ms-transform':'rotate(-' + degrees + 'deg)',
'-o-transform':'rotate(-' + degrees + 'deg)',
'transform':'rotate(-' + degrees + 'deg)',
<html><head>
<br>
<p align="center"> <img src="http://2.bp.blogspot.com/-ZBx9Q8mei1k/VXaA--ZVAJI/AAAAAAAAMYE/q4Jsvap532s/s1600/opisis.jpg"> </p>
</br>
view-source:http://www.tellypass.com/pac/annie-3000
@random-robbie
random-robbie / info
Created September 9, 2015 14:33
create a self SSL cert
openssl req -x509 -sha256 -nodes -days 365000 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt
@random-robbie
random-robbie / new_gist_file.md
Last active September 16, 2015 13:46 — forked from mcdongWang/sublimeLicense.md
Sublime Text 注册码

—– BEGIN LICENSE —–
Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F
942194A6 02396E98 E62C9979 4BB979FE
91424C9D A45400BF F6747D88 2FB88078
90F5CC94 1CDC92DC 8457107A F151657B
http_port 9961
http_access allow manager localhost
http_access allow all
http_access deny manager
via off
forwarded_for off
cache_dir diskd /tmp/ 600 16 256
request_header_access Allow allow all
request_header_access Authorization allow all
@random-robbie
random-robbie / parseproxy.php
Created September 23, 2015 14:27
Parse Proxy Auto Conf
<?php
$list = file_get_contents("http://www.tellypass.com/pac/annie-2315");
function scrape_between($data, $start, $end){
$data = stristr($data, $start); // Stripping all data from before $start
$data = substr($data, strlen($start)); // Stripping $start
$stop = stripos($data, $end); // Getting the position of the $end of the data to scrape
$data = substr($data, 0, $stop); // Stripping all data from after and including the $end of the data to scrape
return $data; // Returning the scraped data from the function
## send request back to apache1 ##
location / {
proxy_pass http://$host$uri;
proxy_set_header Accept-Encoding "";
proxy_redirect off;
proxy_buffering off;
proxy_ssl_verify off;
proxy_ssl_server_name on;
proxy_set_header Host $host;
resolver 8.8.8.8;