Skip to content

Instantly share code, notes, and snippets.

@Lantizia
Lantizia / autoexec
Last active August 11, 2021 08:45
Sid Meier's Colonization Wine Prefix AutoExec
#!/bin/bash
LOCALDATA=$(dirname "$(readlink -f "$0")")
export WINEPREFIX=$(dirname $LOCALDATA)
PATH=$WINEPREFIX/wine/bin:$PATH
choice=$(zenity --title "Sid Meier's Colonization" --text "Select an item to launch from the list below." --window-icon $LOCALDATA/colwin.png --ok-label "Launch" --list --radiolist --hide-header --column x --column y TRUE "Sid Meier's Colonization for Windows" FALSE "Select map when starting in AMERICA" FALSE "Map Editor" FALSE "Instruction manual" FALSE "Browse installation path")
case "$choice" in
"Sid Meier's Colonization for Windows")
swdrv insert "$LOCALDATA/Colonize.toc"
wine cmd /c md "%UserProfile%\My Documents\Sid Meier's Colonization"
wine cmd /c "C:&&cd %UserProfile%\My Documents\Sid Meier's Colonization&&C:\MPS\COLWIN\colonize"
#!/bin/bash
#
# INSTALLATION...
#
# echo -e 'SUBSYSTEM=="block", ENV{ID_VENDOR}=="SWDrv", ENV{UDISKS_IGNORE}="1"' | sudo tee /etc/udev/rules.d/99-swdrv.rules
# sudo udevadm control -R
# until cdemu device-id 1; do cdemu add-device; done
# sudo wget http://gist.github.com/Lantizia/2d292dda74765ad588c232dc9de14071/raw/swdrv -O /usr/local/bin/swdrv
# sudo chmod +x /usr/local/bin/swdrv
#
[Toplevel left]
expand=true
orientation=left
size=56
[Toplevel bottom]
expand=true
orientation=bottom
size=56
[Toplevel left]
expand=true
orientation=left
size=56
[Toplevel bottom-2]
expand=true
orientation=bottom
size=56
[Toplevel left]
expand=true
orientation=left
size=56
[Toplevel bottom-2]
expand=true
orientation=bottom
size=56
[Toplevel bottom]
expand=true
orientation=bottom
size=56
[Object menu]
object-type=menu
toplevel-id=bottom
position=0
use-custom-icon=true
Description: Hide unmanaged interfaces
Author: Campbell Vertesi <[email protected]>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1458322
--- a/src/applet-device-broadband.c
+++ b/src/applet-device-broadband.c
@@ -710,7 +710,7 @@ add_connection_item (NMDevice *device,
gtk_widget_show (item);
}
### Ubuntu MATE 18.04 with encryption and hibernation side-by-side another OS
##############################################################################
###
### All filesystems/labels/layouts/sizes/etc... used are the defaults that would
### be used in an entire disk with encryption install.
###
### Exceptions are...
### 2 GiB for /boot to allow for plenty of older kernels
### 20 GiB for swap to account for 16 GiB RAM hibernating plus a bit extra
###
@Lantizia
Lantizia / com.ubuntu.enable-hibernate.pkla
Created September 11, 2018 13:49 — forked from xsnpdngv/com.ubuntu.enable-hibernate.pkla
Enable hibernate option in Ubuntu: Create or edit under: /etc/polkit-1/localauthority/50-local.d/
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes