Skip to content

Instantly share code, notes, and snippets.

View teliosdev's full-sized avatar
:shipit:

Jeremy Rodi teliosdev

:shipit:
View GitHub Profile
@ctsrc
ctsrc / 00_install_fbsd_14_0_hetzner.md
Last active May 22, 2024 16:21
Install FreeBSD 14.0 on Hetzner

Install FreeBSD 14.0 on Hetzner server

Hetzner no longer offers direct install of FreeBSD, but we can do it ourselves. Here is how :)

Boot the hetzner server in Hetnzer Debain based rescue mode. ssh into it. then:

wget https://mfsbsd.vx.sk/files/iso/14/amd64/mfsbsd-14.0-RELEASE-amd64.iso

qemu-system-x86_64 \
@teliosdev
teliosdev / rbinit_project.rb
Last active December 25, 2015 08:09
Creates a basic project for creating a ruby library.
#!/usr/bin/env ruby
require 'fileutils'
def init_project(project_name, user_name, user_email, directory)
project_directory = File.join(directory,
project_name.gsub("-", "/")).gsub("./", "")
project_const = project_name.gsub(/_([a-z])/) do |match|
@christhekeele
christhekeele / ALLOWABLE.md
Last active May 16, 2023 10:27
Allowable: A Ruby gem DSL for compound conditionals.

Allowable

A micro-gem DSL for compound conditionals.

Allowable lets you decompose large/long conditional chains into readable, testable, and inspectable segments with Ruby blocks.

Installation

@willurd
willurd / web-servers.md
Last active May 24, 2024 13:07
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@defunkt
defunkt / gemspec
Created March 9, 2010 01:41
Quickly create a gemspec.
#!/usr/bin/env ruby
# Usage: gemspec [-s] GEMNAME
#
# Prints a basic gemspec for GEMNAME based on your git-config info.
# If -s is passed, saves it as a GEMNAME.gemspec in the current
# directory. Otherwise prints to standard output.
#
# Once you check this gemspec into your project, releasing a new gem
# is dead simple:
#