Instantly share code, notes, and snippets.

View 01-network-manager-all.yaml
# Let networkd manage all devices on this system
version: 2
renderer: networkd
#declare the interface used y the bridge device
dhcp4: no
dhcp6: no
View custom-past-events.php
global $post;
$get_posts = tribe_get_events(array('posts_per_page'=>-1, 'eventDisplay'=>'past') );
foreach($get_posts as $post) { setup_postdata($post);
<?php if ( has_post_thumbnail() ) { ?>

Booting with a mainline kernel on Ubuntu with 4.7.5 or above.

Some machines die with "cannot find root" unless CONFIG_UEVENT_HELPER is set. This is the case with Ubuntu kernels 4.6.x and earlier, but not in 4.7.5. I have no idea why.

Here's how I built my own.

  • git clone --branch v4.7.5 --depth 1 git://
  • Apply all the patches from mainline with -p1 ( )
  • Copy your config from your already installed mainline kernel /boot/whatever to .config
View day-mode
# export DBUS_SESSION_BUS_ADDRESS environment variable because cron hates me
PID=$(pgrep -u USER gnome-session-b)
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-)
/usr/bin/gsettings set name 'Flat-Plat'
/usr/bin/gsettings set org.gnome.desktop.interface gtk-theme 'Flat-Plat'
/usr/bin/gsettings set org.gnome.desktop.background picture-uri 'file://WALLPAPER-PATH'
/usr/bin/gsettings --schemadir ~/.local/share/gnome-shell/extensions/ set background-color 'rgb(69,90,100)'