Skip to content

Instantly share code, notes, and snippets.

@jourdein
jourdein / dnsmasq OS X.md
Last active February 14, 2024 09:04 — forked from ogrrd/dnsmasq OS X.md
Setup dnsmasq on OS X
# Rake Quick Reference
# by Greg Houston
# http://ghouston.blogspot.com/2008/07/rake-quick-reference.html
# -----------------------------------------------------------------------------
# Running Rake
# -----------------------------------------------------------------------------
# running rake from the command-line:
# rake --help
@jourdein
jourdein / Ubuntu Rails Setup Steps
Created November 8, 2017 22:20 — forked from JElbourne/Ubuntu Rails Setup Steps
SETUP STEPS for Ubuntu Desktop with various apps and settings, Ruby, Rails, PostgreSQL, and others
#********************************************************************
# Ubuntu Setup Steps for initial install PLUS
# Ruby on Rails setup using PostreSQL
#
# by: Jay Elbourne
# date: March 2016
# Ubuntu 15.10 (32 bit [because of VirtualBox])
# Ruby 2.2.3
# Rails 4.2.4
# PostreSQL 9.5
@jourdein
jourdein / a quick way to deploy ruby on rails on vagrant.md
Created November 7, 2017 09:29 — forked from duleorlovic/a quick way to deploy ruby on rails on vagrant.md
Quickly deploy any Ruby on Rails application to VirtualBox using Vagrant or to any other provider of Linux machine just running this shell script

Deploy Ruby on Rails

You can use those bootstrap script to deploy your Rails application to Virtualbox. It's not intended to replace Chef or Puppet, but since its plain bash, its very readable and you can copy some lines and paste to your ssh session...

How to use

After installing Vagrant software run vagrant init and edit your Vagrantfile

@jourdein
jourdein / gist:a143f41e6793bf373603
Last active August 29, 2015 14:05
List all fonts on iPhone | ARC
// List all fonts on iPhone
NSArray *familyNames = [UIFont familyNames];
NSArray *fontNames;
NSInteger indFamily, indFont;
for (indFamily = 0; indFamily < familyNames.count; ++indFamily)
{
NSLog(@"Family name: %@", familyNames[indFamily]);
fontNames = [UIFont fontNamesForFamilyName:familyNames[indFamily]];
for (indFont = 0; indFont < fontNames.count; ++indFont)
{