Bitcoin Forum
June 22, 2024, 05:55:29 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: My useful Linux scripts  (Read 57 times)
NotATether (OP)
Legendary
*
Offline Offline

Activity: 1638
Merit: 6909


bitcoincleanup.com / bitmixlist.org


View Profile WWW
December 17, 2020, 09:48:38 PM
Last edit: January 20, 2021, 04:41:42 PM by NotATether
 #1

Just dumping my terminal commands in a place where I can easily find them so I don't forget them. They're really useful for changing the resolution of a remote desktop from tiny 1024x768.

Code:
cvt 1360 768 60
xrandr --newmode "1360x768_60.00"   84.75  1360 1432 1568 1776  768 771 781 798 -hsync +vsync
xrandr --addmode VGA-1 "1360x768_60.00"
xrandr --output VGA-1 --mode 1"1360x768_60.00"

Code:
docker ps --format '{{.Image}} {{.ID}}'

Code:
route -n

Code:
sudo route del default

Code:
ip address save
ip address restore
ip route save
ip route restore
ip rule save
ip rule restore

Code:
sudo hwclock --hctosys

Code:
docker run -d -p 8000:8000 -v /var/www/html:/data -e PUBLIC=/data/public

Code:
route -n | awk '$1 == "0.0.0.0" {print $8}'

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!