Skip to content

Instantly share code, notes, and snippets.

View DaniilBabanin's full-sized avatar

Daniil Babanin DaniilBabanin

View GitHub Profile
@DaniilBabanin
DaniilBabanin / quicklink.js
Last active November 29, 2023 19:56
Quicklink Userscript
@DaniilBabanin
DaniilBabanin / kill.md
Last active November 15, 2017 14:59
killnode
  • ps aux | grep node
  • sudo kill -9 PID

Keybase proof

I hereby claim:

  • I am daniilbabanin on github.
  • I am daniilbabanin (https://keybase.io/daniilbabanin) on keybase.
  • I have a public key ASAXeIlyRZFnZiQbbsn-0oC5HbrVZ0YejSjDeEGEujAngwo

To claim this, I am signing this object:

@DaniilBabanin
DaniilBabanin / index.js
Last active January 31, 2018 13:45
GitLab - userscripts
// ==UserScript==
// @name Hide issues by tags
// @namespace http://babanin.de/
// @version 0.2
// @description try to take over the world! and hide gitlab issues by tags
// @author Daniil Babanin & Robin Würfel
// @match http*://hpm.agency/*
// @grant none
// ==/UserScript==
@DaniilBabanin
DaniilBabanin / log_without_base64.js
Created August 19, 2016 12:39 — forked from 321hendrik/log_without_base64.js
console.log without base64 images (or other long strings)
function logObjWithoutBase64 () {
function rmb64(o) {if (typeof(o) == 'object') {for (var k in o) {o[k] = rmb64(o[k]);}} else if (typeof(o) == 'string' && o.length > 100) {return 'BASE64';}return o;}
var l = [];
for (var a in arguments) {if (typeof(arguments[a]) == 'object'){l.push(rmb64(JSON.parse(JSON.stringify(arguments[a]))));} else {l.push(arguments[a]);}}
console.log.apply(this, l);
}
@DaniilBabanin
DaniilBabanin / arrayReduce
Last active November 15, 2016 15:46
Q.all with array map
return array.reduce(function(p, item) {
return p.then(function(){ return readFile(item); });
},Q());