Skip to content

Instantly share code, notes, and snippets.

View iexa's full-sized avatar
💭
yorkie = lambda woof, bark: {bark: woof}

CsabaK iexa

💭
yorkie = lambda woof, bark: {bark: woof}
View GitHub Profile
@iexa
iexa / generate_docker_cert.sh
Created July 29, 2022 18:02 — forked from bradrydzewski/generate_docker_cert.sh
Generate trusted CA certificates for running Docker with HTTPS
#!/bin/bash
#
# Generates client and server certificates used to enable HTTPS
# remote authentication to a Docker daemon.
#
# See http://docs.docker.com/articles/https/
#
# To start the Docker Daemon:
#
# sudo docker -d \
@iexa
iexa / test-md5.sh
Last active October 31, 2022 05:00
Test a QuickSFV file on OSX with md5 and pv for progress-bar
#!/bin/bash
# use cat md5-file | ./test-md5.sh
while IFS='' read -r line || [[ -n "$line" ]]; do
if [[ $line = *";"* ]]; then
continue
fi
path=${line#* \*}
path=${path%$'\r'}
path=${path/\\//}
@iexa
iexa / devbox-install.ps1
Last active April 23, 2023 05:01 — forked from christophwille/cw-devbox-install.ps1
Windows devbox chocolatey install base (nice ideas - probably better to use built-in winget though)
# Run in elevated PS
# Reboot required
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
# Store:
# WSL, Ubuntu, DevToys, Power BI
# EarTrumpet, Screentogif, ShareX, Photoscape X, Inkscape, RSS Bandit, Surface, WhatsApp
# Install: Office, Visual Studio, SQL Server Developer Edition, https://aka.ms/windbg/download
@iexa
iexa / Dockerfile
Last active October 1, 2023 12:14
Dockerfile tips
## NODE
##################################
# multi-stage build to exclude intermediate build files and keep only resulting artifacts
# -slim uses debian and is similar in size, alpine ~120 / -sim ~180mb, while full >1gb!
FROM node:16-alpine AS build
# FROM node:18-slim AS build
WORKDIR /app
COPY . .