resumable, showing progress rsync from remote:
rsync -avz --progress --append-verify [email protected]:/file/path /local/file/path
version: "3" | |
services: | |
app: | |
image: node:16 | |
working_dir: /app | |
volumes: | |
- ./:/app | |
ports: | |
- 3000:3000 |
shecan(){ | |
# dns config file | |
conf=/etc/resolv.conf | |
downNames=$(cat << EOF | |
nameserver 8.8.4.4 | |
nameserver 8.8.8.8 | |
EOF | |
) | |
upNames=$(cat << EOF | |
# shecan servers |
-- source tables | |
drop table if exists customers; | |
drop table if exists customer_type; | |
drop table if exists dim_customer; | |
drop function if exists update_dim_customer(); | |
create table customer_type ( | |
type_id int primary key, | |
type_description text | |
); |
for file in *.svg | |
do | |
name=$(basename $file .svg) | |
svgexport $name.svg $name.png 300:300 80% | |
done | |
-- AUTHOR: Mostafa | |
drop function if exists validate_national_id( text ); | |
create or replace function validate_national_id(id text) | |
returns boolean as $$ | |
declare | |
summation integer := 0; | |
arrayId text[] ; | |
rem integer; |
--- | |
stages: | |
- test | |
test: | |
image: node:11-alpine | |
stage: test | |
cache: | |
paths: |
#!/bin/bash | |
cat - | xclip -selection c | |
(sleep ${1:-10} | |
xsel -bc) & |
version: '2' | |
services: | |
dev-pg: | |
image: 'postgres:10-alpine' | |
volumes: | |
- 'dev:/var/lib/postgresql/data' | |
environment: | |
- POSTGRES_DB=app_dev | |
- POSTGRES_USER=laravel | |
- POSTGRES_PASSWORD=secret |
resumable, showing progress rsync from remote:
rsync -avz --progress --append-verify [email protected]:/file/path /local/file/path
0.0.0.0:2015 { | |
gzip | |
log /tmp/caddy.log | |
proxy / localhost:9009 { # backend api | |
transparent | |
} | |
ratelimit * 3 5 second { # 3 req/sec & bursts of 5 | |
whitelist 192.168.1.0/24 |