Now located at: https://github.com/epitron/webcam-rng
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'epitools' | |
figlet_left = File.readlines('./figlet.input') | |
def get_first_char(i, arr) | |
arr.map { |x| x[0..i] } | |
end | |
def remove_first_char(i, arr) | |
arr.map { |x| x.slice(i..-1) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "How many disks? " | |
n = STDIN.gets.to_i | |
x = 1 | |
while (x < (1 << n)) | |
puts "move from pole #{(x&x-1)%3} to pole #{((x|x-1)+1)%3}" | |
x += 1 | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# by Sairon Istyar, 2012 | |
# distributed under the GPLv3 license | |
# http://www.opensource.org/licenses/gpl-3.0.html | |
# | |
# Source: | |
# https://github.com/saironiq/shellscripts/blob/master/torrentz_eu/torrentz_eu.sh | |
# | |
### CONFIGURATION ### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ apt-cache rdepends libgnutls26 | grep -v lib | |
Reverse Depends: | |
aiccu | |
vino | |
qemu-kvm | |
exim4-daemon-light | |
exim4-daemon-heavy | |
cups | |
xen-utils-4.1 | |
wine1.4-amd64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rename this distribution example file to motion.conf | |
# | |
# This config file was generated by motion 3.2.12 | |
############################################################ | |
# Daemon | |
############################################################ | |
# Start in daemon (background) mode and release terminal (default: off) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[01:32 AM] epi@rebar :: ~/src/openssl-1.0.1g $ cloc . | |
2354 text files. | |
2135 unique files. | |
762 files ignored. | |
http://cloc.sourceforge.net v 1.60 T=11.68 s (127.0 files/s, 45241.9 lines/s) | |
------------------------------------------------------------------------------- | |
Language files blank comment code | |
------------------------------------------------------------------------------- | |
C 915 32949 68512 234936 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'nokogiri' | |
require 'pp' | |
doc0 = %{ | |
<p>Hello <b>DOM!</b></p> | |
} | |
doc1 = %{ | |
<div> | |
<p>Hello <b>DOM!</b></p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'mechanize' | |
require 'logger' | |
require_relative 'random_agent' | |
require_relative 'path' | |
# Mechanize::Page subclasses Mechanize::File, Mechanize::Download is its own thing | |
# module MimeInfo | |
# def size | |
# header["content-length"].to_i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'mechanize' | |
USERNAME = "" | |
PASSWORD = "" | |
# TODO: Save cookies with "http.cookie_jar.{load,save} filename" | |
# TODO: Store password in ~/.config or some kind of wallet |