Skip to content

Instantly share code, notes, and snippets.

Avatar
🐶

Lukasz Uszko luk6xff

🐶
View GitHub Profile
@luk6xff
luk6xff / settings.json
Created December 22, 2019 11:16
My VSCode settings.json
View settings.json
{
"editor.fontSize": 12,
"editor.renderWhitespace": "all",
"editor.minimap.enabled": false,
"files.trimTrailingWhitespace": true,
@luk6xff
luk6xff / NotWorking-RightTouchPad-On-Ubuntu-18.04.md
Last active October 5, 2019 16:36
NotWorking-RightTouchPad-On-Ubuntu-18.04
View NotWorking-RightTouchPad-On-Ubuntu-18.04.md
$ gsettings set org.gnome.desktop.peripherals.touchpad click-method areas
@luk6xff
luk6xff / ARMonQEMUforDebianUbuntu.md
Last active March 23, 2023 07:43 — forked from bruce30262/ARMDebianUbuntu.md
Emulating ARM with QEMU on Debian/Ubuntu
View ARMonQEMUforDebianUbuntu.md

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
luk6xff / aoc2016Day20.py
Created December 20, 2016 08:33
AOC 2016 - Solution day 20
View aoc2016Day20.py
#Day 20: Firewall Rules
#http://adventofcode.com/2016/day/20
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