Skip to content

Instantly share code, notes, and snippets.

View vaurdan's full-sized avatar

Henrique Mouta vaurdan

View GitHub Profile
import cfscrape
import json
import sys
import argparse
import requests
import logging
import time
import random
from pgoapi import PGoApi
@vaurdan
vaurdan / generate.py
Created August 2, 2016 15:25
Generates supervisord config files
import itertools
import argparse
import os
import glob
import sys
parser = argparse.ArgumentParser()
parser.add_argument("-uf", "--users-file", help="File with users and passwords", default="users.txt")
parser.add_argument("-cf", "--coords-file", help="Coordinate files. Allows wildcards", default="*coords.txt")
parser.add_argument("-st", "--steps", help="Steps per worker", default=5)
@vaurdan
vaurdan / designer.html
Last active August 29, 2015 14:20
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@vaurdan
vaurdan / shortcode-ip.php
Last active August 29, 2015 14:16
Get the IP address of a given hostname. Use it on a WordPress blog with a easy to use shortcode.
<?php
/*
Plugin Name: Shortcode for IP
Description: Get's an IP from an hostname
Author: Henrique Mouta
Version: 1.0
Author URI: http://henrique.mouta.org/
*/
add_shortcode( 'get_ip', function( $atts ) {