Skip to content

Instantly share code, notes, and snippets.

View ellisio's full-sized avatar
:octocat:
Go Avs!

Andrew Ellis ellisio

:octocat:
Go Avs!
View GitHub Profile
@ellisio
ellisio / redis.sh
Created December 11, 2014 18:08
An init.d script for Redis on CentOS 6.
#!/bin/sh
# http://vm-192-168-11-21.shengyun.grandcloud.cn/topics/2437
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: 2345 90 10
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis.pid
@ellisio
ellisio / a.rb
Created February 18, 2015 20:14
https://gist.github.com/c0f1653f6e9d522c316f
@ellisio
ellisio / a.rb
Created February 18, 2015 20:15
https://gist.github.com/91920e3e55507691a75f
<?php namespace Api\Http\Requests\V3\Action;
use Auth;
use Api\Http\Requests\Request;
/**
* Class ActionStoreRequest
*
* @package Api\Http\Requests\V3\Auth
*/
<?php namespace Api\Http\Requests\V3\Action;
use Auth;
use Api\Http\Requests\Request;
/**
* Class ActionStoreRequest
*
* @package Api\Http\Requests\V3\Auth
*/
echo "deb http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu trusty main" > /etc/apt/sources.list.d/ondrej-php5-5_6-trusty.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C >/dev/null 2>&1
apt-get update -y
apt-get install -y php5-curl php5-mongo php5-mcrypt
[
{ "date": 20150101, "text": "Cat" },
{ "date": 20150101, "text": "Dog" },
{ "date": 20150201, "text": "Fish" }
]
[Unit]
Description=Share local port(s) with ngrok
After=syslog.target network.target
[Service]
User=vagrant
Type=simple
Restart=always
RestartSec=1min
TimeoutSec=0
version: '2'
#
# Network Configuration
#
networks:
default:
#
# Services Configuration
# Set colorflag for LS
colorflag="-G"
# List all files colorized in long format
alias l="ls -l ${colorflag}"
# List all files colorized in long format, including dot files
alias la="ls -la ${colorflag}"
# List only directories