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
(lambda a:a.route('/')(lambda:'Hello')+a.run())(__import__('flask').Flask('')) |
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
#!/usr/bin/env python | |
import re | |
from sys import argv | |
if len(argv)<3: | |
print("Usage:") | |
print("{} <string> <pattern>".format(argv[0])) | |
exit(2) | |
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
# Welcome to my tmux config! | |
# Some helpful notes to future me | |
# - bind is an alias of bind-key (no difference). | |
# - bind <key> binds the key after the prefix. | |
# - bind -r <key> binds the key in the root table, | |
# meaning no prefix is necessary. | |
# - | |
# Put Plugins first because they may define behavior |
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
# Make it so when you set the window title, | |
# it is never automatically changed by tmux | |
set-option -g allow-rename off | |
# This enables mouse reporting. It lets you: | |
# - Click on a pane to activate it | |
# - Right click a pane to `mark` it | |
# - Drag borders to resize panes | |
setw -g mouse on | |
set -g mouse on |
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
# This is a sanity check to make sure we're parsing major, minor, patch versions correctly | |
➜ ~ echo 'abcdeef-v123.456.789 blah' | sed -E 's/.*-v([0-9]+)\.([0-9]+)\.([0-9]+).*/major=\1, minor=\2, patch=\3/g' | |
major=123, minor=456, patch=789 | |
# These parse out each of the parts | |
➜ ~ echo 'abcdeef-v123.456.789 blah' | sed -E 's/.*-v([0-9]+)\.([0-9]+)\.([0-9]+).*/\1/g' | |
123 | |
➜ ~ echo 'abcdeef-v123.456.789 blah' | sed -E 's/.*-v([0-9]+)\.([0-9]+)\.([0-9]+).*/\2/g' | |
456 | |
➜ ~ echo 'abcdeef-v123.456.789 blah' | sed -E 's/.*-v([0-9]+)\.([0-9]+)\.([0-9]+).*/\3/g' |
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
# Cron Syntax Refresher | |
# | |
# /- Minute (0-59) | |
# | /- Hour (0-23) | |
# | | /- Day (1-31) | |
# | | | /- Month (1-12) | |
# | | | | /- Day of Week (0-7: 0 and 7 are Sunday) | |
# * * * * * | |
# | |
# * is any value |
OlderNewer