sudo apt install build-essential libz-dev libssl-dev
mkdir -p ~/tmp; cd ~/tmp
curl https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.2.tar.xz | xzcat | tar x
cd ruby-2.4.2
./configure --prefix ~/local/ruby-2.4.2
make -j 6
make install
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/ob4lOGgF5ttyvihircEGlgpEQIvHlv5Y+VHJDHGgg0npbawUVC9B7b8Jnva6tcTkIJSV+KWKe2uN354mPZkhOJyJPz0NcmSDZUZb425qHmHYug7pSPbvFqDx4WwPyTXoHO+Q6TfAGm1xJP6gzOqQ0W9vVjNaWZI/JiPQXOqcLmCxQZXGs4CwWeVN8GPocsegfrMrbdxGBHNXfSOur/iAyLkTku/eBtLTS2L2/lKHjur5Z0UzdGdqfXbA5lm5Q+5i51PmAdVyhjkZRF2t2GpJv4vwsb1U9boXGYnu+18RXpiSJyrVksmsqX0IWazY3aDgwy8OjVnrfoU3o1GXuAZ5 [email protected] 2016-05 |
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
#!/bin/bash | |
set -e | |
TIME=$(date +%Y-%m-%dT%H:%M:%S) | |
source key.sh # script care face `export BACKUP_KEY='random plm' | |
set -x | |
ssh fraier tar czh -C /mnt/ceva altceva \ | |
| pv \ | |
| openssl aes-256-cbc -pass env:BACKUP_KEY \ |
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
#!/bin/bash | |
set -e | |
cd /var/local/vms | |
args=( | |
qemu-system-x86_64 | |
-enable-kvm | |
-hda /tmp/hd.qcow | |
-smp 1 |
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
#!/usr/bin/env bash | |
set -e | |
SOCKSTUNNELHOST="$1" | |
function sockstunnel_off() { | |
sudo networksetup -setsocksfirewallproxystate Wi-Fi off | |
} |
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
version: "2" | |
services: | |
snoop-pg: | |
image: postgres:9.6 | |
volumes: | |
- ./docker-volumes/snoop-pg/data:/var/lib/postgresql/data | |
environment: | |
POSTGRES_USER: snoop |
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
let url = require('url') | |
function resolve(baseUrl, extraUrl) { | |
function urlParse(url) { | |
let m = url.match(/^(http[s]?:\/\/[^/]+)?(.*)?$/) | |
if(! m) throw new Error(`Can't parse "${url}"`) | |
let host = m[1] || '' | |
let path = m[2] || '' | |
if(host && ! path) path = '/' | |
return {host, path} |
- drop
rev
, store timestamp of last digest - digest without updating timestamp:
./manage.py worker digest -o minor
- backend care citește un http server (mofs, luxemburg)
-
./manage.py digestqueue
să-mi zică câte joburi a pus -
./manage.py retry digest
- refactor (bulk)worker; workerii să expună o singură funcție: batch
- valoare filetype pentru imagini