Skip to content

Instantly share code, notes, and snippets.

View ricdex's full-sized avatar
🎯
Focusing

Ricardo Avila ricdex

🎯
Focusing
  • BCP
  • Peru
View GitHub Profile
@ricdex
ricdex / playbook-install-jdk8.yml
Created January 13, 2016 16:42 — forked from andershedstrom/playbook-install-jdk8.yml
Ansible playbook for installing Oracle Java 8 on CentOS
---
- hosts: app
remote_user: vagrant
sudo: yes
vars:
download_url: http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.tar.gz
download_folder: /opt
java_name: "{{download_folder}}/jdk1.8.0_05"
java_archive: "{{download_folder}}/jdk-8u5-linux-x64.tar.gz"
@ricdex
ricdex / gist:8c7cda76292c184394cf
Last active September 19, 2015 14:59
encontrar clases por anotaciones
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Execute {
String target() default "";
}
PUT /api/device_tokens/FE66489F304DC75B8D6E8200DFF8A456E8DAEACEC428B427E9518741C92C6660 HTTP/1.1
Authorization: Basic <application authorization string>
Content-Type: application/json
{
"alias": "your_user_id",
"tags": [
"tag1",
"tag2"
],
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<context-root>/</context-root>
</jboss-web>
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_module modules/mod_proxy.so
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;