Skip to content

Instantly share code, notes, and snippets.

View ykarikos's full-sized avatar
🏡
Working from home

Yrjö Kari-Koskinen ykarikos

🏡
Working from home
  • Digitaalinen asuntokauppa DIAS
  • Helsinki
  • X @ykarikos
View GitHub Profile
@ykarikos
ykarikos / Podcast audio postproduction workflow.md
Last active January 18, 2022 23:29
Podcast audio postproduction workflow

Podcast audio postproduction workflow

Here are the steps for podcast episode audio postproduction after recording individual tracks for each participant. The tools I have used:

1. Postproduction in Zencastr

@ykarikos
ykarikos / gist:5fbbd5ec8c525069b1640d3abb3d6c6c
Last active January 3, 2021 20:38
Download FB video and convert to mp4
youtube-dl "https://www.facebook.com/watch/?v=2672965476349733"
docker run -v $(pwd):$(pwd) -w $(pwd) jrottenberg/ffmpeg:3.4-scratch -i input.mkv -acodec copy -vcodec libx264 -b:v 1200k -threads 0 -f mp4 output.mp4
@ykarikos
ykarikos / 0-aggregate-audio.md
Last active December 5, 2020 21:45
Aggregate live microphone and music in same audio output in MacOS

Aggregate live microphone and music in same audio output in MacOS

Here's how you can combine the audio output of some music software (e.g. Garageband) and microphone simultaneously as the input to a streaming software (e.g. Google Meet) and your headphones. I used this setup to be able to play music from Garageband and talk in Google Meet.

1. Install Soundflower

See https://github.com/mattingalls/Soundflower/releases/

2. Setup audio devices

@ykarikos
ykarikos / Dockerfile
Last active March 22, 2020 22:01
Dockerfile for Planck build
FROM alpine:3.11
RUN apk update && \
apk upgrade && \
apk add --no-cache curl \
netcat-openbsd \
openjdk11 \
bash
# Download & install clojure
ENV CLOJURE_VERSION="1.10.1.466"
@ykarikos
ykarikos / docker-ssl-proxy.md
Last active October 30, 2023 09:39
Self-signed SSL reverse proxy with Docker

Self-signed SSL reverse proxy with Docker

This is based on the marvellous blog posting by Oliver Zampieri.

This howto is written to create a self signed SSL NginX proxy on MacOS to

  1. Expose proxy at local host port 5001
  2. Connect the port 5001 to port 443 inside Docker
  3. Proxy the port 443 to port 5000 on the host computer

This means that:

@ykarikos
ykarikos / openssl.MD
Created January 14, 2020 20:20 — forked from jchandra74/openssl.MD
HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

Overview

My main development workstation is a Windows 10 machine, so we'll approach this from that viewpoint.

Recently, Google Chrome started giving me a warning when I open a site that uses https and self-signed certificate on my local development machine due to some SSL certificate issues like the one below:

Self-Signed SSL Issue in Chrome

@ykarikos
ykarikos / openssl_commands.md
Created January 10, 2020 13:53 — forked from daltonjorge/openssl_commands.md
Some list of openssl commands for check and verify your keys

openssl

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@ykarikos
ykarikos / FTN-Tupas.md
Last active October 12, 2023 12:31
FTN Test accounts and personal ID numbers for Finnish bank authentication
@ykarikos
ykarikos / gist:9ea231dda271fd4afef7d2bf317ca95c
Created September 26, 2018 06:20
Copying directories in Linux and MacOS
ykk@peruna:/tmp/copytest$ uname
Linux
ykk@peruna:/tmp/copytest$ ls -lR
.:
total 0
drwxr-xr-x 2 ykk ykk 40 Sep 26 09:19 bar/
drwxr-xr-x 2 ykk ykk 100 Sep 26 09:16 foo/
./bar:
total 0
@ykarikos
ykarikos / create-spinning-gif.sh
Last active March 28, 2018 10:58
Create spinning and rotating gif with GraphicsMagick
mkdir spin
for angle in `seq 360 30 690`; do gm convert original.jpg -background "#FFFFFF" -rotate $angle -crop 512x512+0+0 spin/$angle.png; done
cd spin
gm convert *.png -loop 0 -delay 20 spinningfoobar.gif