Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Maxattax97/miscellaneous
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxattax97 committed Sep 11, 2024
2 parents 331df1c + fc358b0 commit 9132f24
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 3 deletions.
21 changes: 20 additions & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -1343,10 +1343,25 @@ zshrc_load_library() {
fi
}
enhance() {
image-boost() {
mogrify -auto-gamma -auto-level -normalize $@
}
image-optimize() {
mogrify -sampling-factor 4:2:0 -auto-orient -strip -quality 85 -interlace JPEG -colorspace sRGB $@
}
image-shrink() {
# Golden ratio
mogrify -resize 61.8% $@
}
image-enhance() {
image-shrink $@
image-boost $@
image-optimize $@
}
scale() {
scale=$1
shift
Expand Down Expand Up @@ -1564,6 +1579,10 @@ zshrc_load_library() {
ssh "$userAtHost" "/file add name=${key_filename} contents=\"$(cat ~/.ssh/id_rsa.pub)\"; /user ssh-keys import user=${user} public-key-file=${key_filename}; /file remove ${key_filename};"
}
rf-link() {
iw dev "$(iw dev | grep Interface | awk '{ print $2 }' | head -n1)" link
}
}
zshrc_set_aliases() {
Expand Down
23 changes: 21 additions & 2 deletions config/etc/chrony.conf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,27 @@
! server 1.pool.ntp.org iburst
! server 2.pool.ntp.org iburst

# NTS
# Max's local mikrotik router
server 192.168.1.1 iburst trust prefer

# High-profile NTP servers
server tick.cerias.purdue.edu iburst trust
server tock.cerias.purdue.edu iburst trust
server time.nist.gov iburst trust
server tick.usno.navy.mil iburst trust
server tock.usno.navy.mil iburst trust

# Popular, high-precision NTP servers
server time.apple.com iburst
server ntp1.net.berkeley.edu iburst
server ntp2.net.berkeley.edu iburst
server clock.isc.org iburst
server time.google.com iburst

# Pools
pool us.pool.ntp.org iburst

# Network Time Security (NTS) servers
server time.cloudflare.com iburst nts
server sth1.nts.netnod.se iburst nts
server sth2.nts.netnod.se iburst nts
Expand All @@ -47,7 +67,6 @@ server ptbtime1.ptb.de iburst nts
server ptbtime2.ptb.de iburst nts
server ptbtime3.ptb.de iburst nts


#######################################################################
### AVOIDING POTENTIALLY BOGUS CHANGES TO YOUR CLOCK
#
Expand Down

0 comments on commit 9132f24

Please sign in to comment.