This file contains 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
#!/usr/bin/env bash | |
suffix="12345" | |
app1="myapp-staging-$suffix" | |
app2="myapp-prod-$suffix" | |
pipeline="mypipeline-$suffix" | |
team="appcloud-dev" | |
repo="wadewegner/pipelines-demo" | |
# clean-up script |
This file contains 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
echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' |
This file contains 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
########################################################################## | |
# Tests the ability to push everything broken-up across three src folders | |
# Note: cross package-directory dependencies not resolved | |
########################################################################## | |
# clean-up | |
rm -rf working | |
# clone repo | |
git clone [email protected]:wadewegner/dreamhouse-sfdx.git working |
This file contains 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
export FORCE_SPINNER_DELAY= | |
export FORCE_SHOW_SPINNER= | |
# remove old force project | |
rm -rf force | |
# set the callback URL | |
callbackUrl="sfdx://success" | |
# create force project |
This file contains 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
[11:37:39] [main/INFO]: Setting user: WadeW78 | |
[11:37:43] [main/WARN]: Skipping bad option: lastServer: | |
[11:37:43] [main/INFO]: LWJGL Version: 2.9.4 | |
[11:37:46] [main/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:mercurius_updater, FMLFileResourcePack:Ancient Warfare Automation, FMLFileResourcePack:Ancient Warfare Core, FMLFileResourcePack:Ancient Warfare NPCs, FMLFileResourcePack:Ancient Warfare Structures, FMLFileResourcePack:CodeChicken Lib | |
[11:37:48] [Sound Library Loader/INFO]: Starting up SoundSystem... | |
[11:37:48] [Thread-5/INFO]: Initializing LWJGL OpenAL | |
[11:37:48] [Thread-5/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) | |
[11:37:48] [Thread-5/INFO]: OpenAL initialized. | |
[11:37:48] [Sound Library Loader/INFO]: Sound engine started | |
[11:37:52] [main/INFO]: Created: 1024x1024 textures-atlas |
This file contains 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
{"interaction":{"localVariables":[{"condition":"","dataType":"Number","name":"TEMPERATURE_THRESHOLD","description":"","id":0,"initialValue":"11"},{"condition":"","dataType":"Number","name":"HUMIDITY_THRESHOLD","description":"","id":1,"initialValue":"70"},{"condition":"","dataType":"Number","name":"DOOR_OPEN_LIMIT","description":"","id":2,"initialValue":"3"},{"condition":"Smart_Fridge_Reading__e.door__c = \"open\"","dataType":"Number","name":"door_open_counter","eventSource":"Smart_Fridge_Reading__e","description":"","id":3,"initialValue":"0","value":{"name":"Count","type":"catalog","params":{"$1":"40 sec"}}}],"inputs":[],"states":[{"name":"Always","id":0,"actions":[{"condition":"Smart_Fridge_Reading__e.door__c = \"closed\"","eventSource":"Smart_Fridge_Reading__e","action":[{"name":"reset","params":{"$1":"door_open_counter"},"type":"catalog"}],"description":"","id":0,"state":"","when":{"name":"always","type":"catalog"}}]},{"name":"Default","isInitial":true,"id":1,"actions":[{"condition":"door_open_counter >= D |
This file contains 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
# wadewegner.zsh-theme | |
prompt_fn() { | |
config="$(cat .sfdx/sfdx-config.json 2> /dev/null)"; | |
globalConfig="$(cat ~/.sfdx/sfdx-config.json)"; | |
defaultusername="$(echo ${config} | jq -r .defaultusername)" | |
defaultdevhubusername="$(echo ${config} | jq -r .defaultdevhubusername)" | |
globaldefaultusername="$(echo ${globalConfig} | jq -r .defaultusername)" |
This file contains 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
# install forge for 1.12.2 | |
# wget https://s3.amazonaws.com/Minecraft.Download/versions/1.11.2/minecraft_server.1.11.2.jar | |
# wget https://s3.amazonaws.com/Minecraft.Download/versions/1.12.2/minecraft_server.1.12.2.jar | |
wget https://launcher.mojang.com/mc/game/1.12.2/server/886945bfb2b978778c3a0288fd7fab09d315b25f/server.jar -O minecraft_server.1.12.2.jar | |
# install (first time) | |
java -Xmx1024M -Xms1024M -jar minecraft_server.1.12.2.jar nogui | |
# set eula acceptance to true | |
vi eula.txt |
This file contains 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
function poll() { | |
var complete = false; | |
$.ajax({ | |
url: "/api/test", | |
type: "GET", | |
success: function (data) { | |
var message = data.message; | |
if (message === 'yes') { | |
complete = true; | |
status('complete: ' + data.message); |
This file contains 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
# specify your username or alias | |
usernameOrAlias="[email protected]" | |
# return a json result of | |
org="$(sfdx force:org:display -u ${usernameOrAlias} --json)" | |
# parse response | |
result="$(echo ${org} | jq -r .result)" | |
accessToken="$(echo ${result} | jq -r .accessToken)" | |
instanceUrl="$(echo ${result} | jq -r .instanceUrl)" |