Skip to content

Instantly share code, notes, and snippets.

View icedraco's full-sized avatar
🐲
Rawr

Artex icedraco

🐲
Rawr
View GitHub Profile
@icedraco
icedraco / get_schedule.sh
Created January 29, 2015 21:32
Automatic BGU schedule downloader
#!/bin/bash
BASE_URL='https://aristo4stu3.bgu.ac.il/reports/rwservlet'
OUTPUT="$HOME/desktop/BGU-Schedule.pdf"
POST_DATA='cmdkey=PROD&server=rep_aristo4stu3_FRHome1&report=acrr008w&desformat=pdf&DESTYPE=cache&P_PATH=1&P_SPEC=1&P_YEAR_DEGREE=2&P_SORT=1&P_YEAR=2014&P_SEMESTER=1&P_INSTITUTION=0&P_DEGREE_LEVEL=1&P_DEPARTMENT=373&P_GLOBAL_COURSES=2&P_WEB=1&P_SPECIAL_PATH=0'
REFERER='http://bgu4u.bgu.ac.il/pls/scwp/!sc.personalCourseListRepHD'
curl --insecure --sslv3 --data $POST_DATA --output $OUTPUT --referer $REFERER $BASE_URL
@icedraco
icedraco / screencap.py
Created January 25, 2015 04:12
Periodic PrintScreen activator
# Many thanks to this guy for the code:
# http://stackoverflow.com/questions/11906925/python-simulate-keydown
import ctypes
LONG = ctypes.c_long
DWORD = ctypes.c_ulong
ULONG_PTR = ctypes.POINTER(DWORD)
WORD = ctypes.c_ushort
@icedraco
icedraco / mass-unzip.py
Created November 28, 2014 10:41
Creative Market mass-unzip script
# This script is used to extract stock photos from a directory with a lot of
# individual zip files, where each zip normally contains one image with a
# cryptic filename.
import zipfile
from glob import glob
from os import rename
def extract_file(member, zfile, filename):
@icedraco
icedraco / probe.py
Last active November 13, 2015 22:05
Hostname, IP and MAC probing script. Used to obtain information from a distributed system by remotely activating it on each node.
#!/usr/bin/python
import os
import uuid
# Data gathered from a single host will be stored here (on that same host)
DATA_PATH = "/home/icedragon/probe-result"
#--- INTERFACE PROBING ---------------------------------------------------------
@icedraco
icedraco / Battery.cs
Created November 27, 2014 12:35
Object-oriented power supplier and consumer relations using mostly notifications
namespace Ship_Components
{
public class Battery : IPowerSupply, ITickUpdatable
{
const string DefaultBreakReason = "Unknown";
public Battery()
{
this.isBroken = false;
this.port = new PowerPort(this);
@icedraco
icedraco / rch2extract.cpp
Created November 27, 2014 12:13
Furcadia RCH2 archive extractor
/* .-=[ rch2extract ]======================================================-. *\
* | RCH 2.0 File Extractor 0.1 (c) 2007 by IceDragon of QuickFox.org | *
* |---------------------------------------------[ [email protected] ]-| *
* | This little program finds and extracts the RCH2 package from DEP's | *
* | Furcadia installer executable (furcsetup*.exe) and stores it on disk | *
* | for further manipulation. | *
* | | *
* | This program is fully compatible with compatible with furcsetup023.exe | *
* | and furcsetup024.exe installers. Others were not tested, but should | *
* | work regardless. | *
@icedraco
icedraco / temp.c
Created November 27, 2014 12:13
Small temperature conversion tool
/* .-=[ temp.c ]===========================================================-. *\
* | Command-Line Temperature Utility (c) 2008 by IceDragon of QuickFox.org | *
* |------------------------------------------------------------------------| *
* | This small utility will display temperature in celsius, fahrenheit and | *
* | kelvin, judging by which element did the user specify. Its mainly | *
* | purpose in life is to be a quick temperature convertor for when needed | *
\* '-======================================================================-' */
#include <stdio.h>
#include <stdlib.h>
@icedraco
icedraco / sj-ripper.py
Created November 27, 2014 12:11
Suburban Jungle comic strip ripper
# .-= sjdownload.py ========================================================-. #
# | Suburban Jungle Download Script (c) 2008 by IceDragon of QuickFox.org | #
# |--------------------------------------------------------------------------| #
# | This script attempts to automatically download and sort the entire | #
# | archive of the Suburban Jungle comic strip, grabbing the archive page, | #
# | determining section/subsection names and downloading all the image files | #
# | to disk. | #
# | | #
# | Please do not abuse the capabilities of this script - it was built with | #
# | good intensions. | #
@icedraco
icedraco / cad-ripper.py
Created November 27, 2014 12:10
Ctrl-Alt-Del ccomics gallery ripper I wrote for a friend a while back
# .-= caddownload.py =======================================================-. #
# | Ctrl-Alt-Del Download Script (c) 2008 by IceDragon of QuickFox.org | #
# |--------------------------------------------------------------------------| #
# | This script will automatically download the entire C.A.D archives. | #
# | | #
# | Please do not abuse the capabilities of this script - it was built with | #
# | good intensions. | #
# '-========================================================================-' #
###--# Imports #--###
@icedraco
icedraco / fdfc.py
Created November 27, 2014 12:09
Furcadia Data Flow Corrector - an old means to stabilize file transfers to/from Furcadia that some people found useful. Likely no longer works now.
# .-=[ fdfc.py ]============================================================-. #
# | Furcadia Data Flow Corrector 1.0 (c) by IceDragon of QuickFox.org | #
# |==========================================================================| #
# | This script aims to try and improve connectivity between Furcadia client | #
# | and the Furcadia file server along with providing debugging ground for | #
# | unusual fileserver behavior. This script was made for Farren Dustfur as | #
# | an attempt to deal with his download stalls on dialup... Hope it works. | #
# '-========================================================================-' #