Skip to content

Instantly share code, notes, and snippets.

View edderrd's full-sized avatar

Edder Rojas edderrd

View GitHub Profile

Keybase proof

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:

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;
@edderrd
edderrd / install-tmux
Last active April 16, 2018 23:29 — forked from rothgar/install-tmux
# 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
@edderrd
edderrd / slackpost
Last active February 20, 2018 14:08 — forked from dopiaza/slackpost
#!/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"
@edderrd
edderrd / User.php
Last active August 29, 2015 13:59
Zizaco/Confide Reset password workarround
<?php
class User extends ConfideUser {
/**
* Change user password
*
* @param $params
* @return string
*/
public function resetPassword( $params )
@edderrd
edderrd / Gruntfile.js
Created March 30, 2014 15:37
Sample laravel grunt file
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
less: {
development: {
options: {
paths: ["public/assets/less/*.less"]
}
}
},
@edderrd
edderrd / 0_reuse_code.js
Created November 28, 2013 17:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@edderrd
edderrd / finished.rb
Last active December 27, 2015 14:59 — forked from ttscoff/finished.rb
#!/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'
@edderrd
edderrd / Capfile
Last active December 23, 2015 13:09 — forked from purwandi/deploy.rb
Capistrano Deployment for laravel 4
load "deploy"
set :application, "App Name" # Your app name
set :repository, "git@github.com: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