Skip to content

Instantly share code, notes, and snippets.

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

Tim Etchells tetchel

💭
-- INSERT --
  • Basestation
  • Canada
  • 19:49 (UTC -08:00)
View GitHub Profile
@tetchel
tetchel / sendage.js
Last active October 2, 2024 04:43
Get Sendage sends as JSON for backup, analysis etc.
/**
* Usage:
* 1) Edit the username
* 2) Open https://sendage.com (required due to same origin policy)
* 3) Paste the following into into your browser developer tools console.
* It only finds public data. You don't have to be logged in. Use a private/incognito window if you like, it's not a phish.
* 4) The data will be printed to the console.
* You can right click the Array and click 'Copy Object' and then paste it into a file.
*/
@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)