Skip to content

Instantly share code, notes, and snippets.

View bigbosst's full-sized avatar

Troy bigbosst

  • memes.bz
  • Anaheim Ca
View GitHub Profile
@bigbosst
bigbosst / gist:890c9d63e5039d4ebd07075a2d51a3a4
Last active August 15, 2019 20:14 — forked from naga41/gist:4254447
Jenkins jnlp slave init script
#!/bin/sh
#
# jenkins-slave: Launch a Jenkins BuildSlave instance on this node
#
# chkconfig: - 99 01
# description: Enable this node to fulfill build jobs
#
# Source function library.
. /lib/lsb/init-functions
@bigbosst
bigbosst / BackupRotated
Created August 6, 2019 14:09
A simple rotational backup script that will rotate daily, weekly, monthly, and yearly backups.
#!/bin/bash
SRC_DIR="/var/www/html"
BACKUP_DIR="/mnt/backups"
PROJECT_NAME="project"
BACKUP_RETENTION_DAILY=6
BACKUP_RETENTION_WEEKLY=3
BACKUP_RETENTION_MONTHLY=3
BACKUP_RETENTION_YEARLY=0

Keybase proof

I hereby claim:

  • I am bigbosst on github.
  • I am bigbosst (https://keybase.io/bigbosst) on keybase.
  • I have a public key whose fingerprint is 6642 8D75 4C89 2DFB 3D12 5A85 9999 1ABF 6790 EAF9

To claim this, I am signing this object:

@bigbosst
bigbosst / releasenotes-deploymenttasks-html.vm
Created February 12, 2016 21:48
Jira Release Notes HTML with a collection of Deployment Tasks at the bottom
#disable_html_escaping()
##Text is escaped twice so that the characters generated in the text area display properly escaped (JRA-12184)
###macro (doubleEncode $html)
## $textUtils.htmlEncode($textUtils.htmlEncode($html))
###end
#macro (getDeploymentTasks $issue $customFieldManager)
#set ($customFields = $customFieldManager.getCustomFieldObjects($issue.project.getLong("id"), $issue.issueType.getString("id")))
#foreach($customField in $customFields)
#if($customField.name.equals("Deployment Tasks"))
#if($customField.getValue($issue))
@bigbosst
bigbosst / slack.rb
Created October 9, 2015 22:10 — forked from matmannion/slack.rb
check-mk-notify Slack notifications
#!/usr/bin/env ruby
# Notify by Slack
require 'net/http'
require 'uri'
require 'cgi'
require 'json'
domain = 'SLACK_DOMAIN'
webhook_url = 'SLACK_WEBHOOK_URL'
sudo salt "lxchost.youmail.com" lxc.init lxcguest.example.com nic_opts="{'eth0': {'ipv4': '192.168.0.10/24'}}" gateway=192.168.0.1 dnsservers=[8.8.8.8,4.2.2.2] searchdomains=example.com template=debian bridge=br0 start=True install=True seed=True autostart=True users=[root] password='root' options='{release: jessie}'
@bigbosst
bigbosst / supervisorctl
Last active November 29, 2018 12:03 — forked from pfreixes/gist:3187511
supervisorctl bash completion
# pfreixes, 2012-07-27
# Add to /etc/bash_completion.d/supervisorctl
_supervisor()
{
local cur prev opts base
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
@bigbosst
bigbosst / gist:f7faee0576efa2dc15be
Created December 23, 2014 02:04
tinyurl irssi - thanks thehaz
# tinyurl.pl
use strict;
use warnings;
use LWP::Simple;
use Irssi;
our $VERSION = '1.0';
our %IRSSI = (
author => 'Hazael Sanchez',
@bigbosst
bigbosst / gist:7f0a8ef8809cb10e70e5
Last active August 29, 2015 14:11
irssi memes function
# memes.pl
use strict;
use warnings;
use LWP::Simple;
use Irssi;
our $VERSION = '1.0';
our %IRSSI = (
author => 'Troy Germain',
#!/bin/bash
# Shell script to install your public key on a remote machine
# Takes the remote machine name as an argument.
# The remote machine must accept password authentication,
# one of the other keys in your ssh-agent,
# or accept the key passed with the Identity (-i) flag for this to work.
# -f : public identity to copy to the known_hosts file