Skip to content

Instantly share code, notes, and snippets.

Eddy Reyes ereyes01

Block or report user

Report or block ereyes01

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@ereyes01
ereyes01 / es6.go
Last active Dec 26, 2017
Testing ES6 and Otto
View es6.go
package main
import (
"flag"
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
"strings"
View keybase.md

Keybase proof

I hereby claim:

  • I am ereyes01 on github.
  • I am ereyes01 (https://keybase.io/ereyes01) on keybase.
  • I have a public key ASDdoGe-N-TUyHMeOQJrecWZGLkdx0lLecOcUeyFaFj4NQo

To claim this, I am signing this object:

@ereyes01
ereyes01 / firebase_benchmark.py
Last active Feb 24, 2016
A script that helps you benchmark your firebase performance
View firebase_benchmark.py
#!/usr/bin/env python
import json
import sys
import subprocess
count = int(sys.argv[1])
url = sys.argv[2]
curl = "curl -so /dev/null -w '" + '{"http_code": %{http_code}, "time_total": %{time_total}, "time_namelookup": %{time_namelookup}, "time_connect": %{time_connect}, "time_appconnect": %{time_appconnect}, "time_pretransfer": %{time_pretransfer}, "time_redirect": %{time_redirect}, "time_starttransfer": %{time_starttransfer}, "size_download": %{size_download}, "size_upload": %{size_upload}, "size_header": %{size_header}, "size_request": %{size_request}, "speed_download": %{speed_download}, "speed_upload": %{speed_upload} }' + "' "
@ereyes01
ereyes01 / demo-bot.go
Created Oct 30, 2015
Custom Slack Bot in Go
View demo-bot.go
package main
import (
"log"
"os"
"os/signal"
"strconv"
"github.com/FogCreek/victor"
"github.com/FogCreek/victor/pkg/chat/slackRealtime"
@ereyes01
ereyes01 / tasqr-example
Last active Aug 29, 2015
Tasqr CLI usage
View tasqr-example
$ cd /opt/myproject
$ tasqr git clone http://github.com/me/mywebsite.git
Saving "git clone..."
$ tasqr cp services/emailer.conf /etc/init/
Saving "sudo services/..."
$ tasqr initctl start emailer
Saving "initctl start..."
@ereyes01
ereyes01 / make_server.py
Last active Aug 29, 2015
Containable - More Detailed Python Mockup
View make_server.py
"""
A simple script that deploys the website deployment module to an EC2 server.
"""
import containable
import my_website
website_blueprint = my_website.MyWebsite(nginx_config_path="/work/my-nginx.conf",
git_url="http://github.com/me/website.git")
@ereyes01
ereyes01 / containable-curl.example
Last active Aug 29, 2015
Containable REST API Sample Usage
View containable-curl.example
$ cat box-start.json
{
"name" : "my-server",
"state" : "running"
}
$ curl -v -H "Content-Type: application/json" -X PUT \
--data "@box-start.json" -H "X-Containable-API-Key" \
https://containable-server.com/boxes/my-server
$ cat add-admin.json
{
@ereyes01
ereyes01 / containable-python.py
Last active Aug 29, 2015
Containable Python Binding
View containable-python.py
box.start()
box.add_user(username="admin", home_dir="/home/admin",
shell="/bin/bash")
box.install_packages(['python-dev',
'python-pip',
'redis-server',
'openssh-server',
'libffi-dev'])
You can’t perform that action at this time.