-
-
Save jhgjhtuytdfbnfvmnbgjtuydt/f83bcbaedce9017fbc1e120aad5ed743 to your computer and use it in GitHub Desktop.
Revisions
-
coderofsalvation revised this gist
Apr 25, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -16,6 +16,6 @@ or in console vim, do a visual selection and then press `:` and type `.! xclipmd ## Install $ cd ~/bin $ wget "https://gist.github.com/coderofsalvation/7ff980326e9f75261eee8f8e0896ac3b/raw/1353c3e57598c1ad6c3b44359d9c8f79a5a6433b/xclip" $ wget "https://gist.github.com/coderofsalvation/7ff980326e9f75261eee8f8e0896ac3b/raw/68c86602127e14adb58b2fd248608af2df878fae/xclipmd" $ chmod 755 xclip xclipmd -
coderofsalvation revised this gist
Apr 25, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,5 +2,5 @@ if [[ "$(uname)" =~ Darwin ]]; then cat - | pbcopy else cat - | xclip fi -
coderofsalvation revised this gist
Apr 25, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -9,13 +9,13 @@ $ cat ~/projects/foo/somefile.js | xclipmd ``` or in console vim, do a visual selection and then press `:` and type `.! xclipmd`: (and paste into slack etc) ## Install $ cd ~/bin $ wget "https://gist.github.com/coderofsalvation/7ff980326e9f75261eee8f8e0896ac3b/raw/7beb0288efc4769348d146cc020e18ca026aa81b/xclip" $ wget "https://gist.github.com/coderofsalvation/7ff980326e9f75261eee8f8e0896ac3b/raw/68c86602127e14adb58b2fd248608af2df878fae/xclipmd" $ chmod 755 xclip xclipmd -
coderofsalvation revised this gist
Apr 25, 2016 . 1 changed file with 8 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -11,4 +11,11 @@ $ cat ~/projects/foo/somefile.js | xclipmd or in vim, do a visual selection and then press `:` and type `.! xclipmd`: (and paste into slack etc) ## Install $ cd ~/bin $ wget "https://gist.github.com/coderofsalvation/7ff980326e9f75261eee8f8e0896ac3b/raw/7beb0288efc4769348d146cc020e18ca026aa81b/xclip" $ wget "" $ chmod 755 xclip xclipmd -
coderofsalvation created this gist
Apr 25, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ ## In action ``` $ cat ~/projects/foo/somefile.js | xclip (paste into browser) $ cat ~/projects/foo/somefile.js | xclipmd (paste into markdowncompatible website like slackchat etc) ``` or in vim, do a visual selection and then press `:` and type `.! xclipmd`: (and paste into slack etc) 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ #!/bin/bash if [[ "$(uname)" =~ Darwin ]]; then cat - | pbcopy else cat - | IS_MAC=1 fi 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ #!/bin/bash { echo '```' cat - echo '```' } | xclip