mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-13 09:42:27 +00:00
Update dotfiles
This commit is contained in:
17
raycast/Documents/Raycast Scripts/flush-dns.sh
Executable file
17
raycast/Documents/Raycast Scripts/flush-dns.sh
Executable file
@@ -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
|
||||||
@@ -44,7 +44,7 @@ function demoprompt() {
|
|||||||
# Tag the file as OK to run
|
# Tag the file as OK to run
|
||||||
function itsok() {
|
function itsok() {
|
||||||
if [[ $(uname) == "Darwin" ]]; then
|
if [[ $(uname) == "Darwin" ]]; then
|
||||||
xattr -r -d com.apple.quarantine $1
|
xattr -d com.apple.quarantine $1
|
||||||
else
|
else
|
||||||
echo 'This only works on macOS...'
|
echo 'This only works on macOS...'
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
Include ~/.orbstack/ssh/config
|
||||||
|
|
||||||
Include config-private
|
Include config-private
|
||||||
|
|
||||||
User nikdoof
|
User nikdoof
|
||||||
@@ -12,3 +14,8 @@ Host *
|
|||||||
ServerAliveInterval 60
|
ServerAliveInterval 60
|
||||||
ServerAliveCountMax 30
|
ServerAliveCountMax 30
|
||||||
VerifyHostKeyDNS ask
|
VerifyHostKeyDNS ask
|
||||||
|
|
||||||
|
Host 10.101.2.242 10.3.1.2
|
||||||
|
KexAlgorithms +diffie-hellman-group1-sha1
|
||||||
|
HostKeyAlgorithms=+ssh-rsa,ssh-dss
|
||||||
|
Ciphers +aes256-cbc
|
||||||
|
|||||||
Reference in New Issue
Block a user