Skip to content

Instantly share code, notes, and snippets.

View ddfreiling's full-sized avatar
💪
Working on my DevOps

Daniel Freiling ddfreiling

💪
Working on my DevOps
View GitHub Profile
@ddfreiling
ddfreiling / k8sdump.sh
Created January 18, 2022 10:53 — forked from xykong/k8sdump.sh
Export Kubernetes cluster resource to yaml.
#!/usr/bin/env bash
readonly SCRIPT=$(basename "$0")
readonly VERSION='1.0.0'
readonly AUTHOR='[email protected]'
readonly SOURCE='https://gist.github.com/xykong/6efdb1ed57535d18cb63aa8e20da3f4b'
# For script running robust
set -o nounset # to exit when your script tries to use undeclared variables
set -o errexit # to make your script exit when a command fails
@ddfreiling
ddfreiling / instructions.md
Created September 2, 2019 07:34 — forked from sveggiani/instructions.md
[Configure XDebug, Visual Studio Code for a Vagrant VM] #debug #vm #vscode

Configure XDebug, Visual Studio Code for a Vagrant VM

1. Assumptions

  • Project (Drupal) is served on /var/www/html in the Vagrant box
  • Local project files location: c:\Users\username\Work\projects\my-project\repo\html
  • Guest machine IP is 10.0.2.2 (if this doesn't work, run route -nee in the VM and look for the gateway address)

2. Configuration

@ddfreiling
ddfreiling / iterm2-solarized.md
Created March 9, 2018 21:52 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@ddfreiling
ddfreiling / extract-testflight.js
Last active July 12, 2017 08:10 — forked from creaoy/extract-testflight.js
Extract TestFlight user email addresses from iTunes Connect
var http = angular.element(document.body).injector().get('$http');
var sectionScope = angular.element($('tbody').get(0)).scope()
http.get(sectionScope.apiCall + '?limit=10000').then((res) => {
console.log(`Received ${res.data.length} testers...`);
var text = '';
for (const tester of res.data) {
text += `${tester.firstName},${tester.lastName},${tester.email}\n`;
}
var a = document.createElement("a");
#!/usr/bin/bash
# This script deletes all local branches which has been fully merged
# with $master_branch and optionally from remote/origin too.
master_branch=master
current_branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
if [ "$current_branch" != "$master_branch" ]; then
printf "ERROR: You are on branch $current_branch, NOT $master_branch."
exit
fi