Skip to content

Instantly share code, notes, and snippets.

View edderrd's full-sized avatar

Edder Rojas edderrd

View GitHub Profile
@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 / 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 )
#!/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 / 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
@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
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;

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: