Skip to content

Instantly share code, notes, and snippets.

View Fluxflashor's full-sized avatar
💭
Hi

Robert Veitch Fluxflashor

💭
Hi
View GitHub Profile
import sys
from struct import unpack
class Replay:
def __init__(self, filename):
self.file = open(filename, "rb")
self.versionbytes = 4
self.headerbytes = 4
#!/usr/bin/perl -w
#
# check_raid nagios plugin
#
# Add plugins for different RAID tools to function check
#
#
# Version 1.0-1
# Written by Fixar ()
#
.arrow.down:hover:after {
position:absolute;
display:block;
z-index:1000;
padding:5px;
background-color:#FEF0F0;
border:1px solid #FF9185;
content:"Doesn't contribute to discussion.";
}
@Fluxflashor
Fluxflashor / gist:5067889
Created March 1, 2013 21:22
what the fuck reddit. HTTP 500 on css
.subscribers {
margin-left: 29px;
}
.subscribers .word {
display: none;
}
.subscribers .number::after {
content: " Swift Windsteeds";
}
.users-online .word {
import urllib2, html5lib, re, sys
from bs4 import BeautifulSoup
page = urllib2.urlopen('http://www.ft.dk/Folketinget/searchResults.aspx?letter=ALLE&pageSize=100').read()
soup = BeautifulSoup(page)
thenames = []
for anchor in soup.findAll('a', href=re.compile('^/Folketinget/findMedlem/')):
newpage = urllib2.urlopen('http://www.ft.dk' + anchor["href"])
stew = BeautifulSoup(newpage)
print (stew.findAll('h1') + stew.findAll('a', href=re.compile('^mailto:')))
api_url = "https://api.github.com/"
request_ip = "204.232.175.75"
# get a list of ips from github
def gh_api_req(path):
try:
request_data = urllib2.urlopen(api_url+path).read()
except urllib2.HTTPError, e:
print "HTTP Error: %d" % e.code
@Fluxflashor
Fluxflashor / Our.cs
Created September 21, 2013 23:01 — forked from robert-nix/Our.cs
using System;
using System.IO;
using System.Threading;
using UnityEngine;
public class OurMono : MonoBehaviour
{
StreamWriter log;
Timer t;
// Type: LOLReplay.SpectatorServer
// Assembly: LOLReplay, Version=0.8.1.4, Culture=neutral, PublicKeyToken=null
// Assembly location: C:\Dokumente und Einstellungen\[...]\Desktop\Downloads\LOLReplay.exe
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Text;
* **Ancestor's Call**<span style="color: #2f2f2f;"> "Hey! Ancestors!" - Ancestor's call</span>
* **Anima Golem** The Dark Animus is evil and mysterious and huge and unable to write sentences that utilize proper grammar.
* **Annoy-o-Tron** The inventor of the Annoy-o-Tron was immediately expelled from Tinkerschool, Tinkertown, and was eventually exiled from the Eastern Kingdoms altogether.
* **Anodized Robo Cub** It's adorable! AND OH MY GOODNESS WHY IS IT EATING MY FACE
* **Antique Healbot** They don't make 'em like they used to! (Because of explosions, mostly.)
* **Arcane Nullifier X-21** There was some hard talk between gnome magi and engineers about inventing this mech.
* **Blingtron 3000** PREPARE PARTY SERVOS FOR IMMEDIATE DEPLOYMENT.
* **Bolvar Fordragon** Spoiler alert: Bolvar gets melted and then sits on an ice throne and everyone forgets about him.
* **Bomb Lobber** He lobbies Orgrimmar daily on behalf of bombs.
function generate_uuid() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8);
return v.toString(16);
})
}