From 0ce6ea3b235b10c8f799c1cd350589499e2fbd65 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 13 Aug 2018 16:34:39 -0400 Subject: [PATCH] update pb function, add blinkenshell ssl fp --- fish/.config/fish/functions/pb.fish | 6 ++++- weechat/.weechat/irc.conf | 6 ++--- weechat/.weechat/plugins.conf | 35 +++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 4 deletions(-) diff --git a/fish/.config/fish/functions/pb.fish b/fish/.config/fish/functions/pb.fish index 09febb8..0524799 100644 --- a/fish/.config/fish/functions/pb.fish +++ b/fish/.config/fish/functions/pb.fish @@ -1,4 +1,8 @@ function pb - nc tilde.team 9999 + if count $argv > /dev/null + curl -F'file=@'$argv[1] https://0x0.tilde.team + else + curl -F'file=@-;filename=stdin.txt' https://0x0.tilde.team + end end diff --git a/weechat/.weechat/irc.conf b/weechat/.weechat/irc.conf index dad3bcd..a45f6d7 100644 --- a/weechat/.weechat/irc.conf +++ b/weechat/.weechat/irc.conf @@ -610,8 +610,8 @@ blinkenshell.ssl = on blinkenshell.ssl_cert blinkenshell.ssl_priorities blinkenshell.ssl_dhkey_size -blinkenshell.ssl_fingerprint -blinkenshell.ssl_verify = off +blinkenshell.ssl_fingerprint = "942D15173B72AD2A6CA0EADEABE7D3CCEB769A3BB56444B9D09C6FC34EB630B3" +blinkenshell.ssl_verify blinkenshell.password blinkenshell.capabilities blinkenshell.sasl_mechanism @@ -623,7 +623,7 @@ blinkenshell.sasl_fail blinkenshell.autoconnect = on blinkenshell.autoreconnect blinkenshell.autoreconnect_delay -blinkenshell.nicks +blinkenshell.nicks = "ben" blinkenshell.nicks_alternate blinkenshell.username blinkenshell.realname diff --git a/weechat/.weechat/plugins.conf b/weechat/.weechat/plugins.conf index 6a9223e..bc3d361 100644 --- a/weechat/.weechat/plugins.conf +++ b/weechat/.weechat/plugins.conf @@ -92,3 +92,38 @@ python.screen_away.interval = "How often in seconds to check screen status" python.screen_away.message = "Away message" python.screen_away.set_away = "Set user as away." python.screen_away.time_format = "time format append to away message" +python.urlserver.buffer_short_name = "use buffer short name on dedicated buffer (default: "off")" +python.urlserver.color = "color for urls displayed after message (default: "darkgray")" +python.urlserver.color_in_msg = "color for urls displayed inside irc message: it is a number (irc color) between 00 and 15 (see doc for a list of irc colors) (default: "")" +python.urlserver.debug = "print some debug messages (default: "off")" +python.urlserver.display_urls = "display URLs below messages (default: "on")" +python.urlserver.display_urls_in_msg = "add shorten url next to the original url (only in IRC messages) (useful for urlserver behind relay/irc) (default: "off")" +python.urlserver.http_allowed_ips = "regex for IPs allowed to use server (example: "^(123.45.67.89|192.160.*)$") (default: "")" +python.urlserver.http_auth = "login and password (format: "login:password") required to access to page with list of URLs (note: content is evaluated, see /help eval) (default: "")" +python.urlserver.http_auth_redirect = "require the login/password (if option "http_auth" is set) for URLs redirections (default: "on")" +python.urlserver.http_autostart = "start the built-in HTTP server automatically) (default: "on")" +python.urlserver.http_bg_color = "background color for HTML page (default: "#f4f4f4")" +python.urlserver.http_css_url = "URL of external Cascading Style Sheet to add (BE CAREFUL: the HTTP referer will be sent to site hosting CSS file!) (empty value = use default embedded CSS) (default: "")" +python.urlserver.http_embed_image = "embed images in HTML page (BE CAREFUL: the HTTP referer will be sent to site hosting image!) (default: "off")" +python.urlserver.http_embed_youtube = "embed youtube videos in HTML page (BE CAREFUL: the HTTP referer will be sent to youtube!) (default: "off")" +python.urlserver.http_embed_youtube_size = "size for embedded youtube video, format is "xxx*yyy" (default: "480*350")" +python.urlserver.http_fg_color = "foreground color for HTML page (default: "#000")" +python.urlserver.http_hostname = "force hostname/IP in bind of socket (empty value = auto-detect current hostname) (default: "")" +python.urlserver.http_hostname_display = "display this hostname in shortened URLs (default: "")" +python.urlserver.http_open_in_new_page = "open links in new pages/tabs (default: "on")" +python.urlserver.http_port = "force port for listening (empty value = find a random free port) (default: "")" +python.urlserver.http_port_display = "display this port in shortened URLs. Useful if you forward a different external port to the internal port (default: "")" +python.urlserver.http_prefix_suffix = "suffix displayed between prefix and message in HTML page (default: " ")" +python.urlserver.http_scheme_display = "display this scheme in shortened URLs (default: "http")" +python.urlserver.http_time_format = "time format in the HTML page (default: "%d/%m/%y %H:%M:%S")" +python.urlserver.http_title = "title of the HTML page (default: "WeeChat URLs")" +python.urlserver.http_url_prefix = "prefix to add in URLs to prevent external people to scan your URLs (for example: prefix "xx" will give URL: http://host.com:1234/xx/8) (default: "")" +python.urlserver.msg_filtered = "shorten URLs in filtered messages (with /filter) (default: "off")" +python.urlserver.msg_ignore_buffers = "comma-separated list (without spaces) of buffers to ignore (full name like "irc.freenode.#weechat") (default: "core.weechat,python.grep")" +python.urlserver.msg_ignore_dup_urls = "ignore duplicated URLs (do not add an URL in list if it is already) (default: "off")" +python.urlserver.msg_ignore_regex = "ignore messages matching this regex (default: "")" +python.urlserver.msg_ignore_tags = "comma-separated list (without spaces) of tags (or beginning of tags) to ignore (for example, use "notify_none" to ignore self messages or "nick_weebot" to ignore messages from nick "weebot") (default: "irc_quit,irc_part,notify_none")" +python.urlserver.msg_require_tags = "comma-separated list (without spaces) of tags (or beginning of tags) required to shorten URLs (for example "nick_" to shorten URLs only in messages from other users) (default: "nick_")" +python.urlserver.separators = "separators for short url list (string with exactly 3 chars) (default: "[|]")" +python.urlserver.url_min_length = "minimum length for an URL to be shortened (0 = shorten all URLs, -1 = detect length based on shorten URL) (default: "0")" +python.urlserver.urls_amount = "number of URLs to keep in memory (and in file when script is not loaded) (default: "100")"