Skip to content

Instantly share code, notes, and snippets.

@russkel
Last active April 19, 2019 00:55
Show Gist options
  • Save russkel/b43d1d11771eca35c76e2b766b9b1be3 to your computer and use it in GitHub Desktop.
Save russkel/b43d1d11771eca35c76e2b766b9b1be3 to your computer and use it in GitHub Desktop.
Handy aliases
# 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'
@YugeTen
Copy link

YugeTen commented Jan 31, 2018

good stuff rr very HM as always

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment