Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:

Matt Cholick cholick

:shipit:
View GitHub Profile
@cholick
cholick / twittermute.txt
Created Jan 3, 2020 — forked from IanColdwater/twittermute.txt
Here are some terms to mute on Twitter to clean your timeline up a bit.
View twittermute.txt
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
View c0-worker-gcp
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 Jan 24, 2016 — forked from ilguzin/idea.vmoptions
High performance Mac OS X IntelliJ IDEA options: /Applications/IntelliJ IDEA 12 CE.app/bin/idea.vmoptions
View 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 Feb 27, 2017
Run go fomatter
View fmtgo.sh
#! /bin/bash -e
for d in $(ls -d */ | grep -vE "(vendor|Godeps)"); do
gofmt -w "$d"
done
View 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:

View download.groovy
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 Nov 1, 2014
Verify failure Gradle fix
View build.gradle
compileGroovy {
groovyOptions.forkOptions.jvmArgs = ['-noverify']
}
test {
jvmArgs '-noverify'
}
//applicationDefaultJvmArgs = ['-noverify']
View .zshrc
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 Aug 29, 2015
Pre-commit hook to check for Spock @ignore annotation
View init.sh
# 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)
@cholick
cholick / build.gradle
Last active Oct 24, 2018
Using Gradle & jarjar to repackage and embed incompatible transitive dependencies
View build.gradle
apply plugin: 'groovy'
repositories {
mavenCentral()
}
configurations {
patch
[compile, testCompile]*.exclude module: 'jersey-server'
}