Skip to content

Instantly share code, notes, and snippets.

View analytik's full-sized avatar
😐
b u r n o u t

Milan B analytik

😐
b u r n o u t
View GitHub Profile
[auth]
bitbucket.prefix = https://bitbucket.org/
bitbucket.username = xxxxxx
[ui]
username=Milan Brezovsky <xxxxxx@xxxxxx.com>
ignore=C:\Users\xxxxxx\Documents\hgignore_global.txt
merge = kdiff3
[extensions]
@analytik
analytik / rethinkdb_table_keys.js
Created December 21, 2015 08:31
How to get all RethinkDB table keys and sub-keys (this version does not work recursively)
r.db('test').table('test')
.concatMap(function(doc) {
return doc.keys().map(function(tlKey) {
return r.branch(doc(tlKey).typeOf().eq('OBJECT'),
doc(tlKey).keys().map(function(name){ return r.expr(tlKey).add('.').add(name);}),
tlKey);
});
}).distinct()
/**
* For object
@analytik
analytik / install_bower_1_5_3.bat
Created October 9, 2015 10:22
How to install Bower 1.5.3 on Windows when hitting the 255 char limit path limit
npm rm bower
npm cache clean
npm install -g abbrev@1.0.7
npm install -g amdefine@1.0.0
npm install -g ansi-escapes@1.1.0
npm install -g ansi-regex@2.0.0
npm install -g ansi-styles@2.1.0
npm install -g ansicolors@0.2.1
npm install -g archy@1.0.0
import atexit
import pika
from rest_framework.renderers import JSONRenderer
from Bar.serializers import BarSerializer
RABBIT_HOST = 'localhost'
class FooChangePublisher(object):
@analytik
analytik / servant.js
Created March 3, 2015 20:28
XKit Servant plugin version 0.4 REV E modified to include "hide post" functionality (mostly copied from XKit Blacklist)
//* TITLE Servant **//
//* VERSION 0.4 REV E **//
//* DESCRIPTION XKit Personal Assistant **//
//* DETAILS Automator for XKit: lets you create little Servants that does tasks for you when the conditions you've set are met. **//
//* DEVELOPER STUDIOXENIX **//
//* FRAME false **//
//* SLOW true **//
//* BETA false **//
XKit.extensions.servant = new Object({
@analytik
analytik / rename_nested_deep.sh
Created May 23, 2011 15:18
Traverse directories 3 layers and then rename/move something inside
for file in *; do
if [ -d $file ]; then
#echo $file;
#cd $file;
for file2 in $file/*; do
if [ -d $file2 ]; then
#cd $file2;
#echo $file2;
for file3 in $file2/*; do
if [ -d $file3 ]; then