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 / 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'
@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]}"
#!/bin/bash
# http://archives.postgresql.org/pgsql-admin/2010-05/msg00285.php
# Output lines suitable for sysctl configuration based
# on total amount of RAM on the system. The output
# will allow up to 50% of physical memory to be allocated
# into shared memory.
# On Linux, you can use it as follows (as root):
#
# ./shmsetup >> /etc/sysctl.conf
@bigbosst
bigbosst / logstash_init
Last active December 23, 2015 07:19 — forked from rtd/logstash.sh
Debian Wheezy Logstash Shipper Init Script
#! /bin/sh
#
# /etc/rc.d/init.d/logstash-shipper
#
# Starts Logstash as a daemon
#
# chkconfig: 2345 20 80
# description: Starts Logstash as a daemon
# pidfile: /var/run/logstash-shipper.pid