This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //* 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({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import atexit | |
| import pika | |
| from rest_framework.renderers import JSONRenderer | |
| from Bar.serializers import BarSerializer | |
| RABBIT_HOST = 'localhost' | |
| class FooChangePublisher(object): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Created by milan on 2016-04-02. | |
| * HappyLog skeleton generator (DokuWiki format) | |
| */ | |
| "use strict"; | |
| let strftime = require('strftime'); | |
| let day = new Date(); | |
| day.setDate(1); | |
| day.setMonth(day.getMonth()); | |
| let month = day.getMonth(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| return r.db('db1').table('table1') | |
| .getAll('asdfgh', {index: 'user_id'}) | |
| .orderBy(r.desc('created')) | |
| .fold([], function (acc, doc) { | |
| return r.branch( | |
| acc.isEmpty(), | |
| acc.add([doc]), | |
| acc.nth(-1)('transaction_type').eq(doc('transaction_type')), | |
| acc.slice(0, -1).append(acc.nth(-1).merge({ | |
| amount: acc.nth(-1)('amount').add(doc('amount')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Promise = require('bluebird'); | |
| var util = require('util'); | |
| var heapdump = require('heapdump'); | |
| function log(message) { | |
| console.log(new Date().toISOString() + ' - ' + message); | |
| } | |
| function gc() { | |
| log('-- Forced GC'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| r.db('rethinkdb').table('table_status') | |
| .filter(r.row('status')('ready_for_writes').not()) | |
| .forEach((tbl)=>{ | |
| return r.db(tbl('db')).table(tbl('name')).reconfigure({emergency_repair: 'unsafe_rollback'}); | |
| }) |
OlderNewer