Skip to content

Instantly share code, notes, and snippets.

View id_ecdsa.pub
ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAD3JmRaQbYK2WIXKjVNOf/43GrVZpABKf06nc2Olv/tsNni4roI1lLBc6n/39FXjCYpeijf5BaJYHI97sq37eGfqQEVHRY/ihBwlVt/F6SN4SYssFcOEWyiXwQMnmIUrQeLEqkOdkc7ZklaxA+KF/K5IBPvL7ldzQbIhY5MJt7o4Zz9vA== ariscop@gmail.com
@ariscop
ariscop / gist:4213cfdb3b1d5b341a6b
Created Jun 9, 2015
Windows 7 appcompat shims sorted by usage
View gist:4213cfdb3b1d5b341a6b
2165 GameUX
619 VirtualRegistry
551 CorrectFilePaths
468 Win95VersionLie
377 VistaRTMVersionLie
305 WinXPSP2VersionLie
199 ShimViaEAT
194 IgnoreAltTab
164 AOLFindBundledInstaller
152 ElevateCreateProcess
@ariscop
ariscop / names.py
Created Jun 9, 2015
dump sdb files as xml
View names.py
from collections import defaultdict
TAG_TYPE_NULL = 0x1000
TAG_TYPE_BYTE = 0x2000
TAG_TYPE_WORD = 0x3000
TAG_TYPE_DWORD = 0x4000
TAG_TYPE_QWORD = 0x5000
TAG_TYPE_STRINGREF = 0x6000
TAG_TYPE_LIST = 0x7000
TAG_TYPE_STRING = 0x8000
@ariscop
ariscop / ytdl.user.js
Last active Oct 12, 2015
Greasemonkey script for downloading youtube videos
View ytdl.user.js
// ==UserScript==
// @name Youtube download links
// @namespace sothiscanbeanythingright
// @description Adds a tab for downloading youtube videos
// @include http://www.youtube.com/watch*
// @include https://www.youtube.com/watch*
// @version 1
// @grant none
// ==/UserScript==
@ariscop
ariscop / Output
Last active Aug 29, 2015
C++ Ref counting template
View Output
Sizeof Integer: 48
Sizeof Ref<Integer>: 8
Refcount is 1
Refcount is 2
Value: 12
Refcount is 1
Refcount is 0
@ariscop
ariscop / clear_snapshot
Created May 18, 2015
Trivial utils for managing snapshots
View clear_snapshot
#!/usr/bin/python3
from os import listdir
from os.path import isdir
from dateutil.parser import parse as parse_time
from datetime import datetime, timedelta
from collections import namedtuple
import pytz
from subprocess import call
View names.py
from collections import defaultdict
TAG_TYPE_NULL = 0x1000
TAG_TYPE_BYTE = 0x2000
TAG_TYPE_WORD = 0x3000
TAG_TYPE_DWORD = 0x4000
TAG_TYPE_QWORD = 0x5000
TAG_TYPE_STRINGREF = 0x6000
TAG_TYPE_LIST = 0x7000
TAG_TYPE_STRING = 0x8000
@ariscop
ariscop / element.py
Created Mar 19, 2015
Simple passthrough element for gstreamer 1.0 in python
View element.py
#!/usr/bin/env python3
import gi
gi.require_version('Gst', '1.0')
from gi.repository import GObject, Gst
loop = GObject.MainLoop()
GObject.threads_init()
Gst.init()
@ariscop
ariscop / topsee_dev.py
Created Mar 2, 2015
Python script that 'emulates' topsee devices
View topsee_dev.py
#!/usr/bin/env python3
from socket import socket
import xml.etree.ElementTree as ET
magic = b'\x58\x91\x58\x51'
auth_response = """<?xml version="1.0" encoding="GB2312" ?>
<XML_TOPSEE>
<MESSAGE_HEADER
@ariscop
ariscop / extract_ros.py
Created Feb 24, 2015
Extracts .ros firmware files used by some netgear swtiches, eg: ng_gs728_52tp_516tp_bx-60116.ros
View extract_ros.py
#!/usr/bin/env python3
import sys
import lzma
import crcmod
from struct import unpack, iter_unpack
from collections import namedtuple
from functools import partial
from tabulate import tabulate
crc32 = crcmod.predefined.mkPredefinedCrcFun('crc-32')
You can’t perform that action at this time.