Skip to content

Instantly share code, notes, and snippets.

@keikun17
keikun17 / gist:8819331
Last active August 29, 2015 13:56
2014 PC
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

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@rjjohnpatrickcruz
rjjohnpatrickcruz / csv_helper
Last active August 29, 2015 13:56
Excel CSV Helper - CodeIgniter
### 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
@1njected
1njected / gist:10419549
Created April 10, 2014 20:22
#heartbleed FreeBSD 10 leak private key
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:
@jmyrland
jmyrland / nodejs.spec
Created July 19, 2012 12:23 — forked from splaice/nodejs.spec
RPM spec file for node
%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.
@aphyr
aphyr / gist:3200829
Created July 29, 2012 18:29
Node.js message passing test
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);
@miclovich
miclovich / kannel.conf
Created October 12, 2011 13:51
kannel (adopted from daveycrokett's kannel conf file)
#
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 = "*.*.*.*"
@jpanganiban
jpanganiban / gist:3826762
Created October 3, 2012 12:55
Unleash the Cracken
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)
@zh
zh / rails-install.sh
Created November 29, 2012 14:26
New OS X machine setup for Ruby/Rails development
#!/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
@bryanbibat
bryanbibat / upgrading.txt
Created January 18, 2013 17:11
Upgrading Ruby cheatsheet (*nix)
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