Skip to content

Instantly share code, notes, and snippets.

@xenophonf
xenophonf / GraphicsConfigurationOverride.xml
Created November 25, 2020 02:26
My Elite: Dangerous graphics configuration
<?xml version="1.0" encoding="UTF-8" ?>
<GraphicsConfig>
<GalaxyMap>
<High>
<NebulasCount>300</NebulasCount>
<NebulasInBackgroundCount>400</NebulasInBackgroundCount>
<MilkyWayInstancesCount>35000</MilkyWayInstancesCount>
<LocalDustBrightness>1.0</LocalDustBrightness>
<MilkywayInstancesBrightness>0.05</MilkywayInstancesBrightness>
<MilkywayInstancesSize>0.3</MilkywayInstancesSize>
@xenophonf
xenophonf / install-synergy2-focal.sh
Created September 14, 2020 14:00
How to install Synergy 2.0.12 beta on Ubuntu 20.04 (Focal Fossa) LTS
#!/usr/bin/env bash
set -Eeuo pipefail
# Download the Synergy 2 beta installer for Ubuntu 16.04 to /tmp.
cd /tmp
sudo dpkg-deb -R synergy_2.0.12.beta_b1705+e5daaeda_amd64.deb synergy_2.0.12.beta
sudo mv synergy_2.0.12.beta/usr/lib/systemd/system/synergy.service synergy_2.0.12.beta/usr/lib/systemd/system/synergy.service.dpkg-new
# Renaming the desktop file might not be necessary.
sudo mv synergy_2.0.12.beta/usr/share/applications/synergy.desktop synergy_2.0.12.beta/usr/share/applications/synergy.desktop.dpkg-new
@xenophonf
xenophonf / 01-pre-install.sh
Last active July 8, 2022 21:17
K3s on Ubuntu 20.04 with root on encrypted ZFS
#!/bin/sh
# Run as user `ubuntu` from the Ubuntu Desktop installer's live environment.
sudo apt-add-repository universe
sudo apt update
passwd ubuntu
sudo apt install --yes openssh-server screen vim
ip addr show scope global | grep inet
@xenophonf
xenophonf / satosa-quickstart.md
Last active June 14, 2023 13:38
SATOSA Quick Start Guide Using SAMLtest

This deploys SATOSA 8.0.0, at the end of which an interested party could perform a basic, end-to-end test of the current SATOSA release using SAMLtest (https://samltest.id/). Run all commands in a root shell.

  1. Install Debian 11 (Bullseye). This is essentially the Docker image build process, only it uses the SATOSA release (etc.) on PyPI:
apt update
apt dist-upgrade -y
apt install -y \
    curl \
    git \
@xenophonf
xenophonf / dustbuster.md
Last active January 10, 2020 15:18
Elite Dangerous Notes

[WARNING: This disables the Steam overlay and prevents the Steam Controller from working properly.] Do you want more space dust while flying FAO?

  1. Download a version of the Dust Buster mod updated for Elite: Dangerous 3.3 from http://cpy.zapto.org/ed/Shaders/ShaderFixes.zip; unzip it in:

...\elite-dangerous-64

  1. Move everything in:

...\elite-dangerous-64\ShaderFixes

Texture2D<float4> t0 : register(t0);
SamplerState s0_s : register(s0);
cbuffer cb0 : register(b0)
{
float4 cb0[1];
}
@xenophonf
xenophonf / 01-pre-install.sh
Last active November 28, 2018 14:02
Ubuntu 18.04.1 root-on-ZFS-on-LUKS (HP ProLiant DL380 G7)
#!/bin/sh
#### Run as user `ubuntu` from the Ubuntu Desktop installer's live environment.
passwd ubuntu
sudo apt install --yes openssh-server
ip addr
@xenophonf
xenophonf / sudo-su.el
Created August 30, 2018 14:24
Add a TRAMP method named `sudosu` that runs `sudo su - <USERNAME>`
(add-to-list 'tramp-methods
'("sudosu"
(tramp-login-program "sudo")
(tramp-login-args
(("su")
("-")
("%u")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-login
("-l"))
Name: postsrsd
Version: 1.4
Release: 3%{?dist}
Summary: A sender-envelope rewriter to comply with SPF forwarding for postfix
License: GPLv2+
URL: https://github.com/roehling/postsrsd
Source0: https://github.com/roehling/%{name}/archive/%{version}.tar.gz
BuildRequires: cmake
@xenophonf
xenophonf / install.sh
Last active June 26, 2018 14:23
Ubuntu 18.04 Root on ZFS scripted
#!/usr/bin/env bash
set -x
FQDN=$1
DISK=$2
IFACE=$3
HOSTNAME=$(echo ${FQDN} | sed -e 's/\..*//')