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.
$ python -m SimpleHTTPServer 8000
#!/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: | |
# |
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.
$ python -m SimpleHTTPServer 8000
A micro-gem DSL for compound conditionals.
Allowable lets you decompose large/long conditional chains into readable, testable, and inspectable segments with Ruby blocks.
#!/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| |
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 \