As configured in my dotfiles.
start new:
tmux
start new with session name:
"Describe Project Structure to Create configuration" | |
MetacelloToolBox | |
createBaseline: '1.0-baseline' | |
for: 'SimpleApplescript' "Project name" | |
repository: 'http://squeaksource.com/SPDPlayground' | |
requiredProjects: #('OSProcess') | |
packages: #('CommandShell-Piping' 'SimpleApplescript') | |
repositories: #() | |
dependencies: { | |
('SimpleApplescript' -> #('CommandShell-Piping')). |
As configured in my dotfiles.
start new:
tmux
start new with session name:
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
<?php | |
namespace com\indigloo\core { | |
use \com\indigloo\Configuration as Config; | |
use \com\indigloo\mysql\PDOWrapper; | |
use \com\indigloo\Logger as Logger; | |
/* | |
* custom session handler to store PHP session data into mysql DB |
'Copyright (c) 2014 John Cromartie | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in |
<?php | |
use Zend\Db\Sql\Select; | |
// basic table | |
$select0 = new Select; | |
$select0->from('foo'); | |
// 'SELECT "foo".* FROM "foo"'; | |
# download latest libevent2 and tmux sources, and extract them somewhere | |
# (thx bluejedi for tip on latest tmux URL) | |
# | |
# at the time of writing: | |
# https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
# http://sourceforge.net/projects/tmux/files/latest/download?source=files | |
# | |
# install deps | |
yum install gcc kernel-devel make ncurses-devel |
"Set the following variables, some of which have reasonable defaults, for your environment" | |
The required expect file lives at https://gist.github.com/seandenigris/4945436" | |
command := 'sftp'. "Tested with ssh and sftp" | |
userName := 'root'. | |
ipAddress := ''. | |
password := ''. | |
prompt := 'sftp> '. | |
expectFilePath := '/path/to/expect_file.exp'. | |
escapedPassword := password copyReplaceAll: '"' with: '\"'. |