Skip to content

Instantly share code, notes, and snippets.

@Ricket
Ricket / wrapwget.sh
Created April 13, 2012 15:16
wgetting NCSU WRAP-ped sites
#!/bin/bash
URL="$1"
read -p "Username: " USERNAME
read -s -p "Password: " PASSWORD
echo -e ".ncsu.edu\tTRUE\t/\tFALSE\t0\tWRAP_REFERER\t$URL" > cookies.txt
wget --post-data="userid=$USERNAME&userpw=$PASSWORD&onproxy=N" --cookies=on --keep-session-cookies –-no-check-certificate --load-cookies=cookies.txt --save-cookies=cookies.txt "https://webauth.ncsu.edu/wrap-bin/was16.cgi?auth"
@Ricket
Ricket / backup_dokuwiki
Created July 1, 2012 03:55
Arch Linux DokuWiki backup to Amazon S3
#!/usr/bin/env ruby
# DokuWiki backup for Arch Linux; daily rotating logs, weekly permanent log.
# Fix the Amazon credentials and bucket name, and if desired, the wiki path.
# Copied with modifications from:
# http://www.dokuwiki.org/tips:backuptos3
# Save this script to: /etc/cron.daily/backup-dokuwiki
@Ricket
Ricket / keybase.md
Created April 2, 2014 02:50
keybase.md

Keybase proof

I hereby claim:

  • I am Ricket on github.
  • I am ricket (https://keybase.io/ricket) on keybase.
  • I have a public key whose fingerprint is AFD3 970F 6E7E 3737 7EA9 FE4F 3996 81F2 B4AA 9007

To claim this, I am signing this object:

@Ricket
Ricket / README
Last active October 10, 2015 04:03
Aura Cascade 552 crash Ticking block entity
Bug filed here: https://github.com/pixlepix/Aura-Cascade/issues/93
---- Minecraft Crash Report ----
// This doesn't make any sense!
Time: 10/14/15 10:41 PM
Description: Exception in server tick loop
java.lang.NoClassDefFoundError: net/minecraft/client/multiplayer/WorldClient
at pixlepix.auracascade.item.ItemPrismaticWand.particles(ItemPrismaticWand.java:258)
at pixlepix.auracascade.item.ItemPrismaticWand.func_77659_a(ItemPrismaticWand.java:215)
at net.minecraft.item.ItemStack.func_77957_a(ItemStack.java:146)
local blocksToBreak = {
"essentialcraft:oreDrops", "GalacticraftCore:tile.gcBlockCore",
"appliedenergistics2:tile.OreQuartzCharged", "denseores:block1"
}
local sides = require("sides")
local inputSide = sides.bottom
local outputSide = sides.top
local component = require("component")
@Ricket
Ricket / gist:1d9cd9d06eee36047985
Created March 4, 2016 13:48
Tinker's Construct crash -- NullPointerException in ProjectileWeapon.getIcon
Minecraft Crash Report ----
// You should try our sister game, Minceraft!
Time: 3/3/16 8:42 PM
Description: Unexpected error
java.lang.NullPointerException: Unexpected error
at tconstruct.library.weaponry.ProjectileWeapon.getIcon(ProjectileWeapon.java:239)
at net.minecraft.entity.player.EntityPlayer.func_70620_b(EntityPlayer.java:1843)
at net.minecraft.client.renderer.ItemRenderer.renderItem(ItemRenderer.java:100)
@Ricket
Ricket / NEXTGEN.ASM
Created February 23, 2017 04:01
CSC236 Assembly -- game of life assignment
;--------------------------------------------------------------
; Program: nextgen subroutine *** MASM VERSION ***
;
; Function: Calculates the next generation for the game of life
;
; Input: Two pointers
; - old generation pointer at bp+4
; - new generation pointer at bp+6
;
; Output: New generation data created
@Ricket
Ricket / 01 backstory
Last active February 23, 2017 04:32
CSC236 Assembly -- calculate cosine using Fourier series (except not)
The assignment was a multi-stage project to create a cosine function using the Fourier series to approximate it.
Professor Dana Lasher was one of the greatest professors I had in college. And one of my favorite things about this class, was that he
had an automatic grading program which would count the instructions and you would be awarded a grade based on how few instructions you
could use. (not CPU cycles or anything else that might be more 'realistic')
He would usually tell us the record number of how few instructions he's ever seen for a given assignment, the day that he gave us the
assignment. I would strive to match or beat that number.
I succeeded in several assignments. This one was my favorite though.
achunkloader-1.11.2-1.2.0.jar
ActuallyAdditions-1.11.2-r109.jar
AkashicTome-1.1-7.jar
alltheblocks-1.11.2-1.1.0.jar
animania-1.11.2-1.1.3.jar
AppleCore-mc1.11.2-2.1.2.jar
AppleSkin-mc1.11-1.0.6.jar
armorplus-1.11.2-10.4.0.1.jar
Aroma1997Core-1.11.2-1.2.0.0.jar
AromaBackup-1.11-2.1.0.0.jar