Evgeniy Dolzhenko dolzenko

View chrome-cookies.sh
1 2
# Not needs as there is 'Copy as Curl' in Chrome now
sqlite3 -separator ' ' ~/.config/google-chrome/Default/Cookies 'select host_key, "TRUE", path, "FALSE", expires_utc, name, value from cookies'
View gotcha.rb
1 2 3 4 5
irb(main):009:0> 1/BigDecimal.new('0')
=> #<BigDecimal:b36d598,'Infinity',9(36)>
 
irb(main):010:0> 1/0
ZeroDivisionError: divided by 0
View irssi_trigger_echo_last_messages.sh
1 2 3 4 5 6 7 8
$ mkdir -p ~/.irssi/scripts/autorun/
$ cd ~/.irssi/scripts/autorun/
$ wget http://wouter.coekaerts.be/irssi/scripts/trigger.pl
$ irssi
/server add -auto -network Freenode irc.freenode.net 6667
/channel add -auto ##channel Freenode
/SET autolog ON
/trigger add -joins -command 'exec -o tail -10 ~/irclogs/Freenode/\#\#channel.log'
View hows.rb
1 2 3 4 5 6 7 8 9 10
require 'stamp'
require 'text-table'
 
def how(ts)
hour = (ts.to_f / 3600).floor
hour % 24 + ((hour / 24 + 4).floor % 7) * 24
end
 
from = Time.utc(2013, 4, 7)
to = Time.utc(2013, 4, 7 + 7)
View index.html
1 2 3 4 5 6 7 8 9
<SCRIPT
language='JavaScript1.1'
SRC="http://ad-ace.doubleclick.net/adj/N4892.273606.INFECTIOUSMEDIA1/B7321384.500;sz=300x250;ord=123123123;click=http%3A%2F%2F127.0.0.1.xip.io%2Ftracker%3Furl%3D;?"
>
</SCRIPT>
 
<A
HREF="${IDB:CLICK_URL}http://ad-ace.doubleclick.net/jump/N4892.273606.INFECTIOUSMEDIA1/B7321384.500;sz=300x250;ord=${IDB:CACHEBUSTER}?"
>
View index.html
1 2 3 4 5 6 7 8 9 10
<html>
<body>
<script type="text/javascript" src="https://d1nzfe00velrsn.cloudfront.net/media/942Acxp9ha5yps88uWdE/fpsp.js"></script>
<script type="text/javascript">
__im_ebJnNptPjSUMVa2nHWjf.send('https://secure.adnxs.com/getuid?', {uid: '$UID', oid: 'DANROCKS'});
</script>
</body>
</html>
View gist:5143663
1 2 3 4 5
BigDecimal.class_eval do
def inspect
to_s
end
end
View gist:5047279
1 2 3 4 5 6 7 8 9 10
extract :DWAPI do
get 'Siphon'
limit 2
resolve do |response|
rows = []
p response
response.each do |input|
p input
name = input[:name]
View gist:5037968
1
$ while :; do inotifywait -q -e modify -r . ; rspec spec/models/whatever_spec.rb ; done
View jquery.mintree.js
1 2 3 4 5 6 7 8 9 10
/*jslint vars: true, unparam: true, white: true */
/*global jQuery */
 
jQuery.fn.mintree = (function($) {
 
"use strict";
 
function MinTree(root, options) {
this.options = $.extend({}, options);
var el = $(root).addClass("mintree"),
Something went wrong with that request. Please try again.