Skip to content

Instantly share code, notes, and snippets.

View cholick's full-sized avatar
:shipit:

Matt Cholick cholick

:shipit:
View GitHub Profile
@cholick
cholick / proxy.go
Created September 23, 2023 20:16
Tiny Go proxy for dev use
package main
import (
"flag"
"fmt"
"log"
"net/http"
"net/http/httputil"
"net/url"
"strings"
@cholick
cholick / twittermute.txt
Created January 3, 2020 23:50 — forked from IanColdwater/twittermute.txt
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
FROM ubuntu:14.04
WORKDIR /tmp
#Update dist
RUN apt-get update
#Add Reqs for all CLI tool installs
RUN apt-get install -yq build-essential \
ruby ruby-dev \
@cholick
cholick / idea.vmoptions
Created January 24, 2016 20:47 — forked from ilguzin/idea.vmoptions
High performance Mac OS X IntelliJ IDEA options: /Applications/IntelliJ IDEA 12 CE.app/bin/idea.vmoptions
-server
-Xms512m
-Xmx2048m
-XX:MaxPermSize=512m
-XX:ReservedCodeCacheSize=256m
-XX:+UseCodeCacheFlushing
-XX:+UseCompressedOops
-XX:+UseConcMarkSweepGC
-XX:+AggressiveOpts
-XX:+CMSClassUnloadingEnabled
@cholick
cholick / fmtgo.sh
Last active February 27, 2017 17:37
Run go fomatter
#! /bin/bash -e
for d in $(ls -d */ | grep -vE "(vendor|Godeps)"); do
gofmt -w "$d"
done
@cholick
cholick / keybase.md
Created March 2, 2015 03:06
keybase.md

Keybase proof

I hereby claim:

  • I am cholick on github.
  • I am cholick (https://keybase.io/cholick) on keybase.
  • I have a public key whose fingerprint is A876 B5BE 5828 CC9E 2D73 5246 D68C 017E 4DF9 A20B

To claim this, I am signing this object:

import java.util.concurrent.ConcurrentLinkedQueue
def results = new XmlSlurper().parse(
'http://www.howstuffworks.com/podcasts/stuff-you-should-know.rss'.toURL().openStream()
)
ConcurrentLinkedQueue<String> queue = new ConcurrentLinkedQueue<String>()
public void download(String address) {
new File("downloads/${address.tokenize('/')[-1]}.mp3").withOutputStream { out ->
@cholick
cholick / build.gradle
Created November 1, 2014 16:09
Verify failure Gradle fix
compileGroovy {
groovyOptions.forkOptions.jvmArgs = ['-noverify']
}
test {
jvmArgs '-noverify'
}
//applicationDefaultJvmArgs = ['-noverify']
@cholick
cholick / .zshrc
Last active August 29, 2015 14:02
alias fjson="pbpaste | python -m json.tool | pbcopy; pbpaste"
alias servedir="python -m SimpleHTTPServer"
function setjdk() { if [ $# -ne 0 ];then export JAVA_HOME=`/usr/libexec/java_home -v $@`; fi; java -version; }
function lsjdk() { ls -1 /System/Library/Java/JavaVirtualMachines/; ls -1 /Library/Java/JavaVirtualMachines/; }
killport() {
if [ -z $1 ]; then
echo 'Port is required. Usage: "killport 8000"';
return
fi
local pid=`lsof -i :$1 | grep LISTEN | awk '{print $2}'`
@cholick
cholick / init.sh
Last active August 29, 2015 13:56
Pre-commit hook to check for Spock @ignore annotation
# Script to initially setup hook globally
# For existing repositories, re-run "git init"
git config --global init.templatedir '~/.git_template'
mkdir -p ~/.git_template/hooks
tee > ~/.git_template/hooks/pre-commit << 'EOF'
git stash -q --keep-index
red=$(tput setaf 1)