Skip to content

Instantly share code, notes, and snippets.

View jkauppinen's full-sized avatar

Jeremias Kauppinen jkauppinen

  • PwnTek
  • Helsinki
View GitHub Profile
# After DHCP changes
dhcpcd
# Disable fast boot on windows when dual booting with linux
Control Panel -> Power Options -> Choose what power button does -> uncheck turn on fast startup
@jkauppinen
jkauppinen / gist:0b4d0f0af237e5a84e7f92c51ac5ec3b
Last active September 23, 2024 13:47
Configuration of Ubiquity EdgeRouter Lite (Router), Ubiquiti UniFi Switch 8 60W (Switch), and Ubiquiti UniFi UAP-AC-LITE Dual-band AP (Wireless AP)
# Configuration of Ubiquity EdgeRouter Lite (Router), Ubiquiti UniFi Switch 8 60W (Switch), and Ubiquiti UniFi UAP-AC-LITE Dual-band AP (Wireless AP)
# OS: Ubuntu 22.04
## Switch configuration
Connect computer to eth0
Connect internet to eth1
reset router
## Connection profiles
@jkauppinen
jkauppinen / screen-capture-notes
Last active January 31, 2020 15:17
Ubuntu 18.04 screen recording with audio
# Notes based on ffmpeg documentation: https://trac.ffmpeg.org/wiki/Capture/Desktop and general googling
# These settings work on Ubuntu 18.04 with rode podcaster usb microphone.
# Show screen information
xdpyinfo
# List audio capture devices
arecord -l
# Check device information (external usb mic in this case)
@jkauppinen
jkauppinen / arch-uefi-luks-installation.txt
Last active April 21, 2025 14:44
Arch linux installation with full disk encryption via dm-crypt + LUKS
# This installation guide will create basic working arch linux installation with encryption.
# Encryption is implemented with dm-crypt + LUKS on a single disk.
# Following articles/posts/gists were used as reference
# https://www.happyassassin.net/2014/01/25/uefi-boot-how-does-that-actually-work-then/
# https://wiki.archlinux.org/index.php/Installation_guide
# https://wiki.archlinux.org/index.php/Dm-crypt/System_configuration
# https://wiki.archlinux.org/index.php/Dm-crypt/Device_encryption
# https://blog.tinned-software.net/automount-a-luks-encrypted-volume-on-system-start/
# https://gist.github.com/mattiaslundberg/8620837
@jkauppinen
jkauppinen / gist:f0b9ffdd46d75bdf5b77abdc25441f7e
Created September 6, 2019 08:46
Arch linux installation with FDE (=Full disk encryption) via dm-crypt + LUKS
# This installation guide will create basic working arch linux installatio with encryption.
# Encryption is implemented with dm-crypt + LUKS on a single disk.
# +-----------------------+------------------------+-----------------------+
# | Boot/EFI partition | LUKS encrypted root | Rest of the space |
# | (unencrypted) | partition | allocated to home |
# | | | partition |
# | /boot | / | |
# | | | |
# | | /dev/mapper/cryptroot | /dev/mapper/crypthome |
@jkauppinen
jkauppinen / SerializationFixture.cs
Last active November 24, 2016 12:06
Code to identify possibly issue in MassTransit integer serialization
using NUnit.Framework;
using System;
using System.Threading.Tasks;
namespace MassTransit.SerializationTest
{
[TestFixture]
public class SerializationFixture
{
private IBusControl receiverBus;
# General
URxvt*saveLines: 12000
xvt.perl-ext-common: ...,clipboard
URxvt.keysym.C-C: perl:clipboard:copy
URxvt.keysym.C-V: perl:clipboard:paste
# Fonts
URxvt*font: xft:DejaVu Sans Mono:pixelsize=15:antialias=true:hinting=true
URxvt*boldFont: xft:DejaVu Sans Mono:bold:pixelsize=15:antialias=true:hinting=true
#ble path name expansion or * will be expanded in the line
# cmd=( $line )
set -f
monitor=${1:-0}
geometry=( $(herbstclient monitor_rect "$monitor") )
if [ -z "$geometry" ] ;then
echo "Invalid monitor $monitor"
exit 1
fi
@jkauppinen
jkauppinen / .bashrc
Created July 4, 2014 19:29
Windows .bashrc
Sunrise() { cd /c/Code ; }
Sunrise
$env:Path += ";C:\Chocolatey\bin"
cinst git.commandline
cinst VisualStudio2013Professional
cinst python
cinst notepadplusplus linqpad4
cinst fiddler4 wireshark
cinst Firefox Wget curl
cinst adblockplusfirefox
cinst skype vlc paint.net 7zip spotify
cinst sumatrapdf