Skip to content

Instantly share code, notes, and snippets.

View luk6xff's full-sized avatar

Lukasz Uszko luk6xff

View GitHub Profile
luk6xff / settings.json
Created December 22, 2019 11:16
My VSCode settings.json
"editor.fontSize": 12,
"editor.renderWhitespace": "all",
"editor.minimap.enabled": false,
"files.trimTrailingWhitespace": true,
luk6xff /
Last active October 5, 2019 16:36
$ gsettings set org.gnome.desktop.peripherals.touchpad click-method areas
luk6xff /
Last active April 23, 2024 17:11 — forked from bruce30262/
Emulating ARM with QEMU on Debian/Ubuntu

You might want to read this to get an introduction to armel vs armhf.

If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.

Running ARM programs under linux (without starting QEMU VM!)

First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static so that you can run ARM executables directly on linux

If there's no qemu-arm-static in the package list, install qemu-user-static instead

luk6xff /
Created December 20, 2016 08:33
AOC 2016 - Solution day 20
#Day 20: Firewall Rules
def getInput():
with open('input.txt', 'r') as f:
return f.readlines()
def solvePart1():
ipsBlocked = sorted([list(map(int, x.rstrip().split('-'))) for x in getInput()], key = lambda x:x[0])
lowestIP = 0