All:
Go/fasthttp (10 thr): 930.0 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
Nginx (10 thr): 826.1 ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
#!/usr/bin/env python | |
import gevent.monkey | |
gevent.monkey.patch_all() | |
import sys | |
import optparse | |
import gevent | |
from boto.s3.connection import S3Connection |
import oursql | |
import sys | |
from twisted.enterprise import adbapi | |
from twisted.internet import defer, reactor | |
from twisted.python import log | |
log.startLogging(sys.stderr) | |
# Use 'test' database with default credentials |
# wkhtmltopdf from: http://wkhtmltopdf.org/downloads.html | |
FROM centos:7 | |
MAINTAINER Eric Siegel <nticompass@gmail.com> | |
# Upgrade packages & repo | |
RUN yum -y update | |
# wkhtmltopdf's dependencies | |
RUN yum -y install zlib fontconfig freetype libX11 libXext libXrender | |
# Download x64 static build of wkhtmltox (with patched QT) |
package main | |
import ( | |
"fmt" | |
"log" | |
"math" | |
"net/http" | |
"os" | |
"os/exec" | |
"time" |
package main | |
import ( | |
"flag" | |
"image" | |
"image/color" | |
"image/draw" | |
"image/png" | |
"math" | |
"os" |
#!/bin/sh | |
# Save this file as ".git/hooks/pre-commit" in your | |
# git repository and set it to executable. | |
# | |
# To use the "go vet" command: | |
# $ go get -v code.google.com/p/go.tools/cmd/vet | |
# To use the "golint" command: | |
# $ go get -v github.com/golang/lint/golint |
#!/usr/bin/env php | |
<?php | |
// Script to postpone your own email. Parses IMAP folders and moves emails to a folder named "Today" | |
// Run this from a crontab, for example at 6 AM | |
// BSD License | |
// (C) Carlos Fenollosa, 2011-2016 | |
// Read more about this script: http://cfenollosa.com/blog/a-simple-script-to-postpone-your-own-email.html | |
// Please leave comments and feedback for bugs and ideas! |
#!/bin/sh | |
# OPTIONAL FLAGS: | |
# | |
# -geoip true | |
# this will install maxmind geoip and auto update crontab file | |
# | |
# -cloudwatch true | |
# this will install aws cloud watch metrics and send them to aws dashboard | |
# |
//before running make sure you setup a GOPATH env variable and ran: "go get code.google.com/p/go.net/html" | |
//to run: go run ioCrawler.go -url="http://developers.google.com/" | |
//also try http://developer.android.com/index.html | |
//output goo.gl links to try and redeem will be sent to foundLinks.txt | |
//by the way there's an artificial "rate limit" in func crawler, you can lower that or raise it as you wish | |
//You can also comment out the onlyGoogleRegex code if you don't want to limit to google.com/youtube | |
//if you're getting I/O timeout errors, then you might need to increase the timeouts on line 231 |