Skip to content

Instantly share code, notes, and snippets.

Avatar
🐶
std::numeric_limits<int>::min() / -1 = ?

Lukasz Uszko luk6xff

🐶
std::numeric_limits<int>::min() / -1 = ?
View GitHub Profile
@luk6xff
luk6xff / settings.json
Created Dec 22, 2019
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 Oct 5, 2019
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 Sep 3, 2021 — 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 Dec 20, 2016
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