start new:
tmux
start new with session name:
tmux new -s myname
<?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 |
SetEnvIf Origin "^(.*\.example\.com)$" ORIGIN_SUB_DOMAIN=$1 | |
Header set Access-Control-Allow-Origin "%{ORIGIN_SUB_DOMAIN}e" env=ORIGIN_SUB_DOMAIN |
/* | |
MySQL | |
Target Server Type : MYSQL | |
Target Server Version : 50022 | |
File Encoding : 65001 | |
Date: 2012-12-30 21:22:23 | |
*/ |
server { | |
listen 80; | |
server_name HOSTNAME; | |
root /opt/PATH/; | |
index index.html; | |
rewrite ^/$ /en/PATH/ redirect; |
__author__ = 'zachj' | |
import requests | |
import json | |
merchantId = 'INSERT YOUR MERCHANT ID HERE' | |
token = 'INSERT YOUR API TOKEN HERE' | |
apiToken = '?access_token=' + token | |
baseURL = 'https://api.clover.com/v3/merchants/' + merchantId + '/' | |
headers = {'Content-type': 'application/json', 'Accept': 'text/plain'} |
#cloud-config | |
hostname: <your hostname> | |
ssh_authorized_keys: | |
- ssh-rsa < your Public SSH key AAAAB3NzaC1... > | |
coreos: | |
etcd: | |
addr: $private_ipv4:4001 |
<?php | |
/** | |
* Application level Controller | |
*/ | |
App::uses('Controller', 'Controller'); | |
// Controller Ejemplo | |
class AppController extends Controller { | |
public function index(){ |
# NGINX Configuration for CakePHP projects with url subdirectories. | |
# | |
# In a classic-default-generic CakePHP project you can have as many | |
# independent applications as you want just by copying the app/ | |
# directory. Apache and the .htaccess files will make the magic, but | |
# in a nginx server you will need a touch to your virtualhost conf. | |
# | |
# So, in order to make this: | |
# | |
# example.com/ —> ~/cakephp.dev/app/webroot/index.php |