Last active
April 19, 2019 00:55
-
-
Save russkel/b43d1d11771eca35c76e2b766b9b1be3 to your computer and use it in GitHub Desktop.
Handy aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# obtains external IP address | |
alias whatismyip="curl -s ipecho.net/plain | xargs -0 echo" | |
# linux xorg copy/paste implementation - mirroring the macos commands | |
alias pbcopy='xclip -selection clipboard' | |
alias pbpaste='xclip -selection clipboard -o' | |
# pipe the destination machines clipboard to local clipboard | |
alias osxnetwork-paste='ssh OSX_MACHINENAME.local pbpaste | pbcopy' | |
# pipe the local clipboard to the destination android device using termux sshd and termux-api | |
alias android-paste='pbpaste | ssh android.local termux-clipboard-set' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
good stuff rr very HM as always