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 | |
# Usage: ./update_changelog.sh <previous_tag> <new_version> | |
set -e | |
PREV_TAG="$1" | |
NEW_VERSION="$2" | |
if [ -z "$PREV_TAG" ] || [ -z "$NEW_VERSION" ]; then |
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
from __future__ import absolute_import | |
import signal | |
import gevent | |
import gevent.pool | |
from rq import Worker | |
from rq.timeouts import BaseDeathPenalty, JobTimeoutException | |
from rq.worker import StopRequested, green, blue | |
from rq.exceptions import DequeueTimeout |
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 | |
# Safe Docker Swarm Reset Script | |
# This script safely disables Docker Swarm while preserving SSH connectivity | |
# and avoiding risky network operations | |
# Minimal error handling - continue on errors to prevent hanging | |
set +e | |
echo "======= Safe Docker Swarm Reset =======" | |
echo "This script will preserve SSH connectivity throughout the process" |
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 | |
# WireGuard VPN Setup Script for Docker Swarm | |
# This script sets up a WireGuard VPN between multiple VPS servers | |
# Error handling | |
set -e | |
trap 'echo "Error on line $LINENO. Exiting."; exit 1' ERR | |
# Check if running as sudo/root | |
if [ "$(id -u)" -ne 0 ]; then |
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 | |
# Helper function for yes/no prompts | |
confirm() { | |
while true; do | |
read -p "$1 [y/N] " yn | |
case $yn in | |
[Yy]* ) echo "yes"; return 0;; | |
[Nn]* | "" ) echo "no"; return 1;; | |
* ) echo "Please answer yes or no.";; |
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 | |
#--------------------------------------------------------------------# | |
# NOTE: | |
# | |
# I have added an interactive version of this vps setup script. | |
# | |
# https://gist.github.com/legout/56ce53a0275413b4c98d01482ca52943 | |
# | |
#--------------------------------------------------------------------# |
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
Homebrew build logs for octave on macOS 10.13.6 | |
Build date: 2018-07-16 20:30:00 |