Skip to content

Instantly share code, notes, and snippets.

View tetchel's full-sized avatar
💭
-- INSERT --

Tim Etchells tetchel

💭
-- INSERT --
  • Basestation
  • Canada
  • 07:21 (UTC -07:00)
View GitHub Profile
@tetchel
tetchel / argo-set-pw
Created October 13, 2020 18:38
update password for argocd user
#!/usr/bin/env bash
# https://argoproj.github.io/argo-cd/faq/#i-forgot-the-admin-password-how-do-i-reset-it
username=$1
password=$2
if [[ -z $username || -z $password ]]; then
echo "Usage: $0 \$username \$password"
echo "Missing username or password argument"
#!/usr/bin/env python3
# oh god why
# https://i.redd.it/azecoqeevyv41.jpg
operators = [ "+", "-", "*" ]
output = ""
output += """#!/usr/bin/env python3
# why is it 'sign' lol what a shit variable name

Jenkins agents in Eclipse Codewind builds

Intro to Agents

An agent is a slave machine that is used to run a pipeline or a stage of a jenkins build. Only one build can be using a given agent at a given time.

Agents can be top-level ('pipeline' level) but can be further broken down by stages. So, one build can use multiple agents for its different stages. For VS Code, the top-level agent is a kube one from a node image (Jenkinsfile#57). This agent is used for any stage which does not override the agent clause.

> const err = new Error("oh no")
undefined
> err
Error: oh no
at repl:1:13
at Script.runInThisContext (vm.js:96:20)
at REPLServer.defaultEval (repl.js:329:29)
at bound (domain.js:396:14)
at REPLServer.runBound [as eval] (domain.js:409:12)
at REPLServer.onLine (repl.js:642:10)