Skip to content

Instantly share code, notes, and snippets.

@steelcowboy
steelcowboy / debug.md
Created May 19, 2020 20:12
CPE Chrome Debug Data

With duplicate resource_name

Recipe: cpe_chrome::default
  * cpe_chrome[Configure Google Chrome] action config[2020-05-19T12:48:19-07:00] INFO: Processing cpe_chrome[Configure Google Chrome] action config (cpe_chrome::default line 18)
[2020-05-19T12:48:21-07:00] DEBUG: Fuzzy matches: []
 (up to date)

The diff

 # Cookbook Name:: cpe_chrome

Goal

Define a nested dictionary in the inventory vars. See this repo for full implementation

vars:
  packages:
    install: []
    remove: []
#!/bin/bash
set -x
function join_by { local IFS="$1"; shift; echo "$*"; }
target=/mnt
src=/.snapshots/1/snapshot
paths=(
steelcowboy@asclepius:~/github/paperspigot-docker|dev⚡ ⇒ docker run -it -p 25565:25565 myregistry.com/paperspigot:1.16.1
System Info: Java 11 (OpenJDK 64-Bit Server VM 11.0.8+10) Host: Linux 5.4.0-42-generic (amd64)
Loading libraries, please wait...
[02:58:04 ERROR]: Failed to load properties from file: /opt/minecraft/config/server.properties
[02:58:05 WARN]: Failed to load eula.txt
[02:58:05 INFO]: [STDERR]: You have used the Spigot command line EULA agreement flag.
[02:58:05 INFO]: [STDERR]: By using this setting you are indicating your agreement to Mojang's EULA (https://account.mojang.com/documents/minecraft_eula).
[02:58:05 INFO]: [STDERR]: If you do not agree to the above EULA please stop your server and remove this flag immediately.
[02:58:05 INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', name='PROD'
[02:58:05 INFO]: Found new data pack file/bukkit, loading it automatically
@steelcowboy
steelcowboy / go2chef-downgrade.txt
Created August 3, 2020 18:09
Allow Downgrade for Go2Chef
__ _ ___|_ )__| |_ ___ / _|
/ _` / _ \/ // _| ' \/ -_) _|
\__, \___/___\__|_||_\___|_|
|___/
GO2CHEF 2020/08/03 11:04:46 loading config from source go2chef.config_source.http
@steelcowboy
steelcowboy / nvm-bash
Created August 8, 2020 23:58
Demo nvm install in bash
testuser@a8086b20287e:~$ echo $SHELL
/bin/bash
testuser@a8086b20287e:~$ ls -a
. .. .bash_logout .bashrc .mkshrc .profile install.sh
testuser@a8086b20287e:~$ ./install.sh
=> Downloading nvm from git to '/home/testuser/.nvm'
=> Cloning into '/home/testuser/.nvm'...
remote: Enumerating objects: 290, done.
remote: Counting objects: 100% (290/290), done.
remote: Compressing objects: 100% (257/257), done.
@steelcowboy
steelcowboy / nvm-zsh
Created August 9, 2020 00:00
Demo nvm install in zsh
8d8ded2e30b4% echo $SHELL
8d8ded2e30b4% ls -a
. .. .bash_logout .bashrc .mkshrc .profile .zcompdump .zshrc install.sh
8d8ded2e30b4% ./install.sh
=> Downloading nvm from git to '/home/testuser/.nvm'
=> Cloning into '/home/testuser/.nvm'...
remote: Enumerating objects: 290, done.
remote: Counting objects: 100% (290/290), done.
remote: Compressing objects: 100% (257/257), done.
@steelcowboy
steelcowboy / nvm-dash
Created August 9, 2020 00:01
Demo nvm install in dash
$ echo $SHELL
$ ls -a
. .. .bash_logout .bashrc .mkshrc .profile install.sh
$ ./install.sh
=> Downloading nvm from git to '/home/testuser/.nvm'
=> Cloning into '/home/testuser/.nvm'...
remote: Enumerating objects: 290, done.
remote: Counting objects: 100% (290/290), done.
remote: Compressing objects: 100% (257/257), done.
@steelcowboy
steelcowboy / nvm-mksh
Created August 9, 2020 01:08
Demo nvm install mksh
testuser@fbd5d5ceabfa:~ $ echo $SHELL
/usr/bin/mksh
testuser@fbd5d5ceabfa:~ $ ls -a
. .. .bash_logout .bashrc .mkshrc .profile install.sh
testuser@fbd5d5ceabfa:~ $ ./install.sh
=> Downloading nvm from git to '/home/testuser/.nvm'
=> Cloning into '/home/testuser/.nvm'...
remote: Enumerating objects: 290, done.
remote: Counting objects: 100% (290/290), done.
remote: Compressing objects: 100% (257/257), done.
@steelcowboy
steelcowboy / nvm-ksh
Created August 9, 2020 01:15
Demo nvm install in ksh
~ [2]$ echo $SHELL
/bin/sh
~ [3]$ ls -a
. .. .bash_logout .bashrc .kshrc .profile .sh_history install.sh
~ [4]$ ./install.sh
=> Downloading nvm from git to '/home/testuser/.nvm'
=> Cloning into '/home/testuser/.nvm'...
remote: Enumerating objects: 290, done.
remote: Counting objects: 100% (290/290), done.
remote: Compressing objects: 100% (257/257), done.