Skip to content

Instantly share code, notes, and snippets.

View overdrive3000's full-sized avatar
🇻🇪
de venezuela pa' españa

Juan Manuel Mesa overdrive3000

🇻🇪
de venezuela pa' españa
View GitHub Profile

Keybase proof

I hereby claim:

  • I am overdrive3000 on github.
  • I am overdrive (https://keybase.io/overdrive) on keybase.
  • I have a public key whose fingerprint is 7536 0289 D40A 8FBD 40A6 06EA E715 4EAA 8F7F 854F

To claim this, I am signing this object:

@overdrive3000
overdrive3000 / gist:c7e8f1be6cfe2aad3f73
Created August 4, 2014 03:58
Snippet to create a Digital Ocean DNS Record
#!/usr/bin/env python
import os
from dopy.manager import DoManager
client_id = os.environ['DO_CLIENT_ID']
api_key = os.environ['DO_API_KEY']
domains = DoManager(client_id, api_key)
upstream myapp {
server 127.0.0.1:8081;
}
limit_req_zone $binary_remote_addr zone=login:10m rate=1r/s;
server {
listen 443 ssl spdy;
server_name _;
@overdrive3000
overdrive3000 / gist:5dfd4e72791a7a772fad
Created December 19, 2014 20:40
Hello world in assembly!
# ----------------------------------------------------------------------------------------
# helloworld.s. Hello world in assembly!
# ----------------------------------------------------------------------------------------
.global _start
.text
_start:
# write(1, message, 13)
mov $1, %rax # system call ID. 1 is write
#!/usr/bin/python
import os
import time
import boto
import boto.manage.cmdshell
def launch_instance(ami='ami-a73264ce',
instance_type='t1.micro',
@overdrive3000
overdrive3000 / gist:2b66dc3bf030505aa7fa
Last active August 29, 2015 14:26
To install ruby p451 with rbenv in Ubuntu 14.04
Run the following command to install ruby p451 in Ubuntu 14.04 with libreadline version 6.3.4
curl -fsSL https://gist.github.com/LeonB/10503374/raw | rbenv install --patch 2.0.0-p451
@overdrive3000
overdrive3000 / rubyp451.patch
Created August 6, 2015 15:17
Ruby p451 patch
diff --git ext/readline/extconf.rb ext/readline/extconf.rb
index 4920137..8e81253 100644
--- ext/readline/extconf.rb
+++ ext/readline/extconf.rb
@@ -19,6 +19,10 @@ def readline.have_func(func)
return super(func, headers)
end
+def readline.have_type(type)
+ return super(type, headers)
@overdrive3000
overdrive3000 / ansible_tags.yml
Last active August 30, 2015 07:44
Validate an EC2 instance by tag with Ansible
---
- hosts: localhost
tasks:
- name: Gather facts
action: ec2_facts
register: ami_id
- name: Print AMI ID
debug: msg={{ ami_id['ansible_facts']['ansible_ec2_instance_id'] }}
@overdrive3000
overdrive3000 / route53.yml
Created September 30, 2015 13:08
Modify Route53 record using Ansible in a private hosted zone
---
- name: Debug
hosts: localhost
tasks:
- debug: var=ansible_eth0["ipv4"]["address"]
- name: Get DNS record information
hosts: localhost
tasks:
- route53: command=get zone=foo.com record=subdomain.foo.com type=A private_zone=true
Verifying that +overdrive is my blockchain ID. https://onename.com/overdrive