Skip to content

Instantly share code, notes, and snippets.

Gui Ambros guiambros

Block or report user

Report or block guiambros

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View up-device.patch
--- up-device.c 2019-06-15 00:18:57.607554731 -0400
+++ up-device-silent.c 2019-06-15 00:19:03.207705276 -0400
@@ -63,6 +63,15 @@
UpDeviceLevel warning_level, battery_level;
UpExportedDevice *skeleton = UP_EXPORTED_DEVICE (device);
+ /* Disable warning notifications for wireless mice with rechargeable batteries */
+ int type = up_exported_device_get_type_ (skeleton);
+ int state = up_exported_device_get_state(skeleton);
+ if (type == UP_DEVICE_KIND_MOUSE && state == UP_DEVICE_STATE_DISCHARGING) {
View aoc2018-08-input
8 11 6 3 5 5 3 4 1 5 0 9 8 4 8 1 8 1 4 1 9 3 2 1 3 2 1 7 0 11 5 8 9 6 4 1 7 1 3 5 3 1 2 1 3 1 1 2 1 7 0 11 1 4 6 8 2 1 1 8 4 2 9 3 2 1 1 2 3 1 4 3 1 5 3 6 1 8 0 6 5 1 8 1 8 8 3 3 2 1 2 1 3 1 1 6 0 10 3 6 1 7 4 8 4 4 9 1 2 1 3 1 1 2 1 5 0 11 4 5 9 7 2 3 6 1 1 5 6 1 2 1 2 2 1 1 1 2 2 4 3 7 1 6 0 10 9 4 8 4 1 5 6 4 7 6 2 1 1 1 2 3 1 6 0 8 3 9 1 1 9 1 1 7 2 1 3 2 1 3 1 6 0 9 1 2 2 3 1 5 2 1 1 1 3 1 2 3 3 3 2 1 3 3 2 4 3 4 1 5 0 10 8 3 3 6 4 8 5 6 1 9 1 2 1 3 1 1 8 0 11 2 1 2 1 6 8 2 2 2 2 4 1 3 3 1 2 1 2 1 1 6 0 9 8 1 8 2 8 3 5 1 1 3 1 2 3 1 1 4 2 2 2 3 5 1 5 0 6 6 9 1 1 4 3 3 3 2 1 1 1 6 0 11 1 6 1 7 9 6 9 1 5 5 1 2 1 1 2 2 3 1 8 0 11 9 2 1 6 5 5 8 1 7 6 8 3 3 3 2 3 1 1 2 2 2 3 2 4 2 1 7 3 7 5 4 3 7 1 6 0 8 5 4 2 3 4 3 1 5 3 1 2 2 3 3 1 7 0 10 7 1 8 1 9 8 1 5 6 7 3 3 1 2 2 2 3 1 9 0 8 7 2 1 1 4 2 6 7 3 1 1 3 1 1 1 1 1 5 2 2 5 3 2 1 3 6 1 9 0 7 6 1 1 1 9 8 5 3 1 3 1 3 2 3 3 1 1 6 0 7 7 1 8 7 1 2 9 3 1 1 2 2 3 1 5 0 10 3 2 1 7 9 8 4 7 8 6 1 3 1 1 1 3 4 1 1 2 3 3 4 1 8 0 11 8 8 5 1 6 4 7 5 3 3 4 1 1 1 2 3 3 3 2 1 8
View aoc2018-07-input
Step C must be finished before step P can begin.
Step V must be finished before step Q can begin.
Step T must be finished before step X can begin.
Step B must be finished before step U can begin.
Step Z must be finished before step O can begin.
Step P must be finished before step I can begin.
Step D must be finished before step G can begin.
Step A must be finished before step Y can begin.
Step R must be finished before step O can begin.
Step J must be finished before step E can begin.
View aoc2018-06-input
108, 324
46, 91
356, 216
209, 169
170, 331
332, 215
217, 104
75, 153
110, 207
185, 102
View aoc2018-05-input
wUuXxrRbeEaAuUMmJUuXxvoFfMmOTjJmMtVvmMVWpdDPwGgAalVvLKkNmlAaLMnpGgeEcCcCBbpPPHmpzZPAaPQqkKMSsmuUpJjMPpNnhHhJjrRpIyYBbbBiMmPxXMgGsBbSmxihHIXIijAaKkZfxoOXFUunNntTNzFZrhCTtSshHcHhHRlLVvrPpsSiNaAvTtmMVIiYyrhpPHRUvhHVunIXxHhaBbAewWEsSrYyOpPlLoxzZoOiIZzXYFJCcQqjxXfNJjNOonnDcCddDbFlbBLfByRNnRMmXzZMeEiIUpPEeuRrGgHhMmlLqyYQlzHhZMmztTZLrRtTkiIoOZzKmbBeEvVLlxPpXWwcCxmMYTtyIixXdjJDHsSPphHzZBbkKrYyRhWMmiIwssSRuUrPCnNcpSWZzLlQqwsFCcNnbAaBfOPpVTtviIoCcZXxTTttzjVvrRJRuUbBUuYSsyLlrSZzMWgGDdYywFzZfkuUvVKdDllvxXVXxTtEeEeJjfnQoOpPOYJjyQqoqNFwWAzuUdAaDHmMhZaflLFmuUMBolUuLhHvWWwwIikwWKVFdnNDYyvVfaHhVvAVvODdQFfxXHSsCchHcCRrhjJqZzrdOOobBaAPpoDbBAPphHasSvUUuuVPhEeHvVUuNpPSxmLliIqiIQMTtXVvJjlFwWMmfLhCcHhZzLbSsDdByYyYlJWwjgGHrqQRsEeRNnrDdtTEQVpPvBbFfFiZzIVvfIiPpuwWUqHhJKkmMWwjefFKstCcTZpPzSoOMoFfOvVmHhqGIaGgAigcCQkTbxfvVDdQbBqsSYyvYyxXPpEeVFwWAeEaPpxBbXXxhHJjiItTyYrRRgGLlHnNhhjJaAcCTAatyxXYjJvVGgLjAaPpXxAZzaXxzZJVjuUDdJvlsSwWHXmOoMHJjrRcCuUajlLJAuUECcKiyYIksSeQOovVQqfFqiIhqQoOYMeEnNQUUuuqmybBbQLlBCcXxbqBHhlLqQbBnNxoOznNXxRriImMZPpRErqQ
View aoc2018-04-input
[1518-07-04 00:01] falls asleep
[1518-06-27 00:42] wakes up
[1518-06-12 00:48] wakes up
[1518-06-07 00:03] Guard #2789 begins shift
[1518-08-11 00:04] Guard #643 begins shift
[1518-08-26 00:26] wakes up
[1518-06-18 23:56] Guard #233 begins shift
[1518-08-31 00:01] Guard #1117 begins shift
[1518-06-18 00:02] Guard #2789 begins shift
[1518-04-15 00:56] wakes up
View aoc2018-03-input
#1 @ 520,746: 4x20
#2 @ 274,680: 19x26
#3 @ 928,402: 16x24
#4 @ 338,969: 27x15
#5 @ 48,306: 21x16
#6 @ 418,87: 13x20
#7 @ 271,316: 16x20
#8 @ 697,513: 20x25
#9 @ 120,479: 28x13
#10 @ 974,8: 17x12
View aoc2018-02-input
rvefnvyxzbodgpnpkumawhijsc
rvefqtyxzsddglnppumawhijsc
rvefqtywzbodglnkkubawhijsc
rvefqpyxzbozglnpkumawhiqsc
rvefqtyxzbotgenpkuyawhijsc
rvefqtyxzbodglnlkumtphijsc
rwefqtykzbodglnpkumawhijss
rvynqtyxzbodglnpkumawrijsc
rvefqtyxlbodgcnpkumawhijec
rvefqtyxzbodmlnpnumawhijsx
@guiambros
guiambros / aoc2018-01-input
Last active Dec 25, 2018
Advent of Code 2018 - Day 1
View aoc2018-01-input
-17
+14
+10
-2
-1
+6
+6
+7
+1
+9
View run-vizdoom.sh
#!/bin/bash
docker run \
--rm \
--hostname container \
-it \
--net host \
--cpuset-cpus 0 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=$DISPLAY \
You can’t perform that action at this time.