I hereby claim:
- I am hiteshjoshi on github.
- I am hiteshj (https://keybase.io/hiteshj) on keybase.
- I have a public key ASAExxh2N001dm4F6Dx9YviDSxhQRytF-AQPejWw14Q4Wgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const proxy = function(vnode){ | |
var doc = vnode.dom.contentDocument || vnode.dom.contentWindow.document; | |
if (doc.readyState === "complete") { | |
m.render( vnode.dom.contentDocument.documentElement, vnode.children ) | |
} else{ | |
setTimeout(function(){proxy(vnode);},0); | |
} | |
} |
import re | |
import urllib | |
import httplib | |
import mimetypes | |
import os | |
regex_url = re.compile("^(?:(?P<scheme>http|ftps?):\/\/)?(?:(?:(?P<username>[\w\.\-\+%!$&'\(\)*\+,;=]+):*(?P<password>[\w\.\-\+%!$&'\(\)*\+,;=]+))@)?(?P<host>[a-z0-9-]+(?:\.[a-z0-9-]+)*(?:\.[a-z\.]{2,6})+)(?:\:(?P<port>[0-9]+))?(?P<path>\/(?:[\w_ \/\-\.~%!\$&\'\(\)\*\+,;=:@]+)?)?(?:\?(?P<query>[\w_ \-\.~%!\$&\'\(\)\*\+,;=:@\/]*))?(?:(?P<fragment>#[\w_ \-\.~%!\$&\'\(\)\*\+,;=:@\/]*))?$") | |
def parse_url(url): | |
match = re.match(regex_url, url, re.IGNORECASE) |
defaults | |
mode tcp | |
timeout connect 5000ms | |
timeout client 50000ms | |
timeout server 50000ms | |
frontend http | |
bind :8080 |
user: www-data | |
hosts: | |
"localhost:443": | |
listen: | |
port: 443 | |
ssl: | |
certificate-file: "/etc/nginx/ssl/haip.me.cert" | |
key-file: "/etc/nginx/ssl/haip.me.key" | |
cipher-suite: "HIGH:!aNULL:!MD5" | |
dh-file: "/etc/nginx/ssl/dhparam.pem" |
package main | |
import ( | |
"encoding/xml" | |
"net/http" | |
"net/url" | |
"fmt" | |
"strings" | |
"io/ioutil" | |
"encoding/json" |
server { | |
#server_name _; | |
listen 80 default_server; # ipv4 | |
proxy_read_timeout 3600; | |
root /usr/html; #SERVER PATH HERE | |
index index.html index.htm; | |
charset utf-8; |
Generate the list yourself:
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep -H UI_APPEARANCE_SELECTOR ./* | sed 's/ __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_5_0) UI_APPEARANCE_SELECTOR;//'
#!/bin/bash | |
#Make a new dir where you'll put the binary | |
sudo mkdir /opt/node | |
#Get it | |
wget http://nodejs.org/dist/v0.10.4/node-v0.10.4-linux-arm-pi.tar.gz | |
#unpack | |
tar xvzf node-v0.10.4-linux-arm-pi.tar.gz |
{auth_method, external}. | |
{extauth_program, "/home/hitesh/ejabberd_auth.php"}. | |
{host_config, "chat.nodyssey.com", [{auth_method, [external, anonymous]}]}. | |
{odbc_server, {mysql, "localhost","ejabberd", "root", "root"}}. | |
{shaper, normal, {maxrate, 1000}}. | |
{shaper, fast, {maxrate, 50000}}. | |
{max_fsm_queue, 1000}. | |
{acl, admin, {user, "admin", "chat.nodyssey.com"}}. | |
{acl, local, {user_regexp, ""}}. | |
{access, max_user_sessions, [{3, all}]}. |