Skip to content

Instantly share code, notes, and snippets.

View mattmacleod's full-sized avatar

Matthew MacLeod mattmacleod

View GitHub Profile
@mattmacleod
mattmacleod / gist:534c93845b73301049c7
Created November 12, 2014 11:16
Shell function for showing external and internal IPs
function myip() {
internalip=`ifconfig | ruby -e "print STDIN.readlines.select { |a| a =~ /inet / }.reject { |a| a =~ /127|172/ }.map { |a| a.split(' ')[1] }.join(', ')"`
externalip=`curl -s http://jsonip.com | jq -r .ip | tr -d '\n'`
echo "Internal: $internalip"
echo "External: $externalip"
echo -n $externalip | pbcopy
}
function set_iterm2_background_color() {
/usr/bin/osascript <<EOF
tell application "iTerm"
tell the current terminal
tell the current session
set background color to $@
end tell
end tell
end tell

Keybase proof

I hereby claim:

  • I am mattmacleod on github.
  • I am matthewmacleod (https://keybase.io/matthewmacleod) on keybase.
  • I have a public key ASAm5rns1bijIvk9HunBdn3KowL-t4JPLt2ZakPG2hB2Wgo

To claim this, I am signing this object:

--- src/compat/compat.h 2021-08-10 19:15:01.000000000 +0100
+++ src/compat/compat.h 2021-08-10 19:15:02.000000000 +0100
@@ -39,10 +39,6 @@
#error "WireGuard requires Linux >= 3.10"
#endif
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
-#error "WireGuard has been merged into Linux >= 5.6 and therefore this compatibility module is no longer required."
-#endif
-