Skip to content

Instantly share code, notes, and snippets.

View duck1123's full-sized avatar
💭
Setting my status on Github

Duck Nebuchadnezzar duck1123

💭
Setting my status on Github
View GitHub Profile
@LNBIG-COM
LNBIG-COM / rebalanceOfOurChannels.js
Created October 30, 2019 18:04
It's main code (w/o other submodules) for rebalancing of channels between LNBIG nodes (50% / 50%)
/*
* Copyright (c) 2019 LNBIG.com
* All rights reserved.
*/
// Должен быть первым - загружает переменные
require('dotenv').config()
let program = require('commander')
var PromisePool = require('es6-promise-pool')
var _ = require('lodash')
#!/bin/bash
POST_INIT_SYNC_DELAY=60
POLL_DELAY=60
STALL_THRESHOLD=5
if [ -z `pidof btcd` ]; then
echo "Starting btcd"
nohup btcd &
sleep $POST_INIT_SYNC_DELAY
@gerardorochin
gerardorochin / php_error_logstash.conf
Created June 2, 2014 15:39
php error logging into logstash + elasticsearch and trace errors on single line and root path hidden
input {
file {
type => "php-error"
path => "/var/www/error_log"
sincedb_path => "/opt/logstash/sincedb-access"
}
}
@vivien
vivien / notify
Last active December 23, 2023 03:41
i3blocks integration with dunst
#!/bin/sh
#
# i3blocks integration with dunst.
# Author: Vivien Didelot <vivien.didelot@gmail.com>
#
# dunst caches a notification and signals i3blocks.
# i3blocks catches the signal and prints the cached notification.
#
# Put this rule at the end of your ~/.config/dunst/dunstrc:
#
@denji
denji / http-benchmark.md
Last active September 19, 2024 06:32
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)
@jshaw
jshaw / byobuCommands
Last active September 12, 2024 14:02
Byobu Commands
Byobu Commands
==============
byobu Screen manager
Level 0 Commands (Quick Start)
------------------------------
<F2> Create a new window
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: