Skip to content

Instantly share code, notes, and snippets.

Avatar

Vince Marcovecchio vinkmar

View GitHub Profile
View microdot-server.py
#!/usr/bin/env python
import BaseHTTPServer
import urllib
from microdotphat import write_string, clear, show
# This is a really simple HTTP server for displaying text to the
# Pimoroni Micro Dot pHAT. Once the server is running:
#
@vinkmar
vinkmar / xorg.conf
Last active Jun 8, 2020
X11 configuration for a Thinkpad T430 to support proper resolution on the LG 29UM69G-B ultrawide monitor when connected via the primary output on the docking port. (File location should be /etc/X11/xorg.conf)
View xorg.conf
Section "Monitor"
Identifier "HDMI2"
Modeline "2560x1080_60.00" 181.250 2560 2608 2640 2720 1080 1083 1093 1111 +hsync -vsync
Option "PreferredMode" "2560x1080_60.00"
EndSection
View compacting-vbox-virtual-disk.md

In fully booted guest OS:

sudo apt-get install zerofree

Reboot guest OS, hold [Esc] on boot, and from Grub menu select Advanced, then Recovery Mode, then Root Console, and run:

zerofree /dev/sda
View keybase.md

Keybase proof

I hereby claim:

  • I am vinkmar on github.
  • I am vinkmar (https://keybase.io/vinkmar) on keybase.
  • I have a public key ASD9ej_Z7qPIqVaBEAjqUop0tYN-c1pinKvCFo5QVtAxpAo

To claim this, I am signing this object:

View freestyler_usb_to_dmx512.txt
# lsusb -v
Bus 003 Device 008: ID 16c0:05dc Van Ooijen Technische Informatica shared ID for use with libusb
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.01
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
@vinkmar
vinkmar / userChrome.css
Created Jun 7, 2016
Better highlighting for pinned tabs in Firefox
View userChrome.css
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
.tabbrowser-tab[pinned][titlechanged]:not([visuallyselected="true"]) > .tab-stack > .tab-content {
background-color: yellow;
background-image: none !important;
}