Skip to content

Instantly share code, notes, and snippets.

View jpalala's full-sized avatar
🔭
Lets build something useful

Joe Palala jpalala

🔭
Lets build something useful
View GitHub Profile
@jpalala
jpalala / eden-php-model.php
Last active August 29, 2015 14:18 — forked from adin234/mode.php
Eden PHP Model how-to
<?php
/* MODEL */
class Some_Model extends Eden_Sql_model {
protected $_table = 'some_table';
public function __construct($database = null) {
$this->_database = $database ? $database : front()->database();
//do some other things here
}
@jpalala
jpalala / .gitconfig
Last active August 29, 2015 14:20 — forked from AndreiRailean/.gitconfig
git aliases in my gitconfig
[alias]
co = checkout
cob = checkout -b
st = status
s = status
ci = commit
c = commit
br = branch
a = add
d = diff
@jpalala
jpalala / nodejs-testing-tools-install.sh
Last active July 8, 2016 18:31 — forked from shanestillwell/install.sh
install nodejs mocha test tools with nvm (node-version-manager)
#!/bin/bash
NPM=~/.nvm/versions/node/v0.12.0/bin/npm
$NPM install -g mocha
$NPM install -g chai
$NPM install -g xunit-file
$NPM install -g jshint
$NPM install -g nock
$NPM install -g supertest
@jpalala
jpalala / redis_xampp.sh
Last active April 18, 2021 07:39 — forked from oleksandrilchuk/redis_xampp.sh
Install redis server and redis php extension for xampp(php 5.3).
sudo bash
wget http://redis.googlecode.com/files/redis-2.6.0.tar.gz
tar xzf redis-2.6.0.tar.gz
cd redis-2.6.0
make
sudo make install clean
# autostart in /etc/rc.local before "exit 0" add:
# /usr/local/bin/redis-server /etc/redis/redis.conf
@jpalala
jpalala / readme.md
Last active September 1, 2015 07:58 — forked from ashrithr/readme.md
Installing ELK on a single machine

Installing ELK (CentOS)

This is a short step-by-step guide on installing ElasticSearch LogStash and Kibana Stack on a CentOS environment to gather and analyze logs.

I. Install JDK

rpm -ivh https://dl.dropboxusercontent.com/u/5756075/jdk-7u45-linux-x64.rpm
@jpalala
jpalala / install-elasticsearch-kibana-ec2-centos.md
Last active September 1, 2015 08:02 — forked from msolujic/install-elasticsearch-kibana-ec2-centos.md
Install ElasticSearch and Kibana on EC2 centos machine

##Setup initial dependences

sudo yum update 
sudo yum install wget
sudo yum install curl
sudo yum install httpd

##Setup ElasticSearch

@jpalala
jpalala / readme.md
Last active September 4, 2015 01:01 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"

npm adduser

@jpalala
jpalala / gist:973b13d6b6fc0e022b3d
Last active September 18, 2015 04:10 — forked from JeffreyWay/gist:1525217
Instant Server for Current Directory
alias server='open http://localhost:8000 && python -m SimpleHTTPServer'
@jpalala
jpalala / nginx.conf
Last active September 22, 2015 09:20 — forked from asiegman/nginx.conf
nginx logstash output
# Output json-esque output for logstash to parse easily.
http {
# ...
log_format logstash_json '{"@timestamp": "$time_iso8601", '
'"remote_addr": "$remote_addr", '
'"remote_user": "$remote_user", '
'"body_bytes_sent": "$body_bytes_sent", '
'"request_time": "$request_time", '
@jpalala
jpalala / README.md
Last active October 18, 2015 15:35 — forked from tomgrohl/README.md
Make Url::secure in Laravel 4 work like Laravel 3

Make URL::secure/Redirect::secure work in Laravel 4 like it did in Laravel 3

In Laravel 3 URL::secure/Redirect::secure got overridden by the ssl config. Nice for testing locally when you don't have ssl setup.

In Laravel 4 they took it out. Why? Fuck knows...

Anyway heres how to get it working again.

#[CHANGES in L4.2]#