Install:
$ brew update && brew install composer
$ composer global require psy/psysh
# If asked what version constraint to use just type `*`
Update Your PATH
for global CLI use:
Install:
$ brew update && brew install composer
$ composer global require psy/psysh
# If asked what version constraint to use just type `*`
Update Your PATH
for global CLI use:
<?php | |
echo "Enter the amount in US dollars: $"; | |
$money = read_stdin(); | |
echo "What currency do you want to convert to? (E)uros, (P)esos, (B)ritish Pounds: "; | |
$currency = strtoupper(read_stdin()); | |
$converted = convert($money, $currency); |
Set your name and email for your commit messages
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]
Exclude git tracking UNIX file permissions: Unix file permissions modes (755=rwxrw_rw_, 644=rw_r__r__) - the old mode included the +x (executable) flag, the new mode doesn't. http://code.google.com/p/msysgit/issues/detail?id=164
Set your name and email for your commit messages
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]
Exclude git tracking UNIX file permissions: Unix file permissions modes (755=rwxrw_rw_, 644=rw_r__r__) - the old mode included the +x (executable) flag, the new mode doesn't. http://code.google.com/p/msysgit/issues/detail?id=164
# Simple, scrappy UDP DNS server in Ruby (with protocol annotations) | |
# By Peter Cooper | |
# | |
# MIT license | |
# | |
# * Not advised to use in your production environment! ;-) | |
# * Requires Ruby 1.9 | |
# * Supports A and CNAME records | |
# * See http://www.ietf.org/rfc/rfc1035.txt for protocol guidance | |
# * All records get the same TTL |
require 'bindata' | |
class CustomProtocol < BinData::Record | |
endian :big | |
stringz :command_word | |
uint8 :op1 | |
uint8 :op2 | |
end |
This tutorial assists users of the CuBox i4-Pro (using Freescale's iMX6 SoC) stand up a stable, serial-only version (no desktop/GUI) of Debian Wheezy with working Networking (Ethernet and WiFi) with Ruby/Rails. Information collected from various forum posts, blog posts, etc. Attribution added where I could remember. Using a Windows 8.1 machine, please provide comments for update regarding Mac/Linux tutorial translations (for the most part it shouldn't matter except for how you write ISOs to microSD cards).
Note: Relatively new at this level of Linux usage, if there are better ways to do something please mention in comments so I can update
Note: The password for root
is cubox-i
on this linked Debian image
#!/usr/bin/ruby | |
# Create display override file to force Mac OS X to use RGB mode for Display | |
# see http://embdev.net/topic/284710 | |
# Steps from http://www.ireckon.net/2013/03/force-rgb-mode-in-mac-os-x-to-fix-the-picture-quality-of-an-external-monitor | |
# Steps... (make sure to have laptop lid closed and only one monitor hooked up) | |
# Step 1) $ ruby patch-edid.rb # This will create a new folder inside of the folder this file is ran in, needs to be moved to Step 2 | |
# Step 2) A new folder will be created in your home directory. Move it into the “/System/Library/Displays/Overrides” folder. If Finder tells you that you are overwriting an existing folder, consider backing it up first. | |
# Step 3) Restart computer | |
require 'base64' |