Skip to content

Instantly share code, notes, and snippets.

View luk6xff's full-sized avatar
🐶

Lukasz Uszko luk6xff

🐶
View GitHub Profile
@luk6xff
luk6xff / ARMonQEMUforDebianUbuntu.md
Last active March 24, 2024 05:31 — forked from bruce30262/ARMDebianUbuntu.md
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
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
luk6xff / NotWorking-RightTouchPad-On-Ubuntu-18.04.md
Last active October 5, 2019 16:36
NotWorking-RightTouchPad-On-Ubuntu-18.04
$ gsettings set org.gnome.desktop.peripherals.touchpad click-method areas
@luk6xff
luk6xff / aoc2016Day20.py
Created December 20, 2016 08:33
AOC 2016 - Solution day 20
#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