Skip to content

Instantly share code, notes, and snippets.

View Gonzih's full-sized avatar
🐁
⠊ ⠁⠍ ⠃⠕⠗⠑⠙ ⠕⠥⠼⠓ ⠕⠋ ⠍⠽ ⠍⠊⠝⠙

Maksim Soltan Gonzih

🐁
⠊ ⠁⠍ ⠃⠕⠗⠑⠙ ⠕⠥⠼⠓ ⠕⠋ ⠍⠽ ⠍⠊⠝⠙
View GitHub Profile
@Gonzih
Gonzih / etc-iptables-iptables.rules
Last active April 10, 2018 22:07
PIA/Privateinternetaccess iptables kill switch with enabled incoming SSH
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT DROP [0:10]
-A FORWARD -i tun+ -j ACCEPT
-A FORWARD -j DROP
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -i tun+ -j ACCEPT
@Gonzih
Gonzih / PKGBUILD
Last active March 17, 2019 20:07
CUDNN9 aur PKGBUILD
pkgname=cudnn9
pkgver=7
pkgrel=4
pkgdesc="NVIDIA CUDA Deep Neural Network library (version 9)"
arch=('x86_64')
url="https://developer.nvidia.com/cuDNN"
license=('proprietary')
depends=('cuda-sdk')
source=("http://files.fast.ai/files/cudnn-9.1-linux-x64-v7.tgz")
sha512sums=('7eadb64a3d5e49aec2761e6f7dc0295c1d356910b114eed450c47081fc81b6e3b7748f3a4153f6a9d957691e3689cd52823bfa12816b1950dfc8794d6f332749')
@Gonzih
Gonzih / index.js
Last active January 16, 2018 23:56
Slack desktop night theme
// append to
// /usr/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js
// based on https://github.com/laCour/slack-night-mode/
document.addEventListener('DOMContentLoaded', function() { $.ajax({ url: 'https://cdn.rawgit.com/laCour/slack-night-mode/master/css/raw/black.css', success: function(css) { $("<style></style>").appendTo('head').html(css); } }); });
@Gonzih
Gonzih / list.txt
Created November 4, 2017 13:59
youtube host blacklist
r4---sn-vgqs7nez.googlevideo.com
r4.sn-vgqs7nez.googlevideo.com
www.youtube-nocookie.com
i1.ytimg.com
r17---sn-vgqsenes.googlevideo.com
r2---sn-vgqs7n7k.googlevideo.com
clients6.google.com
r1---sn-vgqsen7z.googlevideo.com
r1.sn-vgqsen7z.googlevideo.com
r20---sn-vgqs7ne7.googlevideo.com
unmap h
unmap t
map h scrollDown count=3
map t scrollUp count=3
map j removeTab
map u restoreTab
map l performFind
map L performBackwardFind
map d previousTab
map n nextTab
@Gonzih
Gonzih / main.css
Created September 6, 2017 14:55
Make transfer.sh more screenshot friendly
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("transfer.sh") {
.wrapper h2.page-title, .wrapper a.btn, .wrapper h4, .wrapper br {
display: none;
}
#from-terminal {
margin-left: 0;
width: 100%;
}
@Gonzih
Gonzih / README.md
Last active March 9, 2017 08:12
markov-chain-meetup-dojo
@Gonzih
Gonzih / cvim.rc
Last active January 5, 2017 10:00
let hintcharacters = "aoeuidhtns"
unmap h j k l d h t n
map d previousTab
map h scrollDown
map t scrollUp
map n nextTab
map k :tabnew<Space>
map j closeTab
@Gonzih
Gonzih / ansible-aur-pkg-installer.md
Last active September 20, 2016 14:26 — forked from cahna/ansible-aur-pkg-installer.md
download, build, and install aur packages with ansible

About

When using ArchLinux, I typically prefer to use an AUR helper like pacaur or yaourt to automate away the process of installing a community package.

Ansible's pacman module is great, but it doesn't support AUR packages or pacman's -U flag. Installing AUR packages with Ansible seemed to be left as an exercise to the user, and since AUR helpers do not come with a fresh Arch install, I

@Gonzih
Gonzih / booboo.clj
Last active March 9, 2016 20:20 — forked from skuro/README.md
We made a boo boo
(ns sytac-dojo.core
(:require [clojure.java.io :as io]
[clojure.string :as string]
[clojure.math.combinatorics :as combo]))
(def volume 150)
(defn read-input! []
(as-> "input.txt" $
(io/resource $)