Skip to content

Instantly share code, notes, and snippets.

View elken's full-sized avatar
🚀
Blazing fast

Ellis Kenyő elken

🚀
Blazing fast
View GitHub Profile
<<>> DiG 9.9.2-P2 <<>> blackarch.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 46325
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;blackarch.org. IN A
@elken
elken / mk-submodule.sh
Last active January 1, 2016 15:09
Script to add all submodules from a given file (could be edited to fit needs but I cba)
for i in `cat tmp`; do
git submodule add https://github.com/$i bundle/$(echo $i | cut -d "/" -f2);
git submodule init;
git submodule update;
cd bundle/$(echo $i | cut -d "/" -f2);
git checkout master;
git pull master;
cd ../..;
git add bundle/$(echo $i | cut -d "/" -f2);
git commit -m "Added submodule: $(echo $i | cut -d "/" -f2)";
@elken
elken / git-dep-get.sh
Created January 19, 2014 17:26
Script to wget all github repos in tmp file
for i in `cat tmp`; do
PKGNAME=$(echo $i | cut -d "/" -f2)
mkdir -p bundle/$PKGNAME
wget -q https://github.com/$i/archive/master.zip -O $PKGNAME.zip >/dev/null
unzip -qq $PKGNAME.zip -d bundle/$PKGNAME
mv bundle/$PKGNAME/*/* bundle/$PKGNAME
done
find . -type d -empty -exec rmdir {} \;
@elken
elken / plugin-list.sh
Created January 19, 2014 17:27
cli magic to get vim plugin list
grep "NeoBundle '" .vimrc | awk '{print $2}' | sed -e "s/'//g" -e "s/,//g" > tmp
@elken
elken / INSTALL.md
Created February 21, 2014 16:09 — forked from namuol/INSTALL.md

rage-quit support for bash

HOW TO INSTALL

Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.

@elken
elken / cvimrc
Last active August 29, 2015 14:04
cvimrc
" Pinkie saver
map ; :
map : ;
" Misc
set nohud
set nosmoothscroll
set typelinkhints
let defaultengine = "duckduckgo"
let barposition = "bottom"
let locale = "uk"

Keybase proof

I hereby claim:

  • I am elken on github.
  • I am elken (https://keybase.io/elken) on keybase.
  • I have a public key whose fingerprint is 3596 4AFE EA35 7E44 B7D4 DE8A 636D C649 EC88 1CB6

To claim this, I am signing this object:

@elken
elken / csgo.js
Last active August 29, 2015 14:19
CSGO Trade Counter
orig = "These are the items you will lose in the trade.";
var total = 0;
document.querySelector(".offerheader").childNodes.item(4).data = orig + " Total: " + total;
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
var url = document.querySelector(".nextTarget").childNodes.item(1).innerHTML.split(" ").slice(2);
if (url.length != 0) {
total = Number(document.querySelector(".nextTarget").id.split("_").slice(2)) + 1;
document.querySelector(".offerheader").childNodes.item(4).data = orig + " Total: " + total;
}
sed -i 's/.*\/.*/[&](http:\/\/github.com\/&)/g' README.md
@elken
elken / pre-commit
Created August 16, 2015 21:45
Pre-commit hook for clang-format
#!/bin/bash
# git pre-commit hook that runs an clang-format stylecheck.
# Features:
# - abort commit when commit does not comply with the style guidelines
# - create a patch of the proposed style changes
# modifications for clang-format by [email protected]
# This file is part of a set of unofficial pre-commit hooks available
# at github.