Skip to content

Instantly share code, notes, and snippets.

@casper
casper / fixutdates.rb
Created June 16, 2023 21:18 — forked from briantist/fixutdates.rb
Fixes incorrect Added On and Completed On dates in uTorrent.
#############################
# fixutdates.rb
# Fixes uTorrent added on / completed on dates
#
# by Brian Scholer
# http://www.briantist.com/
#
#############################
require 'rubygems'
@casper
casper / prof1.txt
Last active December 27, 2019 05:57
PuTTY 0.73 MinGW32 gprof run
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls ms/call ms/call name
31.88 39.37 39.37 _mcount_private
11.17 53.16 13.79 378645098 0.00 0.00 safegrowarray
9.47 64.86 11.70 726534633 0.00 0.00 strbuf_append
5.52 71.67 6.82 makerle
4.19 76.84 5.17 countnode234
Receiver Resolver Table:
Non-Data Actions:
com.genymobile.gnirehtet.STOP:
99bea96 com.genymobile.gnirehtet/.GnirehtetControlReceiver
com.genymobile.gnirehtet.START:
99bea96 com.genymobile.gnirehtet/.GnirehtetControlReceiver
Service Resolver Table:
Non-Data Actions:
android.net.VpnService:
development: &development
adapter: mysql2
encoding: utf8
database: fat_free_crm_development
pool: 5
username: root
# password:
socket: /var/run/mysqld/mysqld.sock
# Warning: The database defined as "test" will be erased and
@casper
casper / gist:2939417
Created June 16, 2012 00:55
Testing Ruby Enumerator + yield lookahead
$i = 0
o = Object.new
def o.each
yield $i += 1
yield $i += 1
yield $i += 1
end
module Fix
module ClassMethods
def fixit
alias_method :fixed, :fixme
end
end
def self.included(base)
base.extend(ClassMethods)
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml
1-strict.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' lang='en' xml:lang='en'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
<title>Ajax FTL Proxy</title>
<script type='text/javascript'>
function pushDataToParent() {
var responseContainer = document.getElementById('response');