Skip to content

Instantly share code, notes, and snippets.

Dan Langille dlangille

Block or report user

Report or block dlangille

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dlangille
dlangille / this should go into a small shell script
Created Jan 10, 2020
Steps for configuring a FreshPorts instance post 'git clone'
View this should go into a small shell script
Steps for configuring a FreshPorts instance post 'git clone'
# e.g. /usr/local/etc/m.freshports.org
ETCDIR="/usr/local/etc/INSTANCENAME"
# e.g. /usr/home/pepo/public_html/
BASEDIR="dir where you did he git clone"
# first, the include directory
cd ${BASEDIR}/freshports/include
View msg.pl
#!/usr/local/bin/perl
my $msg="
------------------------------------------------------------------------
r522460 | pkubaj | 2020-01-08 21:36:57 +0000 (Wed, 08 Jan 2020) | 10 lines
multimedia/obs-studio: fix build on powerpc64
Merge upstream commit to use GCC's SSE->AltiVec translation. Since it depends on compiling with GCC, it only works on ELFv1. Hopefully it will be possible to build it on ELFv2 in the future.
@dlangille
dlangille / errors when pasting
Created Dec 23, 2019
PrivateBin on FreeBSD seems to need some tweaking
View errors when pasting
2019/12/23 16:46:45 [error] 88558#102134: *11 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Exception: unable to create directory data in /usr/local/www/privatebin/lib/Persistence/AbstractPersistence.php:88
Stack trace:
#0 /usr/local/www/privatebin/lib/Persistence/AbstractPersistence.php(72): PrivateBin\Persistence\AbstractPersistence::_initialize()
#1 /usr/local/www/privatebin/lib/Persistence/TrafficLimiter.php(104): PrivateBin\Persistence\AbstractPersistence::_exists('traffic_limiter...')
#2 /usr/local/www/privatebin/lib/PrivateBin.php(200): PrivateBin\Persistence\TrafficLimiter::canPass()
#3 /usr/local/www/privatebin/lib/PrivateBin.php(125): PrivateBin\PrivateBin->_create()
#4 /usr/local/www/privatebin/index.php(19): PrivateBin\PrivateBin->__construct()
#5 {main}
thrown in /usr/local/www/privatebin/lib/Persistence/AbstractPersistence.php on line 88" while reading response header from upstream, client: 100.14.204.33, server: bin.langille.org, request: "POST / HTTP/2.0", upstream: "fastc
@dlangille
dlangille / list
Created Dec 19, 2019
keycloak - files modified by the application, or by the user
View list
[dan@keycloak:/usr/local/share/java/keycloak] $ find .
./standalone.xml
./standalone
./standalone/tmp
./standalone/tmp/vfs
./standalone/tmp/vfs/temp
./standalone/data
./standalone/data/kernel
./standalone/data/kernel/process-uuid
./standalone/data/timer-service-data
View After pkg delete, these files remain
[dan@keycloak:/usr/local/share/java/keycloak] $ find .
.
./modules
./modules/system
./modules/system/layers
./modules/system/layers/keycloak
./modules/system/layers/keycloak/org
./modules/system/layers/keycloak/org/postgresql
./standalone.xml
./standalone
View rc.d glewlwyd
[dan@webs02:/usr/local/etc/rc.d] $ cat glewlwyd
#!/bin/sh
# $FreeBSD$
# PROVIDE: glewlwyd
# REQUIRE: LOGIN cleanvar
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable glewlwyd:
View CMakeError.log
root@120amd64-default-master-list:~ # less /wrkdirs/usr/ports/www/glewlwyd/work/.build/CMakeFiles/CMakeError.log
Determining if the __GNU_LIBRARY__ exist failed with the following output:
Change Dir: /wrkdirs/usr/ports/www/glewlwyd/work/.build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/local/bin/ninja cmTC_69b14 && [1/2] Building C object CMakeFiles/cmTC_69b14.dir/CheckSymbolExists.c.o
FAILED: CMakeFiles/cmTC_69b14.dir/CheckSymbolExists.c.o
/usr/local/libexec/ccache/cc -O2 -pipe -I/usr/local/include/postgresql/server/libpq -I/usr/local/include/postgresql/server -fstack-protector-strong -fno-strict-aliasing -Wall -Werror -o CMakeFiles/cmTC_69b14.dir/CheckSymbolExists.c.o -c CheckSymbolExists.c
CheckSymbolExists.c:2:10: fatal error: 'features.h' file not found
#include <features.h>
^~~~~~~~~~~~
View 1 -start
[dan@keycloak:/usr/local/share/java/keycloak] $ sudo sh bin/standalone.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /usr/local/share/java/keycloak
JAVA: java
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
@dlangille
dlangille / example run
Created Dec 10, 2019
Locate the data directory for PostgreSQL on FreeBSD
View example run
$ ./get_postgresql_data
/var/db/postgres/data12
@dlangille
dlangille / output
Created Dec 6, 2019
extracting each element separated by : from within 113R:2019Q4:py36
View output
$ ~/tmp/test-params
113R
2019Q4:py36
2019Q4
py36
You can’t perform that action at this time.