I hereby claim:
- I am czechjiri on github.
- I am czechjiri (https://keybase.io/czechjiri) on keybase.
- I have a public key ASACq5_vCcvs6OfAcIuzbClI4oKCmHFERAMW6Ml2pNGdlgo
To claim this, I am signing this object:
| // Brave custom scriptlet: two-finger trackpad scroll pans Google Maps; pinch zooms. | |
| // | |
| // Google Maps' default trackpad behavior zooms on two-finger scroll in any | |
| // direction. This makes two-finger scroll pan the map instead (in all | |
| // directions), while pinch-to-zoom keeps working normally. | |
| // | |
| // INSTALL (Brave desktop): | |
| // 1. Open brave://settings/shields/filters | |
| // 2. Turn on "Developer mode" (under Content filtering) | |
| // 3. Click "Add new scriptlet", paste this ENTIRE file into the code box |
| { | |
| "description": "Remap Left Shift + Left Command + C to Print Screen when Citrix is the frontmost app", | |
| "manipulators": [ | |
| { | |
| "conditions": [ | |
| { | |
| "bundle_identifiers": [ | |
| "^com\\.citrix\\.receiver\\.nomas$", | |
| "^com\\.citrix\\.receiver\\.icaviewer\\.mac$", | |
| "^com\\.citrix\\.ICAClient$", |
| { | |
| "description": "Remap Left Shift + Left Command + V to Right Command + V when Citrix is the frontmost app", | |
| "manipulators": [ | |
| { | |
| "conditions": [ | |
| { | |
| "bundle_identifiers": [ | |
| "^com\\.citrix\\.receiver\\.nomas$", | |
| "^com\\.citrix\\.receiver\\.icaviewer\\.mac$", | |
| "^com\\.citrix\\.ICAClient$", |
| // ==UserScript== | |
| // @name Google Maps Trackpad Fix (pan on two-finger scroll, zoom on pinch) | |
| // @namespace local.google-maps-trackpad-fix | |
| // @version 1.0 | |
| // @description Two-finger scroll pans the map in any direction; pinch zooms. Only runs on Google Maps. | |
| // @match https://www.google.com/maps* | |
| // @match https://maps.google.com/* | |
| // @run-at document-idle | |
| // @grant none | |
| // ==/UserScript== |
| #!/usr/bin/env python3 | |
| """ | |
| Copies MP3 files created/modified in the last 2 hours from the Apple | |
| Podcasts local cache into ~/Downloads/Podcasts, renamed to | |
| "Author - Podcast Name.mp3" using each file's ID3 tags. | |
| Any existing .mp3 files in the destination folder are deleted first. | |
| """ | |
| import argparse | |
| import json |
| certbot certonly --standalone \ | |
| --non-interactive \ | |
| --preferred-challenges tls-sni \ | |
| --agree-tos \ | |
| --email hostmaster@mydomain.com \ | |
| --domains vpn.mydomain.com \ | |
| --pre-hook '/usr/local/openvpn_as/scripts/sacli stop' \ | |
| --post-hook '/usr/local/openvpn_as/scripts/sacli --key "cs.priv_key" --value_file "/etc/letsencrypt/live/office.deep-labs.com/privkey.pem" ConfigPut && /usr/local/openvpn_as/scripts/sacli --key "cs.cert" --value_file "/etc/letsencrypt/live/office.deep-labs.com/cert.pem" ConfigPut && /usr/local/openvpn_as/scripts/sacli --key "cs.ca_bundle" --value_file "/etc/letsencrypt/live/office.deep-labs.com/fullchain.pem" ConfigPut && /usr/local/openvpn_as/scripts/sacli start' | |
I hereby claim:
To claim this, I am signing this object:
| from datetime import datetime, timezone | |
| print( datetime.now(timezone.utc).isoformat() ) |
| function pg_ready() | |
| { | |
| waitTime=30 # keep trying for x seconds | |
| n=0 | |
| until [ $n -ge $waitTime ]; do | |
| # please note pg_isready does not care about username/dbname | |
| # you can add correct values if you want to avoid errors in PG log | |
| pg_isready --host=$DB_HOST --port=$DB_PORT && break |