Skip to content

Instantly share code, notes, and snippets.

View poma's full-sized avatar

Roman Semenov poma

View GitHub Profile
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,
### Always show uniques ###
Show
Rarity Unique
### Likely useful stuff ###
Show
LinkedSockets >= 5
SetBorderColor 0 255 0
@poma
poma / Darkula.itermcolors
Created August 23, 2017 07:01
Darkula theme for iTerm 2 from JetBrains IntelliJ IDEA
<?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>
@poma
poma / fdupes.py
Created June 2, 2017 17:00
Hard link all duplicate files generated by fdupes
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]):
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(+)
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]"
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(-)