I hereby claim:
- I am edderrd on github.
- I am edder (https://keybase.io/edder) on keybase.
- I have a public key ASCFga8HMTv9L-Reu-yGjilMHc08_OdBdvoyCYFpRntZ3wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
server { | |
listen 80; | |
server_name VHOSTNAME; | |
root /var/www/$host/public; | |
index index.php; | |
error_log /var/log/nginx/VHOSTNAME.error.log; | |
access_log /var/log/nginx/VHOSTNAME.access.log; | |
charset utf-8; |
# Install tmux on Centos release 6.6 | |
# wget -O - https://gist.githubusercontent.com/edderrd/ffc8b4b166345d399ce6/raw/9952c2381ecf5fa61665be9d6cf03e0b2c534a29/install-tmux | bash | |
# install deps | |
yum install gcc kernel-devel make ncurses-devel | |
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz | |
tar -xf libevent-2.0.22-stable.tar.gz | |
cd libevent-2.0.22-stable |
#!/bin/bash | |
# Usage: slackpost <message> | |
# Enter the name of your slack host here - the thing that appears in your URL: | |
# https://slackhost.slack.com/ | |
webhook=PUT_YOUR_HOST_HERE | |
shift |
#!/bin/bash | |
# vvv execute it directly vvv | |
# wget -O - https://gist.githubusercontent.com/edderrd/7451da41d049460f291d/raw/7360ed286a77ffafed43c4c3b829dbead72d940d/installtmux.sh | bash | |
wget http://downloads.sourceforge.net/tmux/tmux-1.8.tar.gz | |
curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
[ -e tmux-1.8.tar.gz -a -e libevent-2.0.21-stable.tar.gz ] || { | |
echo "ERROR: Archive not found" |
<?php | |
class User extends ConfideUser { | |
/** | |
* Change user password | |
* | |
* @param $params | |
* @return string | |
*/ | |
public function resetPassword( $params ) |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
less: { | |
development: { | |
options: { | |
paths: ["public/assets/less/*.less"] | |
} | |
} | |
}, |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#!/usr/bin/ruby | |
# finished: a quick script to notify you when a command is done using Mountain Lion notifications | |
# It grabs the current folder as the title and takes one argument as the message | |
# Example: make && make install && finished "Done compiling" || finished "compiler failed" | |
# | |
# Needs the terminal-notifier gem : `gem install terminal-notifier` | |
# Can alternately be used with the CLI <https://github.com/alloy/terminal-notifier> | |
# (remove require block below and swap comment lines at the bottom) | |
require 'rubygems' |
load "deploy" | |
set :application, "App Name" # Your app name | |
set :repository, "[email protected]:xxxxx/xxx.git" # Your git repository | |
set :user, "user_ssh" | |
set :document_root, "/home/#{user}/www/awesome_app" | |
set :deploy_via, :remote_cache | |
# SSH Settings |