I hereby claim:
- I am nomirose on github.
- I am nomirose (https://keybase.io/nomirose) on keybase.
- I have a public key ASDXHQwTX6CwxbN43nQH12_e-FXBGMzypjnJyrcPO6cAUAo
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| import sys | |
| import urllib | |
| import urlparse | |
| import base64 | |
| import mimetypes | |
| import cgi | |
| from os import path |
| #!/usr/bin/env python3 | |
| # This script pastes the input image on top of the template image and writes out | |
| # a new file. The reference template image includes a drop shadow. | |
| # | |
| # To get this script working on macOS, install the following dependencies: | |
| # | |
| # $ brew install pngquant | |
| # $ python3 -m pip install Pillow pngquant | |
| # |
| #!/usr/bin/env python | |
| import time, os, sys, signal | |
| sleeptime = waketime = 0.01 | |
| def send(signal, pids): | |
| for pid in pids: | |
| os.kill(pid, signal) |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python3 | |
| def main(): | |
| pass | |
| if __name__ == "__main__": | |
| main() |
| # install bluetooth tools | |
| sudo apt-get install --no-install-recommends bluetooth | |
| # find MAC address (needs to be discoverable) | |
| hcitool scan | |
| # ping it | |
| sudo l2ping -c 1 12:34:56:78:90 | |
| # Connect by MAC |
Extension:
| # My defaults for EditorConfig | |
| # https://gist.github.com/nomicode/8ac796041f358dd42c638dfe4c93ed2 | |
| # See also: | |
| # - https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties | |
| root = true | |
| [*] | |
| charset = utf-8 |
| # My defaults for markdownlint | |
| # https://gist.github.com/nomicode/fecf294dd1e1abdefc8ea31bb9b57eb9/ | |
| default: true | |
| # Disables rules that may conflict with Prettier | |
| # https://github.com/DavidAnson/markdownlint/blob/main/style/prettier.json | |
| extends: markdownlint/style/prettier | |
| # Line length |