Skip to content

Instantly share code, notes, and snippets.

@Kurobyte
Kurobyte / README.md
Last active April 14, 2016 14:06
Downloads videos from some tumblr blog using Node.

usage:

node index.js <some tumblr blog url>
@Kurobyte
Kurobyte / back.jpg
Last active March 1, 2016 21:59
Css animation example
back.jpg
@Kurobyte
Kurobyte / table-split.py
Last active December 13, 2015 03:30 — forked from stuartloxton/table-split.py
Split PHPMyAdmin export into individual tables.
import sys, re
f = open(sys.argv[1])
files = f.read().split('-- --------------------------------------------------------')
files.pop(0)
for file in files:
table = re.search('-- .*\`(.*)\`\n--', file).group(1) #Get table name
f = open('./' + table + '.sql', 'w')
f.write(file)
@Kurobyte
Kurobyte / sysInfoAPI.py
Created October 26, 2015 21:44
Python script that runs an http server that creates an API to fetch system information for Orange PI machine(Could work in others, I didn't test it)
#!/usr/bin/env python
import os, json
from BaseHTTPServer import HTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
from subprocess import *
def callCommand(comm):
return check_output(comm+"; exit 0", stderr=STDOUT, shell=True)
@Kurobyte
Kurobyte / gifAniChange.py
Created September 29, 2015 21:05
Python script that allows to change Gif animation loop count
# Change GIF nº animation loop count
# Usage: python script.py "path-to-image" <number>
#
# Number: 0 to infinite loop. Enter other number to set that loop count
import sys, re;
import binascii;
pattern = "\x4E\x45\x54\x53\x43\x41\x50\x45\x32\x2E\x30";
regex = re.compile(pattern);