Skip to content

Instantly share code, notes, and snippets.

View ivucica's full-sized avatar
🌌
Hey! You! What are you looking at?

Ivan Vučica ivucica

🌌
Hey! You! What are you looking at?
View GitHub Profile
This file has been truncated, but you can view the full file.
@ivucica
ivucica / edid.py
Last active October 27, 2022 18:19
tool to print out JSON-formatted mapping between monitor serial number, its xrandr output ID, and some other EDID-decoded information
#!/usr/bin/env python3
"""
Print out the JSON-formatted mapping between serial number, xrandr display ID and decoded edid attributes.
Useful in scenarios where you need to set your center monitor as the primary, and the other monitors to
its left and right, but the xrandr extension changes the output names arbitrarily:
xrandr --output DP-1 --auto --primary --output DP-6 --left-of DP-1 --output DP-3 --right-of DP-1
As long as the same monitor is plugged in, it should be doable to determine the ID based on the serial
@ivucica
ivucica / README.md
Created June 16, 2021 18:24
GNOME msitools with GUI

msitools with GUI

As of June 2021, this is only available as a work-in-progress pull request on GNOME msitools's GitLab.

(Done by @brendonj, who might be the same @brendonj as on Github.)

Here are my notes, so I don't forget how to build it. It would be really cool to migrate GNUstep's installers to MSI, and to build the Windows MinGW binaries as part of the release process.

function f() { return console.log }

f`

via https://twitter.com/tolmasky/status/1114735450713780226
@ivucica
ivucica / euler12.md
Last active November 3, 2018 17:13
euler12

Project Euler #12

https://projecteuler.net/problem=12

The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be:

1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...

Let us list the factors of the first seven triangle numbers:

# Test for Prosody bug 1082
[Client] Romeo
jid: user@localhost
password: password
---------
# Act 1, scene 1
# The clients connect
@ivucica
ivucica / dummy-gist.md
Created August 4, 2017 13:24
Dummy gist

This is a dummy gist.

@ivucica
ivucica / openpgp.txt
Created December 29, 2015 03:39
OpenKeychain API Tests
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:192fb8e872b54b175fb86ebf9a3b99c88f9e89d5]
@ivucica
ivucica / Dockerfile
Created November 18, 2015 22:30
dockerfile for appscale
# Based on https://github.com/AppScale/appscale/wiki/Virtualized-Cluster
# https://ivan.vucica.net/no-idea-dog.jpg
FROM ubuntu-debootstrap:precise
RUN apt-get update
RUN apt-get -y install --no-install-recommends lsb-release
RUN apt-get -y install --no-install-recommends wget
RUN apt-get -y install --no-install-recommends ca-certificates openssl
@ivucica
ivucica / keybase.md
Created November 9, 2015 14:39
Keybase.io claim

Keybase proof

I hereby claim:

  • I am ivucica on github.
  • I am ivucica (https://keybase.io/ivucica) on keybase.
  • I have a public key whose fingerprint is 192F B8E8 72B5 4B17 5FB8 6EBF 9A3B 99C8 8F9E 89D5

To claim this, I am signing this object: