This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteEngine On | |
| RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK|OPTIONS|GET|CONNECT|POST|HEAD) | |
| RewriteRule .* - [F] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| host=<URL_HOST> | |
| port=<PORT> | |
| cmd="GET http://<URL_DESTINY> HTTP/1.1 Host: www.<URL_HOST>" | |
| ( echo open ${host} ${port} | |
| sleep 1 | |
| echo -e "\r" | |
| sleep 1 | |
| echo ${cmd} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/ruby | |
| full_filename = ARGV[0] | |
| text_to_search = ARGV[1] | |
| fileObj = File.new(full_filename, "r") | |
| while (line = fileObj.gets) | |
| if line.include? text_to_search | |
| puts(line) | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package cc.routing.gmaps.service | |
| import com.google.maps.DirectionsApi; | |
| import com.google.maps.DirectionsApiRequest; | |
| import com.google.maps.GeoApiContext; | |
| import com.google.maps.model.DirectionsRoute; | |
| import com.google.maps.model.LatLng; | |
| import com.google.maps.model.TravelMode; | |
| public class GMapsDirectionsService { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Web; | |
| namespace ConsoleAPI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz" -O jdk-7u80-linux.tar.gz | |
| tar zxvf jdk-7u80-linux.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Create database diarioclasse | |
| CREATE DATABASE diarioclasse | |
| WITH OWNER = postgres | |
| ENCODING = 'UTF8' | |
| TABLESPACE = pg_default | |
| CONNECTION LIMIT = -1; | |
| -- Connect to database diarioclasse | |
| -- Create sequence pessoa_codigo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'sinatra' | |
| set :port => 80 | |
| get '/' do | |
| "Welcome" | |
| end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'rest-client' | |
| require 'xmlsimple' | |
| class Resource | |
| TOKEN = "PUT_YOUR_TOKEN_HERE" | |
| BASE_URL = "http://api.umov.me/CenterWeb/api/#{TOKEN}" | |
| def resource_name |