Skip to content

Instantly share code, notes, and snippets.

View larskarbo's full-sized avatar
🚀
:-)

Lars Karbo larskarbo

🚀
:-)
View GitHub Profile
@larskarbo
larskarbo / pull-db.sh
Created February 14, 2018 10:51
Script to pull remote database and overwrite local
function exit_script() {
echo $1
ssh -S db-sync-socket -O exit $REMOTE_CREDENTIALS 2> /dev/null
exit 1
}
function print_usage() {
echo "Usage: -d databasename -m host [-h]"
exit 0
}
const howDidI = document.getElementById('doInSession.3')
const input = document.querySelector('input[type="text"]')
let i = 0
const int = setInterval(() => {
if (document.querySelectorAll('.insessionCorrect').length > 0) {
return clearInterval(int)
}
input.click()
input.value = i
/*
This script deletes production deployments with no aliases. This means that a current live production build should not be deleted.
As an extra precaution, it only gets deployments that are more than 7 days old.
Use at your own risk
*/
import axios, { AxiosError } from "axios"
name: "Bump Version"
on:
push:
branches:
- main
jobs:
bump-version:
name: "Bump Version on main"
@larskarbo
larskarbo / Dockerfile
Created November 30, 2022 10:02
OpenTelemetry Collector Satelite with Dockerfile
FROM alpine:latest
RUN apk --no-cache add curl
COPY ./otel-config.yaml /etc/otel/config.yaml
RUN curl -L https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.66.0/otelcol-contrib_0.66.0_linux_amd64.tar.gz -o otelcol-contrib.tar.gz
RUN tar -xf otelcol-contrib.tar.gz otelcol-contrib
EXPOSE 4318