Skip to content

Instantly share code, notes, and snippets.

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

Simon Hönscheid SimonHoenscheid

🏠
Working from home
View GitHub Profile
@jlstrater
jlstrater / bananabread.txt
Last active February 15, 2018 07:29
Banana Bread Recipe
Banana Bread (adapted from the St. Peter's Catholic Church Cookbook from my childhood)
1/2 cup butter (about half a 250g bar) softened
1 1/4 cup sugar (about 250 g)
2 eggs
1 1/2 cup flour (about 180 g)
3/4 tsp baking powder
2 1/2 tsp milk
1/2 tsp vinegar
1 tsp vanilla
@rocketraman
rocketraman / .gitconfig
Last active November 7, 2024 21:42
.gitconfig aliases useful for gitworkflow (https://github.com/rocketraman/gitworkflow)
[alias]
# Basically `log --oneline --decorate --graph` with different colors and some additional info (author and date)
lg = log --graph --abbrev-commit --decorate --format=format:'%C(yellow)%h%C(reset) %C(normal)%s%C(reset) %C(dim white)%an%C(reset) %C(dim blue)(%ar)%C(reset) %C(dim black)%d%C(reset)'
# lg (see above) with --first-parent
lgp = log --graph --abbrev-commit --decorate --format=format:'%C(yellow)%h%C(reset) %C(normal)%s%C(reset) %C(dim white)%an%C(reset) %C(dim blue)(%ar)%C(reset) %C(dim black)%d%C(reset)' --first-parent
# https://stackoverflow.com/questions/61510067/show-specific-commits-in-git-log-in-context-of-other-commits
hl = "!f() { cd -- ${GIT_PREFIX:-.}; grep --color -E \"$(git log --pretty=%h \"$@\" | tr '\n' '|')\" || true; }; f"
hlp = "!f() { cd -- ${GIT_PREFIX:-.}; less -R -p $(git log --pretty=%h \"$@\" | tr '\n' '|'); }; f"
@natemccurdy
natemccurdy / manual_code_deploy.sh
Last active May 28, 2025 19:26
Manually trigger code-manager and file-sync
#!/bin/bash
# GIST_URL: https://gist.github.com/natemccurdy/797fa9128b7eef1f07be
# This script can be run to manually trigger Code Manager to deploy code from your control-repo. This sort of
# thing is neccesary when, for example:
# - You've turned on Code Manager but have not yet made an RBAC token.
# - You want to pull down the latest version of a Puppetfile module without pushing to your GMS.
# - Something has broken the post-receive hook on your GMS that would've triggered Code Manager.
# - Syntax errors in your Puppetfile prevent you from retrieving those fixes to that Puppetfile.
# - Puppetserver has crashed due to file-sync issues between code and code-staging.
# - Code Manager can't deploy your code for various reasons that are hard to track down.
@csschwe
csschwe / gist:cbdd36e27ee708aba441
Created November 12, 2014 17:53
puppetserver error
Nov 12 17:45:47 fqdn.com systemd[1]: Starting puppetserver Service...
Nov 12 17:45:47 fqdn.com systemd[1]: Started puppetserver Service.
Nov 12 17:46:12 fqdn.com java[56495]: Failed to load feature test for posix: can't find user for 0
Nov 12 17:46:12 fqdn.com java[56495]: Cannot run on Microsoft Windows without the win32-process, win32-dir and win32-service gems: Win32API only supported on win32
Nov 12 17:46:12 fqdn.com java[56495]: Puppet::Error: Cannot determine basic system flavour
Nov 12 17:46:12 fqdn.com java[56495]: (root) at /usr/share/ruby/vendor_ruby/puppet/feature/base.rb:32
Nov 12 17:46:12 fqdn.com java[56495]: require at org/jruby/RubyKernel.java:1065
Nov 12 17:46:12 fqdn.com java[56495]: (root) at /usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
Nov 12 17:46:12 fqdn.com java[56495]: require at /usr/share/puppetserver/puppet-server-release.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55
Nov