Skip to content

Instantly share code, notes, and snippets.

View V1ncNet's full-sized avatar

Vincent Nadoll V1ncNet

View GitHub Profile
@V1ncNet
V1ncNet / git-gerrit-push
Created August 6, 2021 17:35
Git Extension for Gerrit
#!/usr/bin/env python3
# Queries from https://gerrit-review.googlesource.com/Documentation/user-upload.html
import sys
import getopt
import subprocess
query_entries = []
@V1ncNet
V1ncNet / .travis.yml
Last active February 6, 2019 13:10
A Docker tag and push script for use with Travis CI. Best results with git tags (vX.X.X).
language: java
jdk:
- oraclejdk8
branches:
only:
- master
services:
- docker
@V1ncNet
V1ncNet / cage.sh
Last active March 27, 2018 12:55 — forked from kiliankoe/cage.sh
#!/bin/sh
# Supported desktop environments
# 1. Aqua (MacOS)
# 2. Gnome
# 3. Unity
# 4. Feh
# 5. xfce4
# 6. KDE
@V1ncNet
V1ncNet / update-do-dns.sh
Last active March 1, 2018 18:49
Update a DNS record dynamically on DigitalOcean with a Shell Script
#!/bin/bash
#########################################################################
# #
# DNS Record Updater #
# #
# Purpose: Update a DNS Record on DigitalOcean via the DigitalOcean API #
# #
# Description: This script retreive the current public IP address which #
# will be stored in the .curip file. If the curled address #
@V1ncNet
V1ncNet / dumpmysql.sh
Last active September 21, 2017 12:35
Dump MySQL databases remotely and copy to backup server
#!/bin/sh
### SSH Info ###
RHOST="sub.domain.tld" # Remote Host
RUSER="username" # Remote User
RDIR="/home/username/backup" # Remote Backup Directory
### System Setup ###
DATE=`date +%Y-%m-%d` # Current Date (2017-10-01)
KEEPDAYS=14 # Days to keep