Skip to content

Instantly share code, notes, and snippets.

View colebrooke's full-sized avatar

Justin Miller colebrooke

  • @concrete-cc
  • United Kingdom
View GitHub Profile
@guoyoujin
guoyoujin / install cfssl
Last active July 1, 2024 20:32
linux install cfssl
source:
https://pkg.cfssl.org/
install:
$ curl -s -L -o /bin/cfssl https://pkg.cfssl.org/R1.2/cfssl_linux-amd64
$ curl -s -L -o /bin/cfssljson https://pkg.cfssl.org/R1.2/cfssljson_linux-amd64
$ curl -s -L -o /bin/cfssl-certinfo https://pkg.cfssl.org/R1.2/cfssl-certinfo_linux-amd64
$ chmod +x /bin/cfssl*
@colebrooke
colebrooke / nagios_notify_slack.sh
Last active August 18, 2017 08:38
Script to allow nagios to generate a slack notification
#!/bin/bash
# Slack notification script, for use by Nagios or other similar monitoring systems.
#
# Author: Justin Miller
# Github: github.com/colebrooke
#
# Usage:
#
# ./nagios_notify_slack.sh <SLACKCHANNEL>
@stalniy
stalniy / import-gitlab.sh
Created November 22, 2016 13:45
Creates and pushes projects from one gitlab to another
#!/bin/bash
# Put proper URLs here
SOURCE_GITLAB_URL=http://source.example.net/api/v3/
DESTINATION_GITLAB_URL=http://dest.example.net/api/v3/
DESTINATION_GIT_URL=git@dest.example.net
SOURCE_PRIVATE_KEY=
DESTINATION_PRIVATE_KEY=
TMP_DIR=`mktemp -d`
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a