Skip to content

Instantly share code, notes, and snippets.

View worg's full-sized avatar

Hiram Jerónimo Perez‮ worg

View GitHub Profile
@worg
worg / AlwaysMountRootFSWithNoatime_MacOSX.sh
Created May 16, 2017 23:18 — forked from pklaus/AlwaysMountRootFSWithNoatime_MacOSX.sh
SSD Optimizations of Mac OS X 10.6 Operating System
#!/bin/bash
# +----------------------------------------------------------------------+
# | |
# | Mount the root file system / with the option noatime |
# | |
# | By Philipp Klaus <http://blog.philippklaus.de> |
# | Tip found on <http://blogs.nullvision.com/?p=275> |
# | |
# +----------------------------------------------------------------------+
@worg
worg / keybase.md
Created January 2, 2017 21:27
keybase.md

I hereby claim:

  • I am worg on github.
  • I am worg (https://keybase.io/worg) on keybase.
  • I have a public key ASAngmskGrG51MaPioZIotlh9hadtAZ2iHUX8KPwf3vJFQo

To claim this, I am signing this object:

{
@worg
worg / chan.go
Last active April 20, 2016 00:14
5to Meetup!
// Crear un programa que declare dos funciones anónimas. Una que cuente del 0 al 200 y otra que cuente de 200 a 0.
// Mostrar cada número con un identificador único para cada goroutine.
// Crear goroutines a partir de estas funciones.
// No permitir que main regrese hasta que ambas goroutines hayan terminado de correr.
package main
// Agregar imports.
import (
"fmt"
@worg
worg / install-comodo-ssl-cert-for-nginx.rst
Last active August 27, 2015 16:42 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@worg
worg / gist:a5db8e4ca74fe9413b88
Last active August 29, 2015 14:26 — forked from simonw/gist:92481
Compile nginx standalone without root access
# Compile nginx standalone without root access
mkdir ~/installed
mkdir ~/installed/nginx
mkdir ~/src
cd ~/src
# PCRE dependency - we'll compile against this statically
wget http://kent.dl.sourceforge.net/sourceforge/pcre/pcre-7.8.tar.gz
tar -xzvf pcre-7.8.tar.gz
@worg
worg / flare.json
Last active August 29, 2015 14:26
test
{
"name": "flare",
"children": [
{
"name": "analytics",
"children": [
{
"name": "Vanes",
"children": [
{"name": "Ventas", "size": 3938},
package main
import (
"fmt"
"log"
"net"
"net/mail"
"net/smtp"
"crypto/tls"
)
@worg
worg / post-merge
Last active August 29, 2015 14:09 — forked from sindresorhus/post-merge
#/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
@worg
worg / .htaccess
Created February 11, 2014 06:26
CodeIgniter .htaccess
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
#incluye el / final
RewriteBase /{ruta_de_root}/
RewriteRule ^$ index.php [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^(index\.php|robots\.txt|favicon\.ico)