sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| # Full instructions | |
| # https://blog.entrostat.com/install-byobu-on-any-linux-distro/ | |
| BYOBU_VERSION=5.133 | |
| set -e | |
| echo "Please make sure you have the following dependencies installed:" | |
| echo " [+] tar" | |
| echo " [+] screen" |
| #!/usr/bin/env bash | |
| # This script prints out all of your Redis keys and their size in a human readable format | |
| # Copyright 2013 Brent O'Connor | |
| # License: http://www.apache.org/licenses/LICENSE-2.0 | |
| human_size() { | |
| awk -v sum="$1" ' BEGIN {hum[1024^3]="Gb"; hum[1024^2]="Mb"; hum[1024]="Kb"; for (x=1024^3; x>=1024; x/=1024) { if (sum>=x) { printf "%.2f %s\n",sum/x,hum[x]; break; } } if (sum<1024) print "1kb"; } ' | |
| } |
| # luna_pinyin.custom.yaml | |
| # | |
| # 【朙月拼音】模糊音定製模板 | |
| # 佛振配製 :-) | |
| # | |
| # 位置: | |
| # ~/.config/ibus/rime (Linux) | |
| # ~/Library/Rime (Mac OS) | |
| # %APPDATA%\Rime (Windows) | |
| # |
| #!/usr/bin/env python | |
| # Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
| # Written by Nathan Hamiel (2010) | |
| from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
| from optparse import OptionParser | |
| class RequestHandler(BaseHTTPRequestHandler): | |
| def do_GET(self): |
| # Copyright (c) 2010, Philip Plante of EndlessPaths.com | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: | |
| # | |
| # The above copyright notice and this permission notice shall be included in |