Skip to content

Instantly share code, notes, and snippets.

View rashadatjou's full-sized avatar

Rashadatjou rashadatjou

View GitHub Profile
@alexkli
alexkli / circleci-vars.md
Last active March 26, 2025 15:59
How to safely export CircleCI environment variables

How to safely export CircleCI environment variables

Steps with SSH

Connect to the job with ssh (use Rerun job with SSH) and then simply run env and copy&paste the vars.

Note: make sure you have a ssh key in your Github settings. If it's missing, CircleCI will silently fail to show the "Enable SSH" setting in the re-run.


@andreacipriani
andreacipriani / Bash.swift
Last active September 11, 2024 06:46
Execute shell/bash commands from Swift
import UIKit
protocol CommandExecuting {
func run(commandName: String, arguments: [String]) throws -> String
}
enum BashError: Error {
case commandNotFound(name: String)
}