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 / x509.h
Created June 15, 2018 17:57
openssl header in OpenBSD (not LibreSSL)
/* crypto/x509/x509.h */
/* Copyright (C) 1995-1998 Eric Young ([email protected])
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young ([email protected]).
* 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 / 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"
$ ranger --debug
ranger version: 1.7.2, executed with python 2.7.13
Locale: en_US.UTF-8
Current file: /home/bucky/.backgrounds/2U9ysiA.jpg
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/ranger/core/main.py", line 140, in main
fm.loop()
File "/usr/local/lib/python2.7/site-packages/ranger/core/fm.py", line 342, in loop
ui.draw_images()
File "/usr/local/lib/python2.7/site-packages/ranger/gui/ui.py", line 323, in draw_images
@desnudopenguino
desnudopenguino / _address.html.erb
Last active May 26, 2017 04:07
Contact and Address saving with Rails 5
<% prefix = "contact_address" %>
<%= fields_for prefix, @address do |address_form| -%>
<div class="field">
<%= address_form.label :name %>
<%= address_form.text_field :name, id: :address_name %>
</div>
<div class="field">
<%= address_form.label :street %>
<%= address_form.text_field :street, id: :address_street %>
@desnudopenguino
desnudopenguino / common.py
Created March 26, 2017 02:08
libtmux hack fix to use it in OpenBSD's tmux (libtmux/common.py)
" Starting at line 401
403 " OpenBSD doesn't use -V, so make sure it is > 5.8 "
1 import platfor9
2 os = platform.system()
3 rel = platform.release()
4
5 if not version:
6 proc = tmux_cmd('-V')
7 " OpenBSD hack "
8 if os != 'OpenBSD' and float(rel) <= 5.9:·