Skip to content

Instantly share code, notes, and snippets.

View darvin's full-sized avatar

Stefan Novak darvin

View GitHub Profile
@darvin
darvin / safaribooksdownloader
Created May 18, 2011 11:19
Script to prettyformat books from safaribooksonline.com
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Usage: ./safaribooksdownloader <url> "Name Of Book"
"""
import sys
import os, time, random
from pyquery import PyQuery as pq
@darvin
darvin / httpliveencode.py
Created February 12, 2012 03:49
HTTP Live Stream encoder
__author__ = 'darvin'
import os, errno, tempfile, subprocess
from os.path import join
from optparse import OptionParser
def mkdir_p(path):
try:
os.makedirs(path)
@darvin
darvin / gist:2918877
Created June 12, 2012 17:29
VDLFrame struct from FreeDO emulator
struct VDLLine
//VDLP Line - one VDLP line per patent
{
unsigned short line[320*4];//,line2[320*2*16];
unsigned char xCLUTB[32];
unsigned char xCLUTG[32];
unsigned char xCLUTR[32];
unsigned int xOUTCONTROLL;
unsigned int xCLUTDMA;
unsigned int xBACKGROUND;
@darvin
darvin / .travis.yml
Created January 13, 2013 07:36
.travis.yml for Octopress at GitHub pages
## Kinda does not works in current Travis :(
branches:
only:
- source
language: ruby
rvm:
- 1.9.3
before_script:
# Set read-write git origin
- git remote set-url origin $REPO.git
@darvin
darvin / gist:5017692
Last active December 14, 2015 02:59
P12 to key/certificate PEMs
openssl pkcs12 -nocerts -in mycert.p12 -out userkey.pem -nodes
openssl pkcs12 -clcerts -nokeys -in mycert.p12 -out usercert.pem
This file has been truncated, but you can view the full file.
require=(function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s<n.length;s++)i(n[s]);return i})({"angular":[function(require,module,exports){
module.exports=require('WckBoe');
},{}],"WckBoe":[function(require,module,exports){
(function(global){(function browserifyShim(module, define, browserify_shim__define__module__export__) {
/**
* @license AngularJS v1.1.6-0176d67
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, document, undefined) {
@darvin
darvin / blog-some.md
Last active December 18, 2015 01:49 — forked from idan/gist:3135754
title: Sample blog post date: 2012-12-23 04:34

Hello there! This is a sample post for gist.io, a super-lightweight writing soapbox for hackers.

Now look up. Further. Above the post title. See that grey text with the gist ID?

Now back to me. That grey text is a link! Open that sucker in a new tab to see the source for this post. Also, I'm on a horse.

This is a major heading

If you peek at it with a web inspector, you'll see that it is a second-level heading. You can use first level headings, but they'll look just like the second level ones, and the gods of the HTML5 outlining algorithm will frown upon you.

@darvin
darvin / gist:6248126
Created August 16, 2013 08:03
Listing of porting climbers game with Apportable SDK
unknown28cfe91db2b5:games darvin$ git clone https://github.com/haqu/climbers.git
Cloning into 'climbers'...
remote: Counting objects: 316, done.
remote: Compressing objects: 100% (283/283), done.
remote: Total 316 (delta 39), reused 286 (delta 29)
Receiving objects: 100% (316/316), 3.00 MiB | 610 KiB/s, done.
Resolving deltas: 100% (39/39), done.
unknown28cfe91db2b5:games darvin$ cd climbers
unknown28cfe91db2b5:climbers darvin$ apportable load
Building with TARGET_ARCH_ABI:armeabi ARM_NEON:False

crisco

Code Reviews hosted In github COmments' COmmits

Installation

Usage