Suppose you're opening an issue and there's a lot noisey logs that may be useful.
Rather than wrecking readability, wrap it in a <details> tag!
<details>
Summary Goes Here| <?php | |
| ob_start(); | |
| header("HTTP/1.1 204 NO CONTENT"); | |
| header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP 1.1. | |
| header("Pragma: no-cache"); // HTTP 1.0. | |
| header("Expires: 0"); // Proxies. |
| #!/usr/bin/env node | |
| console.log('yay gist') |
| # Could be used for instance like this in Phoenix: <%= select f, :time_zone, SimpleTimeZoneList.mapping %> | |
| defmodule SimpleTimeZoneList do | |
| @mapping %{ | |
| "International Date Line West" => "Pacific/Midway", | |
| "Midway Island" => "Pacific/Midway", | |
| "American Samoa" => "Pacific/Pago_Pago", | |
| "Hawaii" => "Pacific/Honolulu", | |
| "Alaska" => "America/Juneau", | |
| "Pacific Time (US & Canada)" => "America/Los_Angeles", | |
| "Tijuana" => "America/Tijuana", |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Chat</title> | |
| <link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300' rel='stylesheet' type='text/css'> | |
| <link href="style.css" rel="stylesheet" type="text/css"> | |
| <script src="https://d2g2wobxbkulb1.cloudfront.net/0.0.19/tmi.js"></script> <!--For developement--> | |
| <!--<script src="https://d2g2wobxbkulb1.cloudfront.net/0.0.19/tmi.min.js"></script>--> <!--For "production"--> | |
| </head> |
#CURL Connections with Tor
Install Apache, PHP, CURL & Tor with apt-get
sudo apt-get install -y apache2 php5 php5-curl torTor creates a proxy on your mashine with port 9050 for SOCKS5 connections.
| <?php | |
| /** | |
| * http://stackoverflow.com/questions/11305797/remove-zero-width-space-characters-from-a-javascript-string | |
| * U+200B zero width space | |
| * U+200C zero width non-joiner Unicode code point | |
| * U+200D zero width joiner Unicode code point | |
| * U+FEFF zero width no-break space Unicode code point | |
| */ | |
| #!/bin/bash | |
| # https://cloud.google.com/compute/docs/faq#find_ip_range | |
| # nslookup -q=TXT _cloud-netblocks.googleusercontent.com 8.8.8.8 | |
| myarray=() | |
| for LINE in `dig txt _cloud-netblocks.googleusercontent.com +short | tr " " "\n" | grep include | cut -f 2 -d :` | |
| do | |
| myarray+=($LINE) | |
| for LINE2 in `dig txt $LINE +short | tr " " "\n" | grep include | cut -f 2 -d :` |
| [ | |
| { | |
| "ISO2": "AD", | |
| "ISO3": "AND", | |
| "DIGITS": "20", | |
| "ISO-3166-2": "ISO 3166-2:AD", | |
| "English": " Andorra", | |
| "China": "安道尔", | |
| "Taiwan": "安道爾", | |
| "Hongkong": "安道爾", |
| # | |
| # Verify captcha | |
| $post_data = http_build_query( | |
| array( | |
| 'secret' => CAPTCHA_SECRET, | |
| 'response' => $_POST['g-recaptcha-response'], | |
| 'remoteip' => $_SERVER['REMOTE_ADDR'] | |
| ) | |
| ); | |
| $opts = array('http' => |