Skip to content

Instantly share code, notes, and snippets.

View juhoffma's full-sized avatar

Juergen Hoffmann juhoffma

View GitHub Profile
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/buddy/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
tap "cloudfoundry/tap"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-drivers"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "homebrew/services"
tap "pivotal/tap"
brew "bash-completion"
brew "bat"
@juhoffma
juhoffma / osx_bootstrap.sh
Last active April 1, 2020 12:32 — forked from codeinthehole/osx_bootstrap.sh
Script to install stuff I want on a new OSX machine
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Some apps don't have a cask and so still need to be installed by hand. These
# include:
#
# - Twitter (app store)
# If you want to remove access to youtube on the fritz.box
# Just put the below url list in your blacklist
YouTube.com
YouTube.de
Vimeo.com
youtube.com
youtube-nocookie.com
youtu.be
ytimg.com
#dnsmasq
brew install dnsmasq
echo "listen-address=127.0.0.1" >> $(brew --prefix)/etc/dnsmasq.conf
echo "port=5354" >> $(brew --prefix)/etc/dnsmasq.conf
sudo brew services start dnsmasq
sudo mkdir -v /etc/resolver
sudo tee -a /etc/resolver/demo <<EOF
@juhoffma
juhoffma / script for google sheets.gsheet
Created January 3, 2020 14:13
Birthday and Anniversary Notifier
function sendEmail() {
var sheet = SpreadsheetApp.getActive().getSheetByName("PA")
var data = sheet.getDataRange().getValues();
var BIRTHDAY_COLUMN = data[0].indexOf("Birthdate");
var ANNIVERSARY_COLUMN = data[0].indexOf("Hire Date");
var NAME_COLUMN = data[0].indexOf("Fullname");
var NUMBER_COLUMN = data[0].indexOf("Mobile");
var MAIL_COLUMN = data[0].indexOf("E-Mail");
@juhoffma
juhoffma / opsman_feeder.sh
Last active November 26, 2018 11:10
opsman feeder
USER=
PASS=
PIVNET_TOKEN='YOUR PIVNET TOKEN'
wget https://github.com/pivotal-cf/pivnet-cli/releases/download/v0.0.55/pivnet-linux-amd64-0.0.55
mv pivnet-linux-amd64-0.0.55 pivnet
chmod +x pivnet
./pivnet login --api-token=\'$PIVNET_TOKEN\'
./pivnet download-product-files -p elastic-runtime -r 2.3.3 -i 254473 --accept-eula