Skip to content

Instantly share code, notes, and snippets.

View zman0900's full-sized avatar

Dan Ziemba zman0900

View GitHub Profile
@zman0900
zman0900 / interfaces.conf
Last active August 11, 2019 06:24
Add ULA address to pfsense LAN
# Put in /usr/local/etc/devd/interfaces.conf
# Adds ULA address later - using VIP feature breaks RA of prefix delegated from WAN.
# Based on https://web.archive.org/web/20190811062325/https://old.reddit.com/r/PFSENSE/comments/97b5zj/ipv6_isp_assigned_prefixes_how_to_assign_ip/
notify 1 {
match "system" "IFNET";
match "subsystem" "igb1";
match "type" "LINK_UP";
action "/sbin/ifconfig igb1 inet6 fd00::1 prefixlen 64 alias";
};

Running Unifi Controller in systemd-nspawn with cloud-init

This uses Ubuntu's server cloud image as a stateless container to run the UBNT Unifi Controller software. Configuration data is stored in a directory outside the container. Cloud-init is used to automatically set up the container image, so a new version can be dropped in with minimal effort. This should work with pretty much any modern Linux distro with systemd.

Setup

Systemd-nspawn prefers to store its machines on btrfs, so if your /var/lib/machines is not currently btrfs, you should create one and mount it there. Otherwise it will automatically create an image file at /var/lib/machines.raw and mount it.

Create a device

diff --git a/PKGBUILD b/PKGBUILD
index 5243ecf..4b3b941 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -29,6 +29,7 @@ package_transgui-qt() {
cd "${srcdir}/${pkgbase}-${pkgver}"
+ make clean
lazbuild "${pkgbase}.lpi" \
@zman0900
zman0900 / arch-config-diff.groovy
Created November 8, 2018 05:03
Simple groovy script to show changes in Arch Linux kernel config
#!/usr/bin/env groovy
if (!args) {
throw new IllegalArgumentException('Expected commit as only arg')
}
def commit = args[0]
println "Getting changes for commit: $commit"
def url = "https://git.archlinux.org/svntogit/packages.git/patch/trunk/config?id=$commit".toURL()
From f004c034358ee588b6bd2ecf2cd876ff054db569 Mon Sep 17 00:00:00 2001
From: Dan Ziemba <[email protected]>
Date: Mon, 8 Jan 2018 13:23:28 -0500
Subject: [PATCH] Package cleanup
- Fixed LICENSE.txt -> LICENSE
- Better version numbering
- Removed .install file, no longer necessary
- Removed unneeded dependencies
- Added more package conflicts
diff --git a/PKGBUILD b/PKGBUILD
index 79af1e5..a974c4c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,32 +3,32 @@
pkgname=transmission-remote-gui-gtk2
_pkgname=transgui
-pkgver=5.11.0
+pkgver=5.12.0
diff --git a/PKGBUILD b/PKGBUILD
index e1b8861..e363167 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,38 +4,38 @@
pkgname=transgui-gtk2-git
_pkgname=transgui
-pkgver=8b2a878
+pkgver=6a96f67
diff --git a/PKGBUILD b/PKGBUILD
index e47d4d0..c2b699a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,6 @@ arch=('any')
pkgdesc="An intelligent IDE for Java, Groovy and other programming languages with advanced refactoring features intensely focused on developer productivity."
url="https://www.jetbrains.com/idea/"
license=('Commercial')
-makedepends=('rsync')
options=(!strip)
@zman0900
zman0900 / idea-fixes.patch
Created August 15, 2017 21:35
idea-fixes.patch
diff --git a/PKGBUILD b/PKGBUILD
index 00f5b19..d502054 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,13 +10,12 @@ pkgdesc="An intelligent IDE for Java, Groovy and other programming languages wit
url="https://www.jetbrains.com/idea/"
license=('Commercial')
depends=('java-environment' 'giflib' 'libxtst')
+makedepends=('rsync')
options=(!strip)
@zman0900
zman0900 / lib32-libgcrypt15-fix-build.patch
Created August 20, 2016 22:12
Patch for lib32-libgcrypt15 PKGBUILD to correctly build as 32 bit
diff --git a/PKGBUILD b/PKGBUILD
index a43ce0e..2df703b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,20 +17,16 @@ sha512sums=('8fced63f1bb2f3b60d456df168479ebe77acf2a8963f5dc831a25e839e0930148e2
'SKIP')
validpgpkeys=('D8692123C4065DEA5E0F3AB5249B39D24F25E3B6') # Werner Koch <https://www.gnupg.org/signature_key.html>
-prepare() {
- cd libgcrypt-${pkgver}