rsync -e "ssh -p8888 -o Compression=no" 127.0.0.1:/mnt/1TB/backup.tar.gz -P ./backup.tar.gz
rsync -P ./backup.tar.gz -e "ssh -p8888 -o Compression=no" 127.0.0.1:/mnt/1TB/backup.tar.gz
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
# always start with interface up | |
auth eth0 | |
# Static | |
iface eth0 inet static | |
address 192.168.1.5 | |
netmask 255.255.255.0 | |
gateway 192.168.1.254 | |
dns-nameservers 192.168.1.250 |
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
## key only auth | |
ChallengeResponseAuthentication no | |
PasswordAuthentication no | |
PermitRootLogin prohibit-password | |
PubkeyAuthentication yes |
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
deb http://deb.debian.org/debian bullseye main contrib non-free | |
deb http://deb.debian.org/debian bullseye-updates main contrib non-free | |
deb http://deb.debian.org/debian bullseye-backports main contrib non-free | |
deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free |
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
GDB commands by function - simple guide | |
--------------------------------------- | |
More important commands have a (*) by them. | |
Startup | |
% gdb -help print startup help, show switches | |
*% gdb object normal debug | |
*% gdb object core core debug (must specify core file) | |
%% gdb object pid attach to running process | |
% gdb use file command to load object |
DOMAIN="mydomain.com"
cp /etc/letsencrypt/live/$DOMAIN/fullchain.pem /etc/letsencrypt/live/$DOMAIN/fullchain_with_key.pem;
cat /etc/letsencrypt/live/$DOMAIN/privkey.pem >> /etc/letsencrypt/live/$DOMAIN/fullchain_with_key.pem;
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
## Bring your own SQL server; | |
export DOCKER_MARIADB_DBHOST="127.0.0.1"; | |
export DOCKER_MARIADB_DBPORT="3306"; | |
export DOCKER_MARIADB_DBNAME="mdb"; | |
export DOCKER_MARIADB_DBHOSTPW="Password123!"; | |
export DOCKER_MARIADB_DATABASE="mydatabase"; | |
export DOCKER_MARIADB_USER="'devuser'"; | |
export DOCKER_MARIADB_TABLE="mytable"; | |
docker run -p "$DOCKER_MARIADB_DBHOST":"$DOCKER_MARIADB_DBPORT":"$DOCKER_MARIADB_DBPORT" --name "$DOCKER_MARIADB_DBNAME" -e MARIADB_ROOT_PASSWORD="$DOCKER_MARIADB_DBHOSTPW" -d mariadb:latest & | |
sleep 15s; |
You can just use map within the components render method.
render () {
return (
<div>
{stations.map(station => <div key={station}> {station} </div>)}
</div>
);