Skip to content

Instantly share code, notes, and snippets.

---
version: "2"
services:
duplicati:
image: linuxserver/duplicati
container_name: duplicati
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'production' ]
2 info using npm@3.5.2
3 info using node@v8.10.0
4 verbose run-script [ 'preproduction', 'production', 'postproduction' ]
5 info lifecycle @~preproduction: @
6 silly lifecycle @~preproduction: no script for preproduction, continuing
#!/usr/bin/env bash
# Purpose: batch image resizer
# Source: https://guides.wp-bullet.com
# Author: Mike
# absolute path to image folder
FOLDER="/var/www/wp-bullet.com/wp-content/uploads"
# max height
WIDTH=540
@bend
bend / 1.yaml
Last active December 31, 2018 12:34
apiVersion: v1
kind: Namespace
metadata:
name: traefik
---
apiVersion: v1
kind: ServiceAccount
metadata:
namespace: traefik
name: traefik-ingress-controller
[cmdexec] ERROR 2018/08/31 07:33:38 /src/github.com/heketi/heketi/executors/cmdexec/volume.go:154: Unable to delete volume heketidbstorage: Unable to execute command on glusterfs-fpfcl
: volume delete: heketidbstorage: failed: Some of the peers are down
[negroni] Started GET /queue/0b4176488951330f734045483ffee1ee
[negroni] Completed 200 OK in 136.453µs
[kubeexec] DEBUG 2018/08/31 07:33:39 /src/github.com/heketi/heketi/executors/kubeexec/kubeexec.go:246: Host: vps01 Pod: glusterfs-vhkdb Command: gluster --mode=script volume stop heket
idbstorage force
@bend
bend / pingpong.py
Created April 20, 2018 10:18
Simple ping pong client server
#!/usr/bin/env python
import socket
from socket import error as socket_error
import sys
import time
MSGLEN=4
SLEEP_DELAY=1

Keybase proof

I hereby claim:

  • I am bend on github.
  • I am bend66 (https://keybase.io/bend66) on keybase.
  • I have a public key whose fingerprint is DFA0 29B2 7498 7FED 1847 3C92 D077 2C93 CE78 1180

To claim this, I am signing this object:

# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
# Maximum and minimum number of peers to connect to per torrent.
min_peers = 1
max_peers = 100
# Same as above but for seeding completed torrents (-1 = same as downloading)
min_peers_seed = 0
@bend
bend / memusage
Created September 22, 2017 12:07
#!/usr/bin/env bash
## Print header
echo -e "Size\tResid.\tShared\tData\t%"
while [ 1 ]; do
## Get the PID of the process name given as argument 1
pidno=`pgrep $1`
## If the process is running, print the memory usage
if [ -e /proc/$pidno/statm ]; then
## Get the memory info
@bend
bend / .gdbinit
Last active August 29, 2015 14:14 — forked from skyscribe/.gdbinit
#
# STL GDB evaluators/views/utilities - 1.03
#
# The new GDB commands:
# are entirely non instrumental
# do not depend on any "inline"(s) - e.g. size(), [], etc
# are extremely tolerant to debugger settings
#
# This file should be "included" in .gdbinit as following:
# source stl-views.gdb or just paste it into your .gdbinit file