Skip to content

Instantly share code, notes, and snippets.

View jacksoncage's full-sized avatar
🏠
Working from home

Love Billingskog Nyberg jacksoncage

🏠
Working from home
View GitHub Profile
FROM java:jdk
LABEL maintainer "yury.sannikov@gmail.com"
ENV DEBIAN_FRONTEND noninteractive
ENV UPDATED_AT 2017-05-15
################################################################################################
###
### Environment variables
# Copyright 2003, 2004 Jeroen van Wolffelaar <jeroen@wolffelaar.nl>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
+ git clone https://github.com/tatsuhiro-t/nghttp2.git /usr/local/src/nghttp2
Cloning into '/usr/local/src/nghttp2'...
remote: Counting objects: 33700, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 33700 (delta 0), reused 0 (delta 0), pack-reused 33697
Receiving objects: 100% (33700/33700), 25.76 MiB | 4.90 MiB/s, done.
Resolving deltas: 100% (24885/24885), done.
+ cd /usr/local/src/nghttp2
+ autoreconf -i
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `.'.
#!/bin/bash
ORG_DIR=`pwd`
SRC_DIR="/usr/local/src/"
cd $SRC_DIR
echo "####### START: apt-get deps ########"
apt-get -qq update
apt-get install -yqq --force-yes g++ make binutils autoconf automake autotools-dev libtool pkg-config \

Keybase proof

I hereby claim:

  • I am jacksoncage on github.
  • I am jacksoncage (https://keybase.io/jacksoncage) on keybase.
  • I have a public key whose fingerprint is 24BE D167 F802 EB0D B75D 1887 C19F 9F3F 783B 4CBF

To claim this, I am signing this object:

@jacksoncage
jacksoncage / HeartBleed-Debian-Wheezy-Update-OpenSSL-1.0.1e-2+deb7u4.sh
Last active September 2, 2015 20:31
HeartBleed-Debian-Wheezy-Update-OpenSSL-1.0.1e-2+deb7u4.sh
# Debian Wheezy - Fixing HeartBleed
# Installing 1.0.1e-2+deb7u4
# http://www.corsac.net/?rub=blog&post=1565
# https://security-tracker.debian.org/tracker/DSA-2896-1
#
# As pointed out, not the best secured way but fast. Please use 'apt-get && apt-get upgrade' for a more secure system.
MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
wget http://security.debian.org/pool/updates/main/o/openssl/libssl1.0.0-dbg_1.0.1e-2+deb7u5_amd64.deb
DOCKER_VERSION=0.6.5
DATA_DIR="__data"
POSTGRES_VERSION=9.3
PORT=5432
.PHONY: docker-check docker-version postgres
docker-check:
@command -v docker >/dev/null 2>&1 || \
{ echo >&2 "Docker needs to be installed and on your PATH. Aborting."; exit 1; }
@jacksoncage
jacksoncage / gist:7186636
Last active December 26, 2015 17:19
Script to stop/start a play framework application.
#!/bin/sh
#
# play-run: Launch a play run instance on this node
#
# chkconfig: - 99 01
# description: Enable this play application to run
#
PLAY_WORKDIR="/var/www/play"
PLAY_LOGDIR="/var/log/play"
@jacksoncage
jacksoncage / jenkins-slave
Last active December 8, 2023 23:40
Bash script to check if a Jenkins slave node is offline and will restart node java process.
#!/bin/sh
#
# jenkins-slave: Launch a Jenkins BuildSlave instance on this node
#
# chkconfig: - 99 01
# description: Enable this node to fulfill build jobs
#
JENKINS_WORKDIR="/var/jenkins"
JENKINS_USER="jenkins"
@jacksoncage
jacksoncage / post-recive hook in Atlassian Stash
Created May 10, 2013 20:30
Create post-recive hook in Atlassian Stash that notifys Jenkins on push
#!/bin/bash
# Create git hook on stash server
# Exit script on error
set -e
# Define the function that renders super awesome header
renderHeader () {
HEADER=$1
printf "\n\n"