Last active
March 7, 2023 19:12
-
-
Save surfzoid/70725426862ffde88f5f8a136b451f21 to your computer and use it in GitHub Desktop.
Use geany.lua to paste on termbin
This file contains 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
In geany tool/plugin manager, enable lua pluggin | |
create : ~/.config/geany/plugins/geanylua/events/configure.lua | |
create & edit : ~/.config/geany/plugins/geanylua/termbin.lua with the folowing content: | |
local ok,msg = geany.launch("/home/eric/.config/geany/plugins/geanylua/totb.sh",geany.filename ()) | |
if not ok then geany.message(msg) end | |
create & edit & make it executable : ~/.config/geany/plugins/geanylua/totb.sh with the folowing content: | |
#!/bin/bash | |
echo $1 | |
firefox `/usr/bin/cat "$1"|nc termbin.com 9999` | |
echo $RESULT | |
now you will have tool/luascript/termbin after geany restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment