Skip to content

Instantly share code, notes, and snippets.

View pacphi's full-sized avatar
🎯
Focusing

Chris Phillipson pacphi

🎯
Focusing
View GitHub Profile
@danhigham
danhigham / main.go
Last active December 13, 2018 00:27
Hall of shame, cf memory consumption
package main
import (
"bufio"
"fmt"
"os"
"sort"
"strings"
"syscall"
@merikan
merikan / Jenkinsfile
Last active October 20, 2025 06:37
Some Jenkinsfile examples
Some Jenkinsfile examples
def getProjectName() {
return 'JenkinsPipeline'
}
def getJDKVersion() {
return 'jdk1.8.0_101'
}
def getMavenConfig() {
return 'maven-config'
@Adron
Adron / install-terraform-packer-os-x.sh
Last active February 18, 2025 23:07
Install Terraform & Packer on Linux
#!/usr/bin/env bash
# Script prerequisite > install jq > https://stedolan.github.io
# ********************************************************************************************
# UPDATE: Check out Robert's repo here https://github.com/robertpeteuil/terraform-installer
# Robert's repo is more built out and has more options around the installation process.
# Cheers! -Adron
# ********************************************************************************************
cd ~
@bgandon
bgandon / bosh-cheatsheet.md
Last active November 8, 2024 15:32 — forked from allomov-altoros/bosh-cheatsheet.md
BOSH CLI cheatsheet

BOSH command line interface cheatsheet

Introduction

Bosh is a powerful tool to install and manage your Cloud Virtual Machine workloads (VMs), referred to as “deployments”. You can find docs on //bosh.io/docs. Consider using bosh create-env tool to install to a Cloud of your choice a new Bosh Director.

Bosh uses a CPI (Cloud Provider Interface) to talk to the underlying IaaS/Cloud and manage Cloud workloads, just like a computer uses a driver to talk to a printer. CPIs are very similar to the Infrastructure Cloud Providers later implemented in the ClusterAPI technology, but Bosh abstractions apply to any scope of workloads where ClusterAPI is very restrictive, and Bosh concepts map the problem space better than ClusterAPI, reaching better efficiency in the convergence loop towards the expected (healthy) state of workloads.

Director, Stemcell, Release, Deployment, Instance, are words that have a very specific meaning in Bosh context, so we capitalize them here.

@soheilhy
soheilhy / nginxproxy.md
Last active July 5, 2025 15:29
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"