Skip to content

Instantly share code, notes, and snippets.

View ahacking's full-sized avatar

Andrew Hacking ahacking

  • Brisbane, Australia
View GitHub Profile
@hiway
hiway / README.md
Last active April 23, 2024 13:12
Creating a single process FreeBSD (12.1) Jail

How to jail a single process web server on FreeBSD 12.1

You may have found many great resources on how to set up jails on latest FreeBSD, however there is scant information on how to go about creating a barebones jail with nothing but the one process that you want to isolate.

I was curious if I could contain a statically compiled web server that I wrote while learning Rust all by itself in a jail instead of having a full userland.

@wtnabe
wtnabe / README.md
Created December 15, 2010 08:42
import seed data from .csv or .yml for Rails 2.3.4+

Rails SeedImporter

  1. Put this code at #{Rails.root}/db/seeds.rb
  2. type rake db:setup

Limitation

It supports only `id' primary key.