Skip to content

Instantly share code, notes, and snippets.

View gesellix's full-sized avatar
🐱
🐋

Tobias Gesellchen gesellix

🐱
🐋
View GitHub Profile
@gesellix
gesellix / Dockerfile
Created January 14, 2024 21:56 — forked from adtac/Dockerfile
#!/usr/bin/env docker run
#!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')"
# syntax = docker/dockerfile:1.4.0
FROM node:20
WORKDIR /root
RUN npm install sqlite3
@gesellix
gesellix / create-certs.sh
Last active December 18, 2023 12:22
add TLS/self-signed certificates to the Docker for Mac daemon
#!/bin/sh
mkdir -p certs
openssl req -x509 -days 365 -newkey rsa:4096 -nodes -sha256 -out certs/domain.crt -keyout certs/domain.key -subj "/C=DE/ST=Berlin/L=Berlin/O=IT/CN=docker.local"
@gesellix
gesellix / Caddyfile
Created August 2, 2018 06:42 — forked from Ocramius/Caddyfile
Example docker + docker-compose + caddy + traefik setup that routes to multiple apps from one exposed HTTP port
:80 {
root /serve
}
@gesellix
gesellix / docker-compose-tick.yml
Created June 27, 2017 20:57 — forked from cdelaitre/docker-compose-tick.yml
Monitor Docker Swarm with TICK InfluxData Stack
version: '3'
services:
# FRONT
chronograf:
# Full tag list: https://hub.docker.com/r/library/chronograf/tags/
image: chronograf
deploy:
replicas: 1
placement:
constraints:
@gesellix
gesellix / screen-stuff.md
Created May 1, 2016 22:39
screen and Docker for Mac
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty



screen -AmdS docker ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
screen -r docker
# enter, then disconnect with Ctrl-a d
screen -S docker -p 0 -X stuff $(printf root\\r\\n)
screen -r docker

Setup Mac OS X Mountain Lion or Mavericks

Edit: I few months ago I got a new laptop and did the same thing on Mavericks.

I just replaced the hard drive of my mbp and decided to do a clean install of Mountain Lion (10.8.5) since I was still using Snow Leopard (10.6.8).

I kinda regret for not using Boxen to automate the

@gesellix
gesellix / gradle.log
Created October 22, 2020 16:20
Logs for Gradle Issue 14951
2020-10-22T07:58:46.0435710Z ##[section]Starting: Request a runner to run this job
2020-10-22T07:58:46.1401470Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'ubuntu-latest'
2020-10-22T07:58:46.2300563Z Can't find any online and idle self-hosted runner in current repository's organization/enterprise account that matches the required labels: 'ubuntu-latest'
2020-10-22T07:58:46.3245228Z Found online and idle hosted runner in current repository's enterprise account that matches the required labels: 'ubuntu-latest'
2020-10-22T07:58:46.4452474Z ##[section]Finishing: Request a runner to run this job
2020-10-22T07:59:03.0135963Z Current runner version: '2.273.5'
2020-10-22T07:59:03.0167430Z ##[group]Operating System
2020-10-22T07:59:03.0168304Z Ubuntu
2020-10-22T07:59:03.0168729Z 18.04.5
2020-10-22T07:59:03.0169082Z LTS
@gesellix
gesellix / config.json
Last active March 18, 2020 21:44
Oboo setup/config
{
"cards": {
"0": {
"name": "weather",
"id": 0,
"tempUnit": "celsius",
"card": "Weather",
"location": "Europe/Berlin CET-1CEST,M3.5.0,M10.5.0/3",
"distanceUnit": "metric"
}

Keybase proof

I hereby claim:

  • I am gesellix on github.
  • I am gesellix (https://keybase.io/gesellix) on keybase.
  • I have a public key ASBnYf8yVziZUKdA5CObS2oolAKMm8mD1T_hbeH-wJM6UQo

To claim this, I am signing this object:

echo “foo” > example.txt
### add to .git/objects
git hash-object -w example.txt
git cat-file -p <blob-hash>
find .git/objects -type f
### add file to .git/index (“stage”)
git update-index ---add --cacheinfo 100644 <blob-hash> example.txt