Skip to content

Instantly share code, notes, and snippets.

Avatar

Roman Semenov poma

View GitHub Profile
View gist:ce9ea5b7503d6e669c07
From f3ad98ac87f9f1c789b9e3f2fe1875cde089d680 Mon Sep 17 00:00:00 2001
From: poma <Semenov.Roman@mail.ru>
Date: Tue, 31 Mar 2015 03:13:15 +0300
Subject: [PATCH] b
---
js/ui/sidebar.js | 2 +-
manifest.json | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
View init-chef.sh
apt install git wget
wget https://packages.chef.io/files/stable/chefdk/2.1.11/ubuntu/16.04/chefdk_2.1.11-1_amd64.deb
dpkg -i chefdk_2.1.11-1_amd64.deb
git clone https://github.com/poma/chef-usability
cd chef-usability
berks vendor ./cookbooks
chef-client -z -o "recipe[usability]"
chef-client -z -o "recipe[usability::zsh]"
chef-client -z -o "recipe[usability::ssh-key]"
View Angel's Silos
From 8bc0c14ed29957619da7efae24ee6046fd403cba Mon Sep 17 00:00:00 2001
From: Poma <Semenov.Roman@mail.ru>
Date: Sun, 5 Feb 2017 12:28:07 +0300
Subject: [PATCH] 1
---
config.lua | 1 +
data.lua | 11 +++++++++++
info.json | 1 +
3 files changed, 13 insertions(+)
@poma
poma / fdupes.py
Created Jun 2, 2017
Hard link all duplicate files generated by fdupes
View fdupes.py
import os
dupes = [];
src = open('fdupes.txt')
for fline in src:
line = fline.strip()
if line:
dupes.append(line)
else:
while len(dupes) > 0 and not os.path.isfile(dupes[0]):
@poma
poma / Darkula.itermcolors
Created Aug 23, 2017
Darkula theme for iTerm 2 from JetBrains IntelliJ IDEA
View Darkula.itermcolors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.19522881507873535</real>
View custom.filter
### Always show uniques ###
Show
Rarity Unique
### Likely useful stuff ###
Show
LinkedSockets >= 5
SetBorderColor 0 255 0
View replays.sql
create table replays
(
id int unsigned auto_increment
primary key,
parsed_id int unsigned null,
created_at timestamp null,
updated_at timestamp null,
filename varchar(36) not null,
size int unsigned not null,
game_type enum('QuickMatch', 'UnrankedDraft', 'HeroLeague', 'TeamLeague', 'Brawl') null,
View gethead
> gethead (-1,8000000000000000,5):B338CC6B2D6ECC21725BA3F40CED779B9C6548E07C034E47F2944C30C24A8466:352A3EBC174BBDDC5B013128EEA0689D8A60C3D7ED11B9EC939F664BEADA48D8
[ 3][t 2][1559335521.277084112][test-lite-client.cpp:920][!testnode] got block header request for (-1,8000000000000000,5):B338CC6B2D6ECC21725BA3F40CED779B9C6548E07C034E47F2944C30C24A8466:352A3EBC174BBDDC5B013128EEA0689D8A60C3D7ED11B9EC939F664BEADA48D8 with mode 65535
[ 3][t 2][1559335521.456561089][test-lite-client.cpp:935][!query] obtained block header for (-1,8000000000000000,5):B338CC6B2D6ECC21725BA3F40CED779B9C6548E07C034E47F2944C30C24A8466:352A3EBC174BBDDC5B013128EEA0689D8A60C3D7ED11B9EC939F664BEADA48D8 from server
[ 3][t 1][1559335521.456691027][test-lite-client.cpp:989][!testnode] obtained 751 data bytes as block header for (-1,8000000000000000,5):B338CC6B2D6ECC21725BA3F40CED779B9C6548E07C034E47F2944C30C24A8466:352A3EBC174BBDDC5B013128EEA0689D8A60C3D7ED11B9EC939F664BEADA48D8
SPECIAL x{03B338CC6B2D6ECC21725BA3F40CED779B9C6548E07C034E47F2944C3
@poma
poma / stats.md
Created Jul 25, 2019
Tornado mixer stats
View stats.md

First deposit is supposed to take more gas than the next ones

Deposit gas tx1 tx2 tx3
1 174488
2 225334 175094
3 276194 225890 195954
16 937438 887070 857134
17 988298 937994 907994
18 1039158 988854 958854
You can’t perform that action at this time.