Skip to content

Instantly share code, notes, and snippets.


Luis Sierra Rolos

View GitHub Profile
bsara /
Last active Nov 20, 2020
Setup SSH Authentication for Git Bash on Windows

Setup SSH Authentication for Git Bash on Windows


  1. Create a folder at the root of your user home folder (Example: C:/Users/uname/) called .ssh.
  2. Create the following files if they do not already exist (paths begin from the root of your user home folder):
    • .ssh/config
thisismitch / le-renew-webroot
Last active Oct 1, 2020
Let's Encrypt Auto-Renewal using the Webroot Plugin (Nginx)
View le-renew-webroot
if [ ! -f $config_file ]; then
echo "[ERROR] config file does not exist: $config_file"
calebwoods / nginx.conf
Created May 10, 2014
Sample Nginx config for deployment of Angular.js app
View nginx.conf
server { listen 80;
access_log /var/log/;
error_log /var/log/;
root /var/www/apps/;
charset utf-8;
location / {
rewrite ^ https://$host$request_uri? permanent;
portfola / author.php
Last active Jun 11, 2020
Custom User Taxonomies in WordPress
View author.php
* The template for displaying Profile pages.
* Used for Artist and Cultural Org "mini" pages.
* @package ArtsWestchester
* @since ArtsWestchester 1.0
julionc /
Last active Nov 10, 2020
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
JeffreyWay / laravel.js
Last active Oct 28, 2020
Want to send a DELETE request when outside of a form? This will handle the form-creation bits for you dynamically, similar to the Rails implementation. (Requires jQuery, but doesn't have to.) To use, import script, and create a link with the `data-method="DELETE"` attribute.
View laravel.js
<a href="posts/2" data-method="delete"> <---- We want to send an HTTP DELETE request
- Or, request confirmation in the process -
<a href="posts/2" data-method="delete" data-confirm="Are you sure?">
(function() {
tsabat /
Last active Nov 17, 2020
Getting oh-my-zsh to work in Ubuntu


apt-get install zsh
apt-get install git-core

Getting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh

wget -O - | zsh
You can’t perform that action at this time.