Skip to content

Instantly share code, notes, and snippets.

View ncuesta's full-sized avatar
🤓

Nahuel Cuesta Luengo ncuesta

🤓
View GitHub Profile
@ericelliott
ericelliott / essential-javascript-links.md
Last active April 22, 2024 10:15
Essential JavaScript Links
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@fernandoaleman
fernandoaleman / mysql2-mojave.md
Last active February 7, 2024 19:19
Install mysql2 on MacOS Mojave

For MacOS Catalina, visit Install mysql2 on MacOS Catalina

Problem

Installing mysql2 gem errors on MacOS Mojave.

Solution

Make sure openssl is installed on Mac via Homebrew.

@jrochkind
jrochkind / gist:2161449
Created March 22, 2012 18:40
A Capistrano Rails Guide

A Capistrano Rails Guide

by Jonathan Rochkind, http://bibwild.wordpress.com

why cap?

Capistrano automates pushing out a new version of your application to a deployment location.

I've been writing and deploying Rails apps for a while, but I avoided using Capistrano until recently. I've got a pretty simple one-host deployment, and even though everyone said Capistrano was great, every time I tried to get started I just got snowed under not being able to figure out exactly what I wanted to do, and figured I wasn't having that much trouble doing it "manually".

@paigeruten
paigeruten / phi.php
Created August 30, 2009 08:34
look up php function synopses from the command line
#!/usr/bin/php
<?php
// v v
// \\O//
$RED = 31;
$GREEN = 32;
$BLUE = 34;
$MAGENTA = 35;
$CYAN = 36;
@jedschneider
jedschneider / gh-pages-tips.md
Created June 7, 2012 17:59
github pages tips for jekyll wiki

Working With Github Pages

The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.

Gitignore

Add _site to .gitignore. The generated site should not be uploaded to Github since its gets generated by github.

Working With Code Partials

@deepakkumarnd
deepakkumarnd / server_setup.sh
Last active April 3, 2020 15:14
Server setup script
# This script has to be run as a root user
echo "* Updating system"
apt-get update
apt-get -y upgrade
echo "* Installing packages"
apt-get -y install build-essential libmagickcore-dev imagemagick libmagickwand-dev libxml2-dev libxslt1-dev git-core nginx redis-server curl nodejs htop
id -u deploy &> /dev/null
if [ $? -ne 0 ]
@ncuesta
ncuesta / ncuesta.zsh-theme
Last active July 16, 2018 12:34
Personal theme for zsh prompts
# vim:ft=zsh ts=2 sw=2 sts=2
# Original theme taken from https://github.com/jackharrisonsherlock/common - all credit goes to @jackharrisonsherlock
# Just copied this to further customize it.
# Prompt symbol
COMMON_PROMPT_SYMBOL="❯"
# Left Prompt
PROMPT='$(common_host)$(common_current_dir)$(common_rb_version)$(common_return_status)'
@ncuesta
ncuesta / curl.rb
Last active December 18, 2017 20:21
#!/usr/bin/env ruby
# Implementación sencilla de un clon de cURL para utilizar en el examen.
# El script debe invocarse como un ejecutable (deberás darle permisos
# de ejecución con `chmod +x curl.rb`) y espera recibir los siguientes
# argumentos:
# - La URL a la cual realizar la petición
# - El método http a utilizar (opcional), que puede ser GET, POST o
# DELETE (si se omite se considera GET).
# - El cuerpo de la petición a realizar (opcional, sólo aplica en caso
@ncuesta
ncuesta / rails-master
Last active December 10, 2015 10:39
Short script to keep an updated local copy of Ruby on Rails master branch and run commands using that version rather than a global stable version of the framework.
#!/bin/bash
# Keep an updated local copy of Ruby on Rails
# and use it to run commands, rather than the
# version you might have installed as a gem
# on your system
#
# @author ncuesta
# Customize this with your own fork