diff --git a/raycast/Documents/Raycast Scripts/flush-dns.sh b/raycast/Documents/Raycast Scripts/flush-dns.sh new file mode 100755 index 0000000..f8ae4d7 --- /dev/null +++ b/raycast/Documents/Raycast Scripts/flush-dns.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title Flush DNS +# @raycast.mode fullOutput +# @raycast.packageName Browsing + +# Optional parameters: +# @raycast.icon 💾 + +# Documentation: +# @raycast.author Andrew Williams +# @raycast.authorURL https://github.com/nikdoof +# @raycast.description Flushes DNS cache on macOS + +sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder diff --git a/shell-common/.config/shell-common/functions.sh b/shell-common/.config/shell-common/functions.sh index 34c75f6..192bbe3 100644 --- a/shell-common/.config/shell-common/functions.sh +++ b/shell-common/.config/shell-common/functions.sh @@ -44,7 +44,7 @@ function demoprompt() { # Tag the file as OK to run function itsok() { if [[ $(uname) == "Darwin" ]]; then - xattr -r -d com.apple.quarantine $1 + xattr -d com.apple.quarantine $1 else echo 'This only works on macOS...' fi diff --git a/ssh/.ssh/config b/ssh/.ssh/config index a22bba3..9f1f6c0 100644 --- a/ssh/.ssh/config +++ b/ssh/.ssh/config @@ -1,3 +1,5 @@ +Include ~/.orbstack/ssh/config + Include config-private User nikdoof @@ -12,3 +14,8 @@ Host * ServerAliveInterval 60 ServerAliveCountMax 30 VerifyHostKeyDNS ask + +Host 10.101.2.242 10.3.1.2 + KexAlgorithms +diffie-hellman-group1-sha1 + HostKeyAlgorithms=+ssh-rsa,ssh-dss + Ciphers +aes256-cbc