Skip to content

Instantly share code, notes, and snippets.

View b1nary's full-sized avatar

Roman Pramberger b1nary

View GitHub Profile
@b1nary
b1nary / bot.rb
Created February 21, 2014 14:24
#Anycoin Bot
#!/usr/bin/env ruby
require 'socket'
require 'timeout'
require 'json'
require 'open-uri'
def try
begin
Timeout::timeout(10) {
require 'rubygems'
require 'net/http'
require 'net/https'
require 'socksify'
require 'open-uri'
TCPSocket::socks_server = "127.0.0.1"
TCPSocket::socks_port = 9050
url = "coinano.com"
@b1nary
b1nary / AllTheTLDs.md
Created July 8, 2014 22:06
[All the TLDs] A complete list of TLDs in the root domain zone. (updated 2014-07-09)

All the TLDs

This list contains all the TLDs based on the official list from the ICAN and a backup from ORSN.

It simply compiles the available lists.

@b1nary
b1nary / onion-gen.js
Last active August 29, 2015 14:08 — forked from ttaubert/onion-gen.js
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
/*
* thirty-two
* https://github.com/chrisumbel/thirty-two
*
module DiceLib
class Dice
attr_accessor :hold, :current, :last
def initialize sides = 6
@dice = (0 .. (sides-1)).to_a
@hold = false
@current = @last = rand(@dice.length)
end
@b1nary
b1nary / generate_meme.json
Last active August 29, 2015 14:14
API results maymay.in
{
"id": "3m",
"meme": "Doge",
"top_text": "much api",
"bottom_text": "",
"url": "http://maymay.in:3000/doge/much_api.jpg",
"short_url": "http://maymay.in:3000/s/3m.jpg",
"view_url": "http://maymay.in:3000/view/3m",
"creator": "anyanon",
"status": "new"
@b1nary
b1nary / lulz.js
Created June 24, 2015 08:35
Add some hidden games and jokes to your website
$(function(){
function rotate(degrees){
$('html').css({
'-webkit-transform':'rotate(-' + degrees + 'deg)',
'-moz-transform':'rotate(-' + degrees + 'deg)',
'-ms-transform':'rotate(-' + degrees + 'deg)',
'-o-transform':'rotate(-' + degrees + 'deg)',
'transform':'rotate(-' + degrees + 'deg)',
'-webkit-transition':'2s',
@b1nary
b1nary / SetasCommandBook.markdown
Created January 23, 2012 20:09
the linux command reference of awesomeness

Seta's Command Book

Why this exists...

  • as reference for me
  • because Linux is to amazing to hold all commands
  • because the world needs to know! xD

Note that this is actually growing... Its not really much yet ;)

@b1nary
b1nary / _.markdown
Created January 24, 2012 19:37
A projekt based time plan maker

Generate Fancy ASCII/HTML tables for a simple projekt time plan

Made by me. Feel free to use and or modify ;)

@b1nary
b1nary / _.markdown
Created January 24, 2012 23:08
Colored Table from Array in Ruby

Colored Table from Array in Ruby

needs: colorize

or hack the colors out :3

also needs some optimations. the code is redundant. Just posted it here if i may not work on it in next time