Skip to content

Instantly share code, notes, and snippets.

View tomchuk's full-sized avatar

Thomas Achtemichuk tomchuk

View GitHub Profile
Process: Roon [3908]
Path: /Applications/Roon.app/Roon
Identifier: com.roon.Roon
Version: 1.0
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Roon [3908]
User ID: 501
Date/Time: 2018-08-26 11:17:09.122 -0400
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tomchuk
tomchuk / # ruby - 2018-06-05_10-03-25.txt
Created June 5, 2018 14:03
ruby on macOS 10.14 - Homebrew build logs
Homebrew build logs for ruby on macOS 10.14
Build date: 2018-06-05 10:03:25
@tomchuk
tomchuk / # vim - 2018-06-05_01-44-51.txt
Created June 5, 2018 13:23
vim on macOS 10.14 - Homebrew build logs
Homebrew build logs for vim on macOS 10.14
Build date: 2018-06-05 01:44:51
@tomchuk
tomchuk / elasticsearch.yml
Last active January 14, 2016 19:44
Querying nested document multi_fields in elasticsearch
index:
analysis:
analyzer:
ngram_index:
tokenizer: standard
filter: ["standard", "lowercase", "ngram_filter"]
ngram_search:
tokenizer: standard
filter: ["standard", "lowercase"]
filter:
@tomchuk
tomchuk / google_login.py
Created December 23, 2015 00:16
Google OAuth2 Authentication with Flask & requests-oauthlib
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
A simple flask app to authenticate with Google's OAuth 2.0 API
Requirements:
Flask>=0.10.0
requests-oauthlib>=0.5.0
To install, run: "pip install Flask>=0.10.0 requests-oauthlib>=0.5.0"
@tomchuk
tomchuk / post-checkout
Created February 25, 2015 19:56
Post Checkout Hook
#!/usr/bin/env bash
# Delete .pyc files and empty directories from root of project
cd ./$(git rev-parse --show-cdup)
# Clean-up
find . -name ".DS_Store" -delete
NUM_PYC_FILES=$( find . -name "*.pyc" | wc -l | tr -d ' ' )
if [ $NUM_PYC_FILES -gt 0 ]; then

Keybase proof

I hereby claim:

  • I am tomchuk on github.
  • I am tomchuk (https://keybase.io/tomchuk) on keybase.
  • I have a public key whose fingerprint is 848A 7E1D 6385 566A 3769 978A B821 5A7E A889 6BD9

To claim this, I am signing this object:

@tomchuk
tomchuk / trackjs.py
Last active February 25, 2017 00:37
TrackJS Incoming Webhook for Slack
#!/usr/bin/env python
import argparse
import calendar
import datetime
import hashlib
import json
import logging
import requests
import sqlite3
@tomchuk
tomchuk / gist:898471
Created April 1, 2011 16:54
Reddit Mold Bookmarklet
javascript:(function(){r=function(s){t=['Α','Β','С','ⅅ','Ε','Ϝ','Ԍ','ℍ','Ι','ℐ','Κ','ℒ','Μ','ℕ','Ο','ℙ','ℚ','ℝ','Տ','Τ','Ц','Ѵ','Ѿ','Χ','Υ','Ζ'];for(i=97;i<123;i++){s=s.replace(new RegExp(String.fromCharCode(i), 'gi'),t[i-97]);}return s;};ta=document.getElementsByTagName('textarea');for(j=0;j<ta.length;j++){try{ta[j].value=r(ta[j].value);}catch(e){}}})();