Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
// How to connect 5 publishers with 5 subscribers | |
// over TCP using ZeroMQ's XPUB/XSUB proxy. | |
// sub (connect) | |
// <-8701-> | |
// (bind) xpub <---> xsub (bind) | |
// <-8700-> | |
// (connect) pub | |
var zmq = require('zmq'); |
<?php | |
session_start(); | |
include_once "google-api-php-client/examples/templates/base.php"; | |
/************************************************ | |
Make an API request authenticated with a service | |
account. | |
************************************************/ | |
require_once realpath(dirname(__FILE__) . '/google-api-php-client/src/Google/autoload.php'); |
<?php | |
// WARNING: right now, support for redis-cluster is experimental, | |
// unoptimized and in its very early stages of development. To | |
// play with it you must have a correct setup of redis-cluster | |
// running (oh hai mr. obvious) and Predis v0.7-dev fetched from | |
// the redis_cluster branch of the Git repository. | |
require 'autoload.php'; |
{ | |
"folders": [{ | |
"follow_symlinks": true, | |
"path": "." | |
}], | |
"settings": { | |
"detect_indentation": false, | |
"ensure_newline_at_eof_on_save": true, | |
"tab_size": 2, | |
"file_exclude_patterns": [ |
<?php | |
// Use in the "Post-Receive URLs" section of your GitHub repo. | |
if ( $_POST['payload'] ) { | |
shell_exec( 'cd /srv/www/git-repo/ && git reset --hard HEAD && git pull' ); | |
} | |
?>hi |
Posted March 06, 2013 02:31 By Veezus Kreist (http://blog.veez.us/)
I've always been a pretty austere guy. I'd rather have less things than more: every time I move I throw out half of what I have. I'm not big into customization, either; if there's a non-ridiculous default, that's what I'm using.
That ethos extends into my work. I use the default Terminal.app on my MacBook, with the built-in Pro theme. I use exactly 12 vim plugins, including my favorite color scheme. My dot files amount to only 300-some lines, including vim options, bash options, git options, and comments.
That's the background for this post on single-session development, the way I've been developing lately. When I say session, I mean shell session. I mean, log into one shell on my laptop, maximize it, and run everything in that one session: no tabs, no screen
, and certainly no tmux
. Bernerd Schaefer started me down this path in his Laptop-Driven Development; that post has been hanging out in the back of my
Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
This gist assumes:
https://github.com/sendgrid/sendgrid-php | |
### Sending to 1,000s of emails in one batch | |
Sometimes you might want to send 1,000s of emails in one request. You can do that. It is recommended you break each batch up in 1,000 increments. So if you need to send to 5,000 emails, then you'd break this into a loop of 1,000 emails at a time. | |
```php | |
$sendgrid = new SendGrid(SENDGRID_USERNAME, SENDGRID_PASSWORD); | |
$email = new SendGrid\Email(); |