start new:
tmux
start new with session name:
tmux new -s myname
I sold my iMac (2011 model 27",i5, AMD 6970 video card, 12GB RAM) for PHP 45,000 and am building a new PC. | |
here are the specs and current price nila from online price checks : | |
Video Card : - AMD Sapphire R9-290X 4GB GDDR5 - PHP 24,850 Dynaquest Website price | |
CPU : - i5 4670 3.4-3.8 haswell - PHP 9,950 Dynaquest Website price | |
RAM : - Corsair Vengeance 16GB quad 1600 CL9 - PHP 6,500 Dynaquest Website price | |
MOBO : - Asrock Fatal1ty Z87 Killer (LGA 1150) - PHP 6,750 Dynaquest website price | |
HD : Western Digital 2tb - PHP 4,800 - Dynaquest Website price | |
Case : Generic - PHP 3,000 - budget |
### Excel CSV helper for CodeIgniter | |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
// ------------------------------------------------------------------------ | |
/** | |
* CSV Helpers | |
* Inspiration from PHP Cookbook by David Sklar and Adam Trachtenberg |
Connecting... | |
Sending Client Hello... | |
Waiting for Server Hello... | |
... received message: type = 22, ver = 0302, length = 66 | |
... received message: type = 22, ver = 0302, length = 1445 | |
... received message: type = 22, ver = 0302, length = 587 | |
... received message: type = 22, ver = 0302, length = 4 | |
Sending heartbeat request... | |
... received message: type = 24, ver = 0302, length = 16384 | |
Received heartbeat response: |
%define ver 0.8.2 | |
%define rel 1 | |
%define jobs 2 | |
Name: nodejs | |
Version: %{ver} | |
Release: %{rel} | |
Summary: Node's goal is to provide an easy way to build scalable network programs. | |
Group: Applications/Internet | |
License: Copyright Joyent, Inc. and other Node contributors. |
var cluster = require('cluster'); | |
var m = 10000000; | |
function bounce(msg, out) { | |
if (msg < m) { | |
out.send(msg + 1); | |
return null; | |
} else { | |
console.log("Finished with", msg); |
# | |
group = core | |
admin-port = 13000 | |
smsbox-port = 13001 | |
admin-password = maw | |
status-password = maw | |
admin-allow-ip = "127.0.0.1" | |
log-level = 1 | |
box-allow-ip = "*.*.*.*" |
import requests | |
from bs4 import BeautifulSoup | |
url = 'http://polli.me/events.php?eid=%s&iids=%s' | |
while True: | |
response = requests.get('http://polli.me/events.php?ec=605061973') | |
soup = BeautifulSoup(response.text) |
#!/bin/sh | |
# Purpose: setup new OS X machine for Ruby/Rails development | |
# Pre-Requirements: GCC (https://github.com/kennethreitz/osx-gcc-installer) | |
# Usage: bash < <(curl -fsSkL https://raw.github.com/gist/4169434/rails-install.sh) | |
RUBY_VERSION="1.9.3-p327" | |
if [[ `which gcc` == "" ]]; then | |
echo "[E] Please install GCC first. Exiting." | |
exit 1 |
RVM | |
$ rvm get head | |
$ rvm upgrade 1.9.3-p362 1.9.3-p374 | |
(if it's not downloading binaries, using an rvm_make_flags like "-j3" can speed things up. see https://rvm.io/workflow/rvmrc/) | |
rbenv with ruby-build | |
$ cd ~/.rbenv/plugins/ruby-build | |
$ git pull | |
$ rbenv install 1.9.3-p374 MAKE_OPTS="-j3" | |
$ rbenv rehash |