Skip to content

Instantly share code, notes, and snippets.

View necrose99's full-sized avatar

Michael L. necrose99

View GitHub Profile
@necrose99
necrose99 / vup
Last active August 29, 2015 14:18 — forked from alexander-bauer/vup
#!/bin/bash
# This script bumps the version number of a Go project. The variable "Version"
# should be declared as a constant in the file that matches the name of the
# project. For example, a project contained in example/ should declare Version
# in example.go.
#
# To use: vup <level>
#
# <level> is the depth of the bump, determined by number of periods
# to the left of the number. For example, bumping v1 to v2 is a level
# This is a general-purpose function to ask Yes/No questions in Bash, either
# with or without a default answer. It keeps repeating the question until it
# gets a valid answer.
ask() {
# http://djm.me/ask
while true; do
if [ "${2:-}" = "Y" ]; then
prompt="Y/n"
@necrose99
necrose99 / gist:8b159da197ad5b64a753
Created July 23, 2015 23:52
GoogleCloudPlatform/compute-sabayon-image-builder
https://github.com/GoogleCloudPlatform/compute-sabayon-image-builder
@necrose99
necrose99 / archroot.sh
Created May 18, 2016 02:37 — forked from prurigro/archroot.sh
An overlayfs-based chroot management script for deployable arch build environments
#!/usr/bin/env bash
#
# archroot
# An overlayfs chroot management script for deployable arch build environments
#
# Version 1.18
#
# Written by Kevin MacMartin
# Released under the MIT license
#!/bin/bash
# Created Fri Mar 21 2014
# This is a fork of https://gist.github.com/SeonghoonKim/4378896
# This script will download, install and start
# the following items on CentOS 6.5:
# MongoDB
# OpenJDK 1.7.0
# ElasticSearch 0.90.1
# Graylog2 server 0.20.1
# Graylog2 web interface 0.20.1
@necrose99
necrose99 / gzip-demo.py
Created July 5, 2017 18:10 — forked from dreikanter/gzip-demo.py
Create tar.gz archive with Python, unpack files back and check the result
# Python gzip demo: create and unpack archive
import os
import random
import string
import glob
import tarfile
import shutil
import filecmp
#/bin/python3
#https://www.pythonconverter.com/
# -*- coding: utf-8 -*-
import re
import distutils.sysconfig as sysconfig
import os
__doc__ = '''set-me-up.
Usage:
set-me-up <projectdir>

Keybase proof

I hereby claim:

  • I am necrose99 on github.
  • I am necrose99 (https://keybase.io/necrose99) on keybase.
  • I have a public key ASBGXkou-yCTUpOhTUyrEGVyVDzQGl8vbyJ1I3GEDFSf9Ao

To claim this, I am signing this object:

@necrose99
necrose99 / equo.sql-patch.txt
Last active April 27, 2018 18:09
#arm64_gentoo #Sabayon-Linux ## crossdev
# gist , equo.sql-patch.txt & notes..
#https://raw.githubusercontent.com/mudler/docker-sabayon-base/master/ext/equo.sql
### https://github.com/sakaki-/gentoo-on-rpi3-64bit base image..
##
## docker tried for 12 weeks of fails..
## quemu arm64 on Gentoo or sabayon and docker run 75 miles hour into a woodchipper , saguaro cactus, climb a saguaro cactus , make love to wife on a pile of cacti...
## join BDSM cults .... geting it to work .... might try working debian docker [entrypoint chrooot-me.sh /gentoo-arm64]
### however docker/quemu-docker for gentoo arm64 is atm not your FIREND ... so a few dev boards or servers needs be aquired.
## sufice to say docker on sabayon/genoo.. with quemu arm64 has proved painful...
##
@necrose99
necrose99 / caddy
Created May 4, 2018 03:04 — forked from sebastianmarkow/caddy
caddy web server openrc startup script
#!/sbin/openrc-run
description="Caddy web server"
description_reload="Reload configuration"
extra_started_commands="reload"
: ${CADDY_CONF:=/etc/caddy/Caddyfile}
: ${CADDY_PIDFILE:=/var/run/caddy.pid}
: ${CADDY_USER:=caddy}