Windows - how to run program with input from file on command line
/ng/quick-commands
/ng/quick-commands
cmd.exe /c ".\main.exe < .\text.txt"
|
|
|
|
|
|
Start chrome with insecure (self signed) certificates
/ng/quick-commands
/ng/quick-commands
chrome.exe --ignore-certificate-errors --unsafely-treat-insecure-origin-as-secure=www.devdomain.com/ ...
|
|
|
|
|
|
scp /home/upload_directory/* user@yourhost.com:/va
/ng/quick-commands
/ng/quick-commands
scp /home/upload_directory/* user@yourhost.com:/var/www/yourhost.com/upload_directory
|
|
|
Git tag
git tag -a v1.22 -m "message"
git push
/ng/quick-commands
/ng/quick-commands
Git tag
git tag -a v1.22 -m "message"
git push origin v1.22
|
|
|
One line for nginx logs with goaccess
zcat /var
/ng/quick-commands
/ng/quick-commands
One line for nginx logs with goaccess
zcat /var/log/nginx/mydomain_access.log.*.gz | goaccess /var/log/nginx/mydomain_access.log /var/log/nginx/mydomain_access.log.1 - --log-format=COMBINED
|
|
|
One line script to backup database.
/usr/bin/my
/ng/quick-commands
/ng/quick-commands
One line script to backup database.
/usr/bin/mysqldump databaseName --single-transaction=TRUE --result-file=/media/mint/9cb180f1-02d1-4fdd-8bb5-2e7728497288/backup/db-date +%Y-%m-%d
.sql --user=databaseUser --host=myhost.com --port=3306 --password=databasePassword
|
|
|