#!/bin/bash
set -euo pipefail
LIVE_PARENT="/etc/puppetlabs/code"
ENVS_ROOT="${LIVE_PARENT}/environments"
STAGE_ROOT="${LIVE_PARENT}/environments_staging"
LOCKFILE="/var/lock/r10k-deploy.lock"
mkdir -p "$STAGE_ROOT"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| limactl create template:ubuntu-24.04 --cpus=2 --memory=4 | |
| limactl start ubuntu-24.04 | |
| limactl shell ubuntu-24.04 | |
| Login to VM and issue: | |
| apt update && apt install openjdk-21-jdk-headless ca-certificates | |
| cat > CheckCompromisedCa.java <<EOF | |
| import java.io.IOException; | |
| import java.net.URI; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| java.lang.IllegalStateException: Unable to borrow JRubyInstance from pool | |
| at puppetlabs.services.jruby_pool_manager.impl.jruby_internal$fn__33433$borrow_from_pool_BANG__STAR___33438$fn__33439.invoke(jruby_internal.clj:323) | |
| at puppetlabs.services.jruby_pool_manager.impl.jruby_internal$fn__33433$borrow_from_pool_BANG__STAR___33438.invoke(jruby_internal.clj:310) | |
| at puppetlabs.services.jruby_pool_manager.impl.jruby_internal$fn__33482$borrow_from_pool_with_timeout__33487$fn__33488.invoke(jruby_internal.clj:358) | |
| at puppetlabs.services.jruby_pool_manager.impl.jruby_internal$fn__33482$borrow_from_pool_with_timeout__33487.invoke(jruby_internal.clj:347) | |
| at puppetlabs.services.jruby_pool_manager.impl.instance_pool$fn__34339.invokeStatic(instance_pool.clj:48) | |
| at puppetlabs.services.jruby_pool_manager.impl.instance_pool$fn__34339.invoke(instance_pool.clj:10) | |
| at puppetlabs.services.protocols.jruby_pool$fn__34128$G__34076__34135.invoke(jruby_pool.clj:3) | |
| at puppetlabs.services.jruby_pool_manag |
-
Move Dock to Left and install cDock with transparent theme. Works best wih dark backgrounds. -
Dark Theme
- System Preferences -> General
- Appearance: Graphite
- Use dark menu bar and Dock
- Highlight color: Graphite
- System Preferences -> General
-
Install brew
sudo xcodebuild -license
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Disable window animations | |
| defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false | |
| # host name | |
| sudo scutil --set HostName "someones-retina-mbp" | |
| sudo scutil --set LocalHostName "someones-retina-mbp" | |
| sudo scutil --set ComputerName "someones-retina-mbp" | |
| #Show the ~/Library folder | |
| chflags nohidden ~/Library |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## | |
| ## only warks with GNU awk (gawk) | |
| ## highlighting for today's date can be disabled with skiptodayhighlight=1 | |
| ## command-line parameter | |
| ## | |
| # | |
| # | |
| # For color codes see: | |
| # http://www.termsys.demon.co.uk/vtansi.htm | |
| # print input string in yellow |