This file contains hidden or 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 python3 | |
| # | |
| # blame(@qrkourier) | |
| # | |
| from jira import JIRA | |
| import os | |
| import sys | |
| from argparse import ArgumentParser | |
| import webbrowser |
This file contains hidden or 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
| Script that will trigger a local to remote sync when any changes below your local Google Drive folder occur - but at max. every 10 minutes - and a remote to local sync every x (e.g. 30 minutes) via a cron job. | |
| 0. Install rclone and configure it for Google Drive | |
| 1. Create files listed below | |
| 2. Configure rclone_watch_local.sh to be run on startup (e.g. using a systemd service unit) | |
| 3. Add a cron job that runs rclone_remote2local.sh every x (e.g. 30) minutes | |
| ---------------------- | |
| rclone_local2remote.sh | |
| ---------------------- |
This file contains hidden or 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
| #!/bin/bash | |
| # date: 2017-11-17 | |
| # license: GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt | |
| # author: nanpuyue <nanpuyue@gmail.com> https://blog.nanpuyue.com | |
| echo 'install: ~/.mozilla/native-messaging-hosts/hide_titlebar.json' | |
| [[ -d ~/.mozilla/native-messaging-hosts ]] || mkdir -p ~/.mozilla/native-messaging-hosts | |
| cat > ~/.mozilla/native-messaging-hosts/hide_titlebar.json << EOF | |
| { | |
| "name": "hide_titlebar", |
Proof of concept:
- Terminal 1:
- SSH to remote host
- Start a Java process with JMX registry port 50004, RMI callback
port 50005, and RMI hostname pinned to localhost:
java -Dcom.sun.management.jmxremote.port=50004 -Dcom.sun.management.jmxremote.rmi.port=50005 -Djava.rmi.server.hostname=localhost -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -cp /some/jar/file main.class
- Terminal 2:
This file contains hidden or 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
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |