Skip to content

Instantly share code, notes, and snippets.

View vinkmar's full-sized avatar

Vince Marcovecchio vinkmar

View GitHub Profile
#!/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 June 8, 2020 00:17
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)
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

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

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:

# 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 June 7, 2016 19:21
Better highlighting for pinned tabs in Firefox
@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;
}