Skip to content

Instantly share code, notes, and snippets.

@max-mapper
max-mapper / readme.md
Last active March 1, 2021 01:04
federal data servers

ftp servers referenced from data.gov metadata (count is many urls on each server are in the data.gov metadata):

901441 "rockyftp.cr.usgs.gov"
    259 "ghrc.nsstc.nasa.gov"
    185 "acdisc.gsfc.nasa.gov"
    158 "ftp2.census.gov"
    119 "podaac-ftp.jpl.nasa.gov"
     73 "gpm.nsstc.nasa.gov"
     71 "airbornescience.nsstc.nasa.gov"
@grosscol
grosscol / watir_pull.rb
Last active January 28, 2017 20:02
Browsing by selenium
require 'watir'
require 'fileutils'
require 'pry'
# Given url and destination directory
def scrape_tables(browser, url, dest_dir)
# create subdirectory
FileUtils.mkdir_p dest_dir
browser.goto url
@RickyCook
RickyCook / Command.md
Last active November 7, 2023 06:55
Using socat to forward new ports via STDIO in a running Docker container

What?... Why?

Imagine you're messing around in a container, and you install some stuff, add some config, and now it's time to load up your client and check it out! Oh wait, you forgot to forward ports when you created the container! Fear not, all is not lost, for in the world of pipes, and streams, there is always a way to do something disgusting.

The Dockerfile

Example Dockerfile included will install Nginx, and socat in a container, and make Nginx run in foreground mode. To build, and run:

@jitendravyas
jitendravyas / gist:8d35b092dd9102a05ea3
Last active May 2, 2019 14:59
Brew Cask installation with Laptop script
#!/bin/sh
# homebrew taps
brew tap caskroom/cask
brew tap caskroom/versions
brew tap homebrew/boneyard
brew tap caskroom/fonts
# Updated grep
@shahariaazam
shahariaazam / GitHub-bulk-issue-import.php
Created December 3, 2013 01:12
Bulk Issue create or Import from a Json files
<?php
// This file is generated by Composer
require_once 'vendor/autoload.php';
$client = new \Github\Client();
$client->authenticate('githubusername', 'githubpassword', Github\Client::AUTH_HTTP_PASSWORD);
/*$repositories = $issue = $client->api('issue')->all('shahariaazam', 'cakephp-quick-start');
//var_dump($repositories); die();*/