Skip to content

Instantly share code, notes, and snippets.

Dreampuf dreampuf

Block or report user

Report or block dreampuf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dreampuf / Dockerfile
Created Aug 21, 2018
Pingfederate Container
View Dockerfile
from nimmis/java-centos:oracle-8-jre
ENV JAVA_HOME /usr/java/default
RUN yum install -y which tar nmap-ncat
ADD /opt/
RUN chmod +x /opt/
RUN /opt/ // You need to run it manually
ENTRYPOINT ["sh", "-c", "/usr/local/pingfederate-1/bin/"]
dreampuf /
Created Jul 25, 2018 — forked from swalkinshaw/
Designing a GraphQL API

Tutorial: Designing a GraphQL API

This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.

It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.

dreampuf /
Created May 23, 2018
Promethues RPM package generator
# Automatic generate a rpm package for prometheus component
# Author: dreampuf <>
# Usage: package_url
# Example:
dreampuf /
Created May 4, 2018
Build gvisor from centos:latest container
git clone --depth 1
cd gvisor
docker --rm -it "$PWD":/opt/gvisor -w /opt/gvisor centos bash
curl -O /etc/yum.repos.d/vbatts-bazel-epel-7.repo
yum install -y epel-release bazel gcc gcc-c++ git protobuf-devel protobuf-lite-devel
env CC=/usr/bin/gcc bazel build runsc
dreampuf /
Last active Nov 19, 2018
#!/usr/bin/env bash
# Install Homebrew first
/usr/bin/ruby -e "$(curl -fsSL"
# Basic development tools
brew install pyenv awscli pyenv-virtualenv go
# Enable caskroom
brew tap caskroom/cask
# Start on runlevels 3, 4 and 5. Start late, kill early.
# chkconfig: 345 95 05
dreampuf /
Created Feb 1, 2016
JetBrains downloader
function jetbrains_downloader() {
if [[ -z $pkg ]]; then
echo "Please execute with these project name to download it";
echo "=============";
case `uname` in
ostype='linux' ;;
dreampuf /
Last active Jul 18, 2017
Salt-master/Python2.6 execute salt-ssh/Python2.7
# Replace the HAS_XML assign in
$ sed -i 's#HAS_XML = True#HAS_XML = False#' $(python2.6 -c "import salt; print salt.__path__[0];")/utils/
# clean up the local thin package cache
rm /var/cache/salt/master/thin/thin.tgz
# addition `-w` and `-W` options in your command
salt-ssh -w -W -i --roster-file ROSTER_FILE 'HOSTNAME' state.sls minion-setup
dreampuf / marathon.yml
Last active Dec 14, 2015
Marathon single compose yml
View marathon.yml
# Zookeeper: -p 2181:2181 -p 2888:2888 -p 3888:3888
image: jplock/zookeeper
- "2181"
- "2888"
- "3888"
image: mesosphere/mesos-master:0.25.0-0.2.70.ubuntu1404
dreampuf /
Created Nov 25, 2015
Build yourself Python 2.7 rpm package in RHEL5/CENTOS5
# 1. install pyenv and with it download python 2.7.10
git clone ~/.pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
exec $SHELL
pyenv install 2.7.10
pyenv rehash
# 2. install rvm and fpm gem package
gpg --keyserver hkp:// --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
You can’t perform that action at this time.