Skip to content

Instantly share code, notes, and snippets.

View onix's full-sized avatar
🚲
Bike Inventor

Vadym Ne. onix

🚲
Bike Inventor
  • Kharkiv, Ukraine
View GitHub Profile
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import random
words="ГОВНО СМЕРТЬ ПИЗДЕЦ ХУЙ ДОХНУТЬ ПЕТЛЯ ГОВНО ГОВНО ГОВНО КАЛ ПИЗДА ВИСЕТЬ ДРИСНЯ ДРИСНОГОВНЬ ФЕКАЛИИ СРАТЬ ПОНОС ЖЫДЫ ФАШИСТЫ ПОДЫХАТЬ СМЕРТЬ МОГИЛА ГРОБ КГБ ФСБ МЕНТЫ ТЮРЬМА ПОСАДИЛИ ЗОНА ТЕРРОР ВЗОРВАТЬ ЯДЕРНАЯ НАВОЗ УГОВНИТЬ БЫДЛО СКОТ ПРАВОСЛАВИЕ ЧЕЛОВЕКОЛЮБЕЦ IE САТАНИЗМ ШАРИАТ УБИВАТЬ САМОУБИЙСТВО МАНЬЯК".split()
print " ".join(["<span style='font-size: %(size)d%%; color: #%(color)s; font-family: %(font-family)s %(additional)s'>%(word)s</span>" % {
'word': random.choice(words),
'size': random.randint(200, 400),
@rednaxelafx
rednaxelafx / gist:925323
Last active October 25, 2023 05:30
Correspondence between Sun/Oracle JDK, OpenJDK and HotSpot VM versions

Correspondence between Sun/Oracle JDK, OpenJDK and HotSpot VM versions

build date Sun/Oracle JDK Version OpenJDK Version HotSpot VM Version
2006-11-29 1.6.0-b105 1.6.0-b105
2007-03-14 1.6.0_01-b06 1.6.0_01-b06
2007-06-22 1.6.0_02-b05 1.6.0_02-b05
2007-09-24 1.6.0_03-b05 1.6.0_03-b05
2007-12-14 1.6.0_04-b12 10.0-b19
@adamvr
adamvr / extract-uimage.sh
Created July 13, 2011 05:20
Script for extracting a uimage
#!/bin/sh
#
# Copyright (C) 2010 Matthias Buecher (http://www.maddes.net/)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# http://www.gnu.org/licenses/gpl-2.0.txt
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@acidprime
acidprime / getcurrent.py
Created December 28, 2011 22:55
Some Python Airport code
#!/usr/bin/python -tt
import subprocess
airport = '/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport'
def getAirportInfo():
arguments = [airport,"--getinfo"]
execute = subprocess.Popen(arguments, stdout=subprocess.PIPE)
out, err = execute.communicate()
dict = {}
for line in out.split('\n'):
@saetia
saetia / gist:1623487
Last active July 26, 2025 16:29
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
; MINESWEEPER by RHY3756547
;
; My first DCPU-16 project
; Feel free to fork and port for operating systems.
; Heavily commented. :>
;
; Twitter: #RHY3756547
; ARROW KEYS to move, ENTER to select.
; F to toggle flag on location.
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@tlack
tlack / p01-matraka-explained.js
Created July 3, 2012 11:41
p01's Matraka javascript demo decoded
// Matraka's source code decoded and beautified
// by @tlack
//
// Matraka is a 1005 byte Javascript "demo" by p01. It includes an 'evolving animation'
// and great dirty synth music. View here:
//
// http://www.p01.org/releases/MATRAKA/matraka.png.html
//
// I fondly recall the demo scene of my youth, puzzling over the work of Future
// Creators and those guys. I was puzzled by this worked so I had to figure it
@JonnieCache
JonnieCache / spacewar.lst
Created December 11, 2012 12:11
Spacewar PDP1 Source Code
-/macro fio-dec system, june 1963
007652 640500 szm=sza sma-szf
007652 650500 spq=szm i
007652 761200 clc=cma+cla-opr
- define senseswitch A
- repeat 3, A=A+A
- szs A
- term
- define init A,B
- law B