Skip to content

Instantly share code, notes, and snippets.

@genneko
genneko / p5-Net-Proxy-0.13_2.diff
Last active October 9, 2019 08:09
[patch] net/p5-Net-Proxy 0.13_1 to 0.13_2 (FreeBSD port) add IPv6 and libwrap support to tcp connector
Index: Makefile
===================================================================
--- Makefile (revision 514118)
+++ Makefile (working copy)
@@ -3,7 +3,7 @@
PORTNAME= Net-Proxy
PORTVERSION= 0.13
-PORTREVISION= 1
+PORTREVISION= 2
@genneko
genneko / omegaT-4.3.0.diff
Last active October 1, 2019 04:35
[patch] editors/omegaT-3.6.0 to 4.3.0 (FreeBSD port). This avoids gradle bulid by using distributed jars.
Index: Makefile
===================================================================
--- Makefile (revision 513440)
+++ Makefile (working copy)
@@ -1,10 +1,10 @@
# $FreeBSD$
PORTNAME= omegaT
-DISTVERSION= 3.6.0
+DISTVERSION= 4.3.0
@genneko
genneko / gettext-tools-0.20.1_2.diff
Last active September 27, 2019 07:51
[patch] devel/gettext-tools-0.20.1_1 to 0.20.1_2 (FreeBSD port) handle JS template strings correctly (upstream patch for bug 56678)
Index: Makefile
===================================================================
--- Makefile (revision 512551)
+++ Makefile (working copy)
@@ -5,7 +5,7 @@
# discretion.
PORTNAME= gettext-tools
-PORTREVISION= 1
+PORTREVISION= 2
@genneko
genneko / onedrive-2.3.9.diff
Last active September 30, 2019 07:06
[patch] net/onedrive-2.3.3_1 to 2.3.9 (FreeBSD port)
Index: Makefile
===================================================================
--- Makefile (revision 513327)
+++ Makefile (working copy)
@@ -2,8 +2,7 @@
PORTNAME= onedrive
DISTVERSIONPREFIX= v
-DISTVERSION= 2.3.3
-PORTREVISION= 1
@genneko
genneko / .gitignore
Last active June 28, 2019 04:36
A bare minimum template for a Mojolicious Lite app.
log
hypnotoad.pid
diff --git a/ElectronClient/app/electronRebuild.js b/ElectronClient/app/electronRebuild.js
index 4b6143f6..41ac1e5a 100644
--- a/ElectronClient/app/electronRebuild.js
+++ b/ElectronClient/app/electronRebuild.js
@@ -30,6 +30,10 @@ const isMac = () => {
return process && process.platform === 'darwin';
}
+const isFreeBSD = () => {
+ return process && process.platform === 'freebsd';
@genneko
genneko / JoplinTest.md
Last active June 23, 2019 07:02
A quick note on how to install Joplin CLI client on FreeBSD.

Testing on VNET Jails

Host

/etc/jail.conf

exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.clean;
mount.devfs;

host.hostname = $name;
@genneko
genneko / .Xdefaults
Last active June 20, 2019 19:53
Config files for Xfce4 + Slim on FreeBSD 11.3 on VirtualBox on Windows
XTerm*utf8 : 1
XTerm*locale : true
XTerm*selectToClipboard : true
XTerm*faceName: DejaVu Sans Mono:style=Book:antialias=true
XTerm*faceNameDoublesize: VL Gothic:style=reguler:antialias=true
xterm*ximFont: -misc-fixed-medium-r-normal--14-130-75-75-c-140-jisx0208.1983-0
XTerm*faceSize : 10.5
XTerm*cjkWidth : true
XTerm*fontDoublesize : true
XTerm*saveLines : 2000
@genneko
genneko / swatch.patch
Created June 10, 2019 05:05
A patch for swatch echo action to suppress uninitialized string warnings
--- Actions.pm.orig 2019-06-10 13:45:42.577613000 +0900
+++ Actions.pm 2019-06-10 13:52:49.789538000 +0900
@@ -62,7 +62,8 @@
and $args{'THRESHOLDING'} eq 'on'
and not &Swatch::Threshold::threshold(%args));
- if (${$args{'MODES'}}[0] =~ /^normal$/i) { # for backward compatability
+ if (${$args{'MODES'}}[0] =~ /^normal$/i # for backward compatability
+ || @{$args{'MODES'}} < 1 ){
print "$args{'MESSAGE'}\n";
@genneko
genneko / destroy_cloneif_on_vnet.sh
Last active May 11, 2019 12:50
Test: destroy renamed clone interfaces on VNET(VIMAGE) jail.
#!/bin/sh
JAILNAME=test
IFLIST="edsc epair ipsec gif gre lagg lo stf tap tun vlan vmnet vxlan"
runcmd(){
echo "#" $@ >&2
"$@"
}
create(){