# SOCKS5 with login/password auth
$ docker compose -f socks5.yml up -d
# WireGuard with QR code
$ docker compose -f wireguard.yml up -d
$ docker logs wireguard
# OpenVPN with ovpn file
$ docker compose -f openvpn.yml up -d
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 -ex | |
MASTER_HOST="192.168.1.1" | |
REPLICA_1_HOST="192.168.1.2" | |
REPLICA_2_HOST="192.168.1.3" | |
DB_NAME="postgres" | |
TIME_DIFF="3600" # 1 hour | |
for host in $MASTER_HOST $REPLICA_1_HOST $REPLICA_2_HOST; do |
Ссылка на актуальные слайды: Google Презентация
Ссылка на PDF версию
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/sh | |
OUTPUT_DIR=./mp4 | |
for FILE in *MOV | |
do | |
ffmpeg -i "$FILE" -vcodec h264 -acodec aac "$OUTPUT_DIR/$FILE.mp4" | |
done |
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
postgres=# SELECT * FROM timescaledb_information.hypertables; | |
-[ RECORD 1 ]-------+-------------------------- | |
hypertable_schema | public | |
hypertable_name | telemetries | |
owner | postgres | |
num_dimensions | 2 | |
num_chunks | 106 | |
compression_enabled | f | |
is_distributed | t | |
replication_factor | 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
pipeline { | |
agent any | |
environment { | |
registry = 'https://my.registry.com' | |
registryCredential = 'docker-registry-login' | |
appName = 'application-name' | |
appVersion = '1.0.0-RELEASE' |
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
rm -rf /etc/ssl/certs/java/cacerts | |
update-ca-certificates -f |
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
$ touch ~/.bash_profile | |
$ nano ~/.bash_profile | |
alias j12="export JAVA_HOME=`/usr/libexec/java_home -v 12`; java -version" | |
alias j11="export JAVA_HOME=`/usr/libexec/java_home -v 11`; java -version" | |
alias j10="export JAVA_HOME=`/usr/libexec/java_home -v 10`; java -version" | |
alias j9="export JAVA_HOME=`/usr/libexec/java_home -v 9`; java -version" | |
alias j8="export JAVA_HOME=`/usr/libexec/java_home -v 1.8`; java -version" | |
alias j7="export JAVA_HOME=`/usr/libexec/java_home -v 1.7`; java -version" |
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 subprocess | |
import time | |
from itertools import product | |
from string import ascii_lowercase | |
def brute_force(assumption): | |
result = subprocess.run(['passw0rd', | |
'--cfg', | |
'passw0rd.yml', |