Skip to content

Instantly share code, notes, and snippets.

View jpalala's full-sized avatar
🎯
Focusing

Jose Palala jpalala

🎯
Focusing
View GitHub Profile
@jpalala
jpalala / github_notes01.md
Last active August 29, 2015 14:20
Github command-line based resyncing/basing notes (syncing from parent repo to your fork)

Just wanted to share how I do my command-line based "syncing" of forks (making sure project repo updates from the "upstream" repository is pulled into your own i.e. your fork).

This helps to prevent you from having merge conflicts.

Read about creating an upstream branch first: https://help.github.com/articles/configuring-a-remote-for-a-fork/

Then do this: https://help.github.com/articles/syncing-a-fork/

It's for when you're having a hard time going through the github website to update your fork.

@jpalala
jpalala / .gitconfig
Last active August 29, 2015 14:20 — forked from AndreiRailean/.gitconfig
git aliases in my gitconfig
[alias]
co = checkout
cob = checkout -b
st = status
s = status
ci = commit
c = commit
br = branch
a = add
d = diff
@jpalala
jpalala / simple_jekyll_deployer.py
Created June 1, 2015 12:33
Python script to run jekyll build and copy _site to your public folder
#!/usr/bin/env python
# place this file into your jekyll root directory, to run: python simple_jekyll_deployer.py
import os, sys
from time import sleep
def can_access( directory ):
try:
os.listdir(directory)
except OSError:
return False
@jpalala
jpalala / hook.sh
Created June 4, 2015 10:51
a copy of hook.sh from leanside.com src code
# https://github.com/kjell/leanside.com/blob/2195fd286419c898874edf079497035cbeeefaa6/_hook/hook.sh
echo "starting hook: " $port " -- " $dest " -- " $branch
[[ -e _pipe ]] && rm _pipe
mkfifo _pipe
while true; do
{
# block until netcat recieves a request and sends it to `_pipe`
read input < _pipe
@jpalala
jpalala / nodejs-testing-tools-install.sh
Last active July 8, 2016 18:31 — forked from shanestillwell/install.sh
install nodejs mocha test tools with nvm (node-version-manager)
#!/bin/bash
NPM=~/.nvm/versions/node/v0.12.0/bin/npm
$NPM install -g mocha
$NPM install -g chai
$NPM install -g xunit-file
$NPM install -g jshint
$NPM install -g nock
$NPM install -g supertest
@jpalala
jpalala / qcd.plugin.zsh
Created July 27, 2015 02:26
my first oh-my-zsh plugin to go to homedir/
qcd() {
if (( $# == 0 ))
then echo "Usage cdv <dir> = cd /Users/webdev23/<dir>"
else
cd /Users/webdev23/$1
fi
}
@jpalala
jpalala / command-to-delete-zombies-on-drupal.SQL
Created July 28, 2015 10:02
drupal delete all zombie users
DELETE FROM users WHERE `status` = 0 AND `uid` != 0;
@jpalala
jpalala / trouble-shooting-installing-php-with-homebrew.md
Last active August 29, 2015 14:26
troubleshoot-install-brew-php
@jpalala
jpalala / redis_xampp.sh
Last active April 18, 2021 07:39 — forked from oleksandrilchuk/redis_xampp.sh
Install redis server and redis php extension for xampp(php 5.3).
sudo bash
wget http://redis.googlecode.com/files/redis-2.6.0.tar.gz
tar xzf redis-2.6.0.tar.gz
cd redis-2.6.0
make
sudo make install clean
# autostart in /etc/rc.local before "exit 0" add:
# /usr/local/bin/redis-server /etc/redis/redis.conf
@jpalala
jpalala / readme.md
Last active September 1, 2015 07:58 — forked from ashrithr/readme.md
Installing ELK on a single machine

Installing ELK (CentOS)

This is a short step-by-step guide on installing ElasticSearch LogStash and Kibana Stack on a CentOS environment to gather and analyze logs.

I. Install JDK

rpm -ivh https://dl.dropboxusercontent.com/u/5756075/jdk-7u45-linux-x64.rpm