Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
:-)

Lars Karbo larskarbo

🚀
:-)
View GitHub Profile
@larskarbo
larskarbo / Dockerfile
Created Nov 30, 2022
OpenTelemetry Collector Satelite with Dockerfile
View 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
View bump-version.yml
name: "Bump Version"
on:
push:
branches:
- main
jobs:
bump-version:
name: "Bump Version on main"
View deleteOldVercelDeployments.ts
/*
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"
View Maple hack script
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
@larskarbo
larskarbo / pull-db.sh
Created Feb 14, 2018
Script to pull remote database and overwrite local
View pull-db.sh
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
}