brew install tmux
Run tmux -CC
or tmux -CC attach
in iTerm2 and then menu is shown on terminal:
- ESC to detach
- C to run commands
- X to force quit
- L for log
#!/bin/bash | |
for i in $(find . -type d -maxdepth 1 -mindepth 1); do | |
echo "Backup $i..." | |
zip_name="$i-$(date +'%y%m%d').zip" | |
pushd "$i" && \ | |
git archive --format=zip --output="/opt/backups/$zip_name" master && \ | |
popd | |
done |
#!/usr/bin/env python | |
from google.cloud import monitoring | |
''' | |
# Using a service account with credentials in a json file: | |
JSON_CREDS = '/path/to/json' | |
from oauth2client.service_account import ServiceAccountCredentials | |
scopes = ["https://www.googleapis.com/auth/monitoring",] | |
credentials = ServiceAccountCredentials.from_json_keyfile_name( |
#!/usr/bin/python | |
"""Convert all of your Viscosity connections into OVPN configuration files for OpenVPN | |
https://gist.github.com/ishahid/693c2c97b3236a3c2416fc09ab170244 | |
""" | |
import re | |
import glob | |
from os.path import expanduser, dirname |
package main | |
import ( | |
"fmt" | |
"os" | |
"os/signal" | |
"syscall" | |
) | |
func main() { |
brew install tmux
Run tmux -CC
or tmux -CC attach
in iTerm2 and then menu is shown on terminal:
brew install tmux
Run tmux -CC
or tmux -CC attach
in iTerm2 and then menu is shown on terminal:
#!/usr/bin/env sh | |
# Example: ./download_minio.sh example.url.com username password bucket-name minio/path/to/file.txt.zst /download/path/to/file.txt.zst | |
if [ -z $1 ]; then | |
echo "You have NOT specified a MINIO URL!" | |
exit 1 | |
fi | |
if [ -z $2 ]; then |