Skip to content

Instantly share code, notes, and snippets.

View desnudopenguino's full-sized avatar

Adam "Bucky" Townsend desnudopenguino

View GitHub Profile
@desnudopenguino
desnudopenguino / Firefly_III_in_FreeBSD.md
Created March 9, 2020 19:01 — forked from Zamana/Firefly_III_in_FreeBSD.md
Firefly III in FreeBSD (it's a FreeNAS jail, actually, but it doesn't matter...)

Firefly III in FreeBSD (FreeNAS jail, actually...)

I was able to Install Firefly III in a FreeBSD environment (it is a FreeNAS jail, actually, but it doesn't matter) by following the general instructions in the Firefly III documentation.

Unfortunately I didn't take notes of the whole process, step by step, as I actually do it, but I guess that this general guidelines will lead you in the right path.

“Jail” is nothing more than the container technology used by FreeBSD these days (yes, there is life beyond Docker...), and we can say that a jail is a “mini FreeBSD environment”.

So, after creating the jail (refer to the documentation of FreeBSD or FreeNAS), the first thing you need to do is to “login” at the jail's console and start to use it.

@desnudopenguino
desnudopenguino / Install Rails on OpenBSD 5.9
Last active December 20, 2018 13:43
Setting up rails on OpenBSD 5.9
1. Install Ruby
pkg_add ruby
- I chose 2.3.0
2. Install gems
pkg_add ruby-gems
3. Add ~/.gem/ruby/2.3/bin to PATH
PATH="~/.gem/ruby/2.3/bin:"$PATH
4. Install bundle
gem23 install --user-install bundler
5. Install nokogiri (or run into problems installing rails)
@desnudopenguino
desnudopenguino / x509.h
Created June 15, 2018 17:57
openssl header in OpenBSD (not LibreSSL)
/* crypto/x509/x509.h */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
@desnudopenguino
desnudopenguino / error2
Last active June 15, 2018 17:29
errors installing ruby 2.4.1 on rbenv on openbsd
/tmp/ruby-build.20180614221219.99356 /tmp/ruby-build.20180614214059.41419/ruby-2.4.4
/tmp/ruby-build.20180614221217.99356/ruby-2.4.4 /tmp/ruby-build.20180614221217.99356 /tmp/ruby-build.20180614214059.41419/ruby-2.4.4
checking for ruby... /usr/local/bin/ruby
config.guess already exists
config.sub already exists
checking build system type... x86_64-unknown-openbsd6.3
checking host system type... x86_64-unknown-openbsd6.3
checking target system type... x86_64-unknown-openbsd6.3
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
import java.util.Map;
import org.jruby.embed.IsolatedScriptingContainer;
import org.jruby.embed.PathType;
import com.amazonaws.services.lambda.runtime.Context;
public class AWSLambdaJRuby {
private static final String mainRubyFile = "main.rb";
@desnudopenguino
desnudopenguino / puma
Last active March 11, 2018 01:16
Puma rc.d script for FreeBSD
#!/bin/sh
#
. /etc/rc.subr
name="puma"
start_cmd="${name}_start"
stop_cmd="${name}_stop"
restart_cmd="${name}_restart"
rcvar=puma_enable
#!/usr/bin/env sh
# Current state
CUR_STATE=$(synclient -l | grep TouchpadOff | awk '{ print $3 }')
if [ $CUR_STATE = 0 ]; then
synclient TouchpadOff=1
elif [ $CUR_STATE = 1 ]; then
synclient TouchpadOff=0
fi
@desnudopenguino
desnudopenguino / Install Bitcoin on OpenBSD 6.0
Last active January 3, 2018 20:43
Building/Installing Bitcoin on OpenBSD
0. Make sure some dependencies are installed!
automake (1.15), autoconf (2.69), git, libtool, berkleydb (installed from source 4.8), boost, protobuf, python > 3.5, gmake, leveldb
5.9 guide: https://github.com/bitcoin/bitcoin/blob/master/doc/build-openbsd.md
1. Clone the repo
git clone https://github.com/bitcoin/bitcoin.git
2. Checkout newest stable branch (0.13.0 currently)
git checkout v0.13.0
3. run autogen script
./autogen.sh
Error: Provide an AUTOCONF_VERSION environment variable, please.
@desnudopenguino
desnudopenguino / vultr_openbsd.tf
Last active November 4, 2017 08:53
A sample config to set up openbsd on vultr
// Configure the Vultr provider.·
// Alternatively, export the API key as an environment variable: `export VULTR_API_KEY=<your-vultr-api-key>`.
provider "vultr" {
api_key = "<api key>"
}
// Find the ID of the Silicon Valley region.
data "vultr_region" "seattle" {
filter {
name = "name"
@desnudopenguino
desnudopenguino / Xorg.0.log
Last active August 19, 2017 17:26
Error(s) when running startx in OpenBSD 6.0 on a Lenovo 11e AMD A4-6210 with integrated R3 gfx with fw_update run
[ 26.876] (--) checkDevMem: using aperture driver /dev/xf86
[ 26.889] (--) Using wscons driver on /dev/ttyC4
[ 26.898]
X.Org X Server 1.18.3
Release Date: 2016-04-04
[ 26.898] X Protocol Version 11, Revision 0
[ 26.898] Build Operating System: OpenBSD 6.0 amd64
[ 26.898] Current Operating System: OpenBSD 11e.my.domain 6.0 GENERIC.MP#2319 amd64
[ 26.898] Build Date: 26 July 2016 01:23:40PM
[ 26.898]