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
#!/usr/bin/env python3 | |
domain = "" # Root domain | |
record = "" # Record to update | |
token = "" # API token (needs write access) | |
try : | |
import os.path | |
from urllib.request import urlopen | |
from urllib.error import URLError | |
from base64 import b64decode as decode |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define sblock 8 // Stack block length | |
#define lblock 4 // Loop-stack block length | |
#define readln 1024 // Length of input buffer | |
char* reallocate(char* array, int blocks, int blocksize, int loop, int debug) { | |
// Reallocates the input stack if current length is exceeded |
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
javascript:(function() { | |
if(window.location.href.indexOf("ole.bris.ac.uk") > 0) { | |
var redirect = "https://www.ole.bris.ac.uk/webapps/bb-auth-provider-cas-bb_bb60/execute/casLogin?cmd=login&authProviderId=_122_1&redirectUrl="; | |
window.location.href = redirect + encodeURIComponent(window.location.href); | |
} | |
})(); | |
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
javascript:(function(){ | |
if(window.location.href.indexOf("ieeexplore.ieee.org") > 0) { | |
var loc = encodeURIComponent(window.location.href); | |
var shib = encodeURIComponent("https://idp.bris.ac.uk/shibboleth"); | |
var next = "http://ieeexplore.ieee.org/servlet/wayf.jsp?entityId=" + shib + "&url=" + loc; | |
window.location.href = next; | |
} | |
})(); |
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/sh | |
echo ">> Merging .srt into .mkv" | |
for f in *.mkv | |
do | |
echo ">> Merging ${f%.*}" | |
mkvmerge -o ./merged/${f} ${f} ${f%.*}.srt | |
done | |
echo ">> Finished merging" |
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/sh | |
rename 's/(.*)S([0-9]+)E([0-9]+)(.*)([.]{1}[a-z]+)/S$2E$3$5/' $1 |
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
++++++[>++++++++++++<-]>.<+++++[>+++++<-]>.<+++[>+++++<-]>..<+++[>+++<-]>. | |
<+++++++++[>---------<-]>--------.<+++++[>++++++<-]>++++.<+++++[>++++++++<-]>-. | |
<+++[>+++<-]>.++.<+++[>----<-]>.----.---.<+++++[>+++++<-]>-.<+++++++++[>---------<-]>-------. |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <unistd.h> | |
#include <string.h> | |
void usage(char *file, int status) { | |
printf("Generates a string of random characters " | |
"(using numbers and upper/lowercase letters, unless otherwise specified).\n"); | |
printf("usage: %s length [options]\n\n", file); |
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
#!/usr/bin/python3 | |
import sys | |
import os | |
import json | |
from time import (time, sleep) | |
from hashlib import sha256 | |
from zipfile import ZipFile | |
from io import (BytesIO, StringIO) | |
try : |
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 | |
echo -e "\033[0;32m | |
.~~. .~~. | |
'. \ ' ' / .'\033[0;31m | |
.~ .~~~..~. \033[0;37m _ _ \033[0;31m | |
: .~.'~'.~. : \033[0;37m ___ ___ ___ ___| |_ ___ ___ ___ _ _ ___|_|\033[0;31m | |
~ ( ) ( ) ~ \033[0;37m | _| .'|_ -| . | . | -_| _| _| | | | . | |\033[0;31m | |
( : '~'.~.'~' : ) \033[0;37m |_| |__,|___| _|___|___|_| |_| |_ | | _|_|\033[0;31m | |
~ .~ ( ) ~. ~ \033[0;37m |_| |___| |_| \033[0;31m | |
( : '~' : ) |