Skip to content

Instantly share code, notes, and snippets.

View dweomer's full-sized avatar
🤠
/nerdface

Jacob Blain Christen dweomer

🤠
/nerdface
View GitHub Profile
@michaelkirk
michaelkirk / show-remote-branch-info.sh
Created May 4, 2012 16:51
sort remote branches by age
#!/bin/sh
#
# Too many crusty old git branches? Run this to find likely candidates for deletion
# It lists all the remote branches and sorts them by age.
#
# Folks at pivotal shared this with me
#
#$ . show-remote-branch-info.sh
# 2012-05-04 09:42:29 -0700 4 minutes ago Ted & Bill \torigin/hey_Bill
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 3, 2024 19:09
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@halyph
halyph / postbuild.groovy
Last active April 5, 2019 13:58
Jenkins Groovy Postbuild script
import hudson.model.*
import com.tikal.jenkins.plugins.multijob.*;
void log(msg) {
manager.listener.logger.println(msg)
}
threshold = Result.SUCCESS
void aggregate_results() {
@davewongillies
davewongillies / OpenSSL Cheatsheet.md
Last active December 28, 2023 13:06
OpenSSL Cheatsheet

General OpenSSL Commands

These commands allow you to generate CSRs, Certificates, Private Keys and do other miscellaneous tasks.

Generate a new private key and Certificate Signing Request

openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key
@shamil
shamil / mount_qcow2.md
Last active May 3, 2024 06:35
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
@tobert
tobert / 00fun.txt
Last active November 15, 2015 08:29
Docker w/ link-local API
This is a silly example for dinking around with the Docker API on a link-local dummy interface.
@bradrydzewski
bradrydzewski / generate_docker_cert.sh
Last active March 12, 2024 17:00
Generate trusted CA certificates for running Docker with HTTPS
#!/bin/bash
#
# Generates client and server certificates used to enable HTTPS
# remote authentication to a Docker daemon.
#
# See http://docs.docker.com/articles/https/
#
# To start the Docker Daemon:
#
# sudo docker -d \
@dweomer
dweomer / .vimrc
Last active August 29, 2015 14:25
set ts=4
set sw=4
set expandtab
set background=dark
set modeline
highlight Normal guifg=white guibg=black
syntax on
curl -OL -H "Cookie: oraclelicense=accept-securebackup-cookie" \
"http://download.oracle.com/otn-pub/java/jdk/8u51-b16/jdk-8u51-linux-x64.tar.gz"
@golonzovsky
golonzovsky / docker-compose.yml
Last active September 26, 2022 05:10
docker compose to start jenkins, nexus, sonar, selenium hub and chrome nodes
nexus-data:
container_name: nexus-data
image: sonatype/nexus:oss
command: echo "data-only container for Nexus"
nexus:
container_name: nexus
image: sonatype/nexus:oss
environment:
- CONTEXT_PATH=/nexus