Skip to content

Instantly share code, notes, and snippets.

View crckdns's full-sized avatar

Cracky crckdns

View GitHub Profile
###############################################
# TX SX OS unpacker - by hexkyz and naehrwert #
###############################################
from Crypto.Cipher import AES
from Crypto.Util import Counter
import os
import struct
"""
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#define FUSE_IMAGE_SIZE 0x400
#define ROM_BASE 0x100000
#define FUSE_BOOTROM_PATCH_SIZE_T210_START_BIT 13
import sys
import datetime
import json
import jinja2
import os
import operator
from flask_googlemaps import GoogleMaps
from flask_googlemaps import Map
lines = []
require 'json'
require 'nokogiri'
require 'mechanize'
puts 'Get source'
agent = Mechanize.new
html = agent.get 'http://bulbapedia.bulbagarden.net/wiki/List_of_French_Pok%C3%A9mon_names'
nodes = Nokogiri::HTML.parse html.body
puts 'Parse html'
@andrewrcollins
andrewrcollins / trim.awk
Created January 11, 2012 04:22
ltrim(), rtrim(), and trim() in awk
function ltrim(s) { sub(/^[ \t\r\n]+/, "", s); return s }
function rtrim(s) { sub(/[ \t\r\n]+$/, "", s); return s }
function trim(s) { return rtrim(ltrim(s)); }
BEGIN {
# whatever
}
{
# whatever
}
END {