# pacman -S postgresql-old-upgrade
# systemctl stop postgresql.service
# mv /var/lib/postgres/data /var/lib/postgres/olddata
This is useful when you have no display output, only SSH.
Get the latest driver URL from https://www.insanelymac.com/forum/topic/324195-nvidia-web-driver-updates-for-macos-high-sierra-update-december-7-2018/
macos:~ at$ curl -JLO https://images.nvidia.com/mac/pkg/387/WebDriver-387.10.10.10.40.113.pkg
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 60.9M 100 60.9M 0 0 1983k 0 0:00:31 0:00:31 --:--:-- 2021k
| mail.google.com##td:style(letter-spacing: inherit !important) |
| From 07c44f9cee29524f7e82c7d422942b423f4c6f7e Mon Sep 17 00:00:00 2001 | |
| From: Ivan Kozik <[email protected]> | |
| Date: Mon, 24 Dec 2018 07:59:33 +0000 | |
| Subject: [PATCH] signal-desktop: add flags --disable-smooth-scrolling | |
| --disable-gpu | |
| --- | |
| .../instant-messengers/signal-desktop/default.nix | 7 +++++++ | |
| 1 file changed, 7 insertions(+) |
| --- a/chrome/browser/ui/browser_commands.cc | |
| +++ b/chrome/browser/ui/browser_commands.cc | |
| @@ -627,12 +627,12 @@ void NewTab(Browser* browser) { | |
| #endif | |
| if (browser->is_type_tabbed()) { | |
| - AddTabAt(browser, GURL(), -1, true); | |
| + AddTabAt(browser, GURL(), browser->tab_strip_model()->active_index() + 1, true); | |
| browser->tab_strip_model()->GetActiveWebContents()->RestoreFocus(); | |
| } else { |
| { lib }: | |
| rec { | |
| machines = [ | |
| { hostname = "ra"; ip = "10.10.0.1"; publicKey = "qJ+QobVpqLT7F4fafhrvZgjzzeiSlg6OjQMqdX27PXo="; endpoints = { home = "192.168.10.3:904"; internet = "101.21.7.172:906"; }; } | |
| { hostname = "plato"; ip = "10.10.0.2"; publicKey = "MBcQj0qf4swKzn1Y3md2Vmtk62HZWi2eN/S4Jeif9lE="; endpoints = { home = "192.168.10.4:904"; internet = "101.21.7.172:905"; }; } | |
| { hostname = "mojave"; ip = "10.10.0.7"; publicKey = "AKv7fMWxRAH/XPixBon+Ye1keJqiEI8ZD2ArhN1i+2k="; endpoints = { work_vmware_nat = "192.168.27.129:904"; }; } | |
| { hostname = "paris2"; ip = "10.10.0.11"; publicKey = "QAhGefXPglpLHR/NWK9Sl6M2YMJ9m7h3iFx8lfl9HVY="; endpoints = { internet = "6.21.7.51:904"; }; subdomains = [ "grab-site" ]; } | |
| { hostname = "icvm"; ip = "10.10.0.20"; publicKey = "uJsqDBJNJpeJAkq3+stcmsYd86l+A3pw3RPNkuBMmmE="; endpoints = { work_vmware_nat = "192.168.27.128:904"; }; subdomains = [ "hydra" ]; } | |
| { hostname = "bhsvps1"; ip = "10.10.0.9"; publicKey = "OKLXA4s6UqnYXrwMD |
| #!/usr/bin/env bash | |
| set -eu | |
| # Set the background color of xfce4-panel; takes 4 arguments: | |
| # R G B A, ranging from 0.0 to 1.0. | |
| # | |
| # Tested only with xfce4-panel 4.13.4 which uses four doubles for | |
| # <property name="background-rgba" type="array"> |
This is based on nixos-infect.
These instructions assume you have x86 scaleway machines that use UEFI and DHCP. You have may have to change /dev/vda15 if your machines are partitioned differently.
First, rsync your configuration to /root/configuration.
Run:
| { config, lib, ... }: | |
| with lib; | |
| { | |
| # Add support for Grub secrets | |
| config = mkIf (config.boot.loader.grub.enable && config.boot.initrd.secrets != {}) { | |
| boot.loader = { | |
| supportsInitrdSecrets = mkForce true; | |
| grub.extraInitrd = "/boot/grub/secrets-initrd.gz"; |
This is based on nixos-infect.
These instructions assume you have a machine using MBR to boot and DHCP for networking.
Run manually:
apt update
apt install curl rsync libfile-slurp-perl xz-utils
mkdir -p -m 0755 /nix