(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
<?php | |
/** | |
* references: | |
* http://www.murraypicton.com/2010/09/extending-objects-using-anonymous-functions-in-php/ | |
* http://php.net/manual/en/functions.anonymous.php | |
* http://php.net/manual/en/function.is-callable.php | |
*/ | |
class Foo { | |
public $bar; |
#!/usr/bin/env perl | |
use Text::CSV; | |
use Getopt::Long qw/ GetOptionsFromArray :config pass_through /; | |
use warnings; | |
use strict; | |
my $usage = "usage: $0 [-e] < file.csv\n"; | |
exit main( @ARGV ); |
#!/usr/bin/env perl | |
use Text::CSV; | |
use Getopt::Long qw/ GetOptionsFromArray :config pass_through /; | |
use warnings; | |
use strict; | |
my $usage = "usage: $0 [-e] < file.tsv\n"; | |
exit main( @ARGV ); |
NOTE: I like to prepend some of the commands with
time
just for curiosity’s sake to see how long it takes.
Go to System Preferences -> Sharing -> uncheck the Personal Web sharing. You will never turn Apache on/off here again.
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...
After installing Vagrant software run vagrant init
and edit your Vagrantfile
#!/bin/bash | |
## Author: mcdwayne | |
## Created to support this project doc: | |
## https://docs.google.com/document/d/1UnVzmQhCv9_IT0-u-tjvWPDR-QQAU31ij2iKkio8U3U/edit# | |
## | |
## Made at MidCamp 2019 | |
# Ask for the module's machine name | |
# this is found in the module URL. |