Skip to content

Instantly share code, notes, and snippets.

View rrggrr's full-sized avatar

HiredInsight rrggrr

  • HiredInsight
  • Chicago, Illinois
View GitHub Profile
BEGIN MESSAGE.
1VucifvsJ08byck AY8EhND6nyeMI1t T6IVt4WIM1JoQEi ihB6CY0X0OlgA8X
PoL7zlKAfKuHmKb rZ7j9OKpi3oTCKq 6Xr2MZHgg6oYXQe Ospeq9aXsBZBmYa
qrstLpUk1Qu8e6b eSovS77YtkKHqII mOYiFXlLtUx2ytm HK6WqHYD5trkODj
rk2GZRunviwHqRY Njnufh41cPOgSdj LqHT821.
END MESSAGE.
@rrggrr
rrggrr / OSX Setup
Last active November 9, 2019 17:28
#!/bin/sh
# ** RUN ME USING: ./myscript.sh | tee -a "$log_file" ** FOR LOG FILE
brew install git bash-completion
brew install python

Keybase proof

I hereby claim:

  • I am rrggrr on github.
  • I am rustinross (https://keybase.io/rustinross) on keybase.
  • I have a public key whose fingerprint is 4796 D7F6 B80F 1857 1085 48F8 792E F3A7 1206 A43C

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am rrggrr on github.
  • I am rustinross (https://keybase.io/rustinross) on keybase.
  • I have a public key whose fingerprint is C629 DE20 A0DF 42CB 6B36 C659 42D8 0D22 A913 66B6

To claim this, I am signing this object:

def cleanText(text):
exclude = [")","(",'.','-',':','"',"'",",","&","$",u'"',u"'",";",u"&","`","’"]
#dd = {ord(c):None for c in badchars}
#tx = text.translate(dd)
#tx = text.translate(string.punctuation)
#print(text)
text = ''.join(ch for ch in text if ch not in exclude)
text = str(text)
return text
%%bash ssh -C -N xxx@xxx.xxx.com -L 3306:127.0.0.1:3306
@rrggrr
rrggrr / pdrudge
Last active January 11, 2016 20:38
Parse Drudge Report Headline
# FOR USE WITH TEXTBAR ( www.richsomerfield.com ) OR BIT BAR (https://github.com/matryer/bitbar)
# /usr/local/bin/python /./Users/<u>/drudge.py
import requests
from bs4 import BeautifulSoup
from lxml import etree
headline = "..."
try:
@rrggrr
rrggrr / Pub Clips
Created January 3, 2016 18:03
Search stackoverflow with Alfred
alfredapp://customsearch/Search%20Google%20UK%20for/guk/ascii/url=https://www.google.com/search?q=pandas&q={query}+site:stackoverflow.com
#!/usr/bin/env ruby
require 'hpricot'
require 'open-uri'
require 'httparty'
require 'json'
$color_bold = "\e[1;37m"
$color_green = "\e[32m"
$color_red = "\e[31m"