Skip to content

Instantly share code, notes, and snippets.

View Voker57's full-sized avatar

Voker57 Voker57

View GitHub Profile
#0 0xb7d6eb5d in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
#1 0xb7e1cdef in g_array_append_vals () from /lib/i386-linux-gnu/libglib-2.0.so.0
#2 0x08049b4d in logs (msg=0x804dfe9 "fuse is finished\n", len=17) at hatexmpp.c:38
#3 0x08049b8a in logstr (msg=0x804dfe9 "fuse is finished\n") at hatexmpp.c:46
#4 0x0804b87c in fuseinit (argc=3, argv=0xbffff634) at fuse.c:560
#5 0x08049fc7 in main (argc=3, argv=0xbffff634) at hatexmpp.c:149
hoster = rand((ARGV[0] || 2).to_i)
alllist = "Spartan Federation
Gaia's Stepdaughters
University of Planet
Peacekeeping Forces
Human Hive
Lord's Believers
Morgan Industries
require 'mechanize'
www = Mechanize.new
pg = www.get ARGV[0]
magics = pg.at('div[@class="cloudcast-play-button-container"]')["m-preview"]
puts magics.gsub("previews", "c/m4a").gsub("mp3","m4a")
@Voker57
Voker57 / case.rb
Last active August 29, 2015 14:07
a = lambda do yield "test" end
a.call do |a| puts a end
module Komariq
def self.update_entries(criteria, action)
while true
needs_update = criteria.call
count = needs_update.count
if count > 0
Rails.logger.info "#{count} feeds need to be updated"
needs_update.each do |entry|
begin
Rails.logger.info "Feed #{feed.id} is going to be updated"
# written by faze, revised by BlastHardcheese
crawl () {
case "$1" in
"cao" )
local user="joshua"
local server="crawl.akrasiac.org"
;;
"cdo" )
local user="crawl"
#!/usr/bin/env ruby
# git-put host:path
dash_u = ARGV.include? '-u'
ARGV.delete '-u'
host = ARGV[0].split(":")[0]
path = ARGV[0].split(":")[1..-1].join(":")
`ssh #{host} 'git init --bare #{path}'`
`git push #{ARGV[0]} \`git branch\``
if dash_u
@Voker57
Voker57 / A.hs
Last active December 17, 2015 07:58
Sample Haskell module compiling into .so
{-# LANGUAGE ForeignFunctionInterface #-}
module A (encodeCrockford, decodeCrockford) where
import Foreign.Marshal.Utils
import Foreign.Ptr
import Foreign.C.String
import Foreign.C.Types
import Foreign.Marshal.Array
import Codec.Crockford
#!/usr/bin/env python
# Readable Python syntax implementation in pure Python
# See http://tinyurl.com/3xhqgs for syntax description
# Usage: ./rpython.py hello_world.py
# This program greatly improves python syntax, blah blah blah
from subprocess import call
import sys
-- Bitcoin (฿) daemon monitor
-- %bitcoin_speed - current speed in khash/s
-- %bitcoin_balance - current balance
-- by Voker57 <voker57@gmail.com>
-- Public domain
local defaults={
update_interval=30 * 1000