Skip to content

Instantly share code, notes, and snippets.

$ brew cask list
Error: uninitialized constant Cask::DSL::ClassMethods::Checksum
Please report this bug:
https://github.com/mxcl/homebrew/wiki/troubleshooting
/usr/local/Cellar/brew-cask/0.16.0/rubylib/cask/dsl.rb:74:in `sha1'
/usr/local/Library/Taps/phinze-cask/Casks/adapter.rb:5
/usr/local/Cellar/brew-cask/0.16.0/rubylib/cask.rb:117:in `require'
/usr/local/Cellar/brew-cask/0.16.0/rubylib/cask.rb:117:in `_load_from_file'
/usr/local/Cellar/brew-cask/0.16.0/rubylib/cask.rb:99:in `_load_from_tap'
/usr/local/Cellar/brew-cask/0.16.0/rubylib/cask.rb:127:in `load'
@joshtch
joshtch / lint-ex.vim
Last active January 3, 2016 15:49
vim-lint missing ex-commands
abs
acos
add
and
argc
argidx
argv
asin
atan
atan2
@joshtch
joshtch / gist:39fafcb383bfa65d60ba
Last active August 29, 2015 14:01
10.9 mdfind error
~❯ brew update
Already up-to-date.
~❯ brew doctor
2014-05-16 23:47:48.777 mdfind[26170:d07] Metadata.framework [Error]: couldn't get the client port
2014-05-16 23:47:49.230 mdfind[26181:d07] Metadata.framework [Error]: couldn't get the client port
2014-05-16 23:47:49.259 mdfind[26184:d07] Metadata.framework [Error]: couldn't get the client port
2014-05-16 23:47:49.270 mdfind[26185:d07] Metadata.framework [Error]: couldn't get the client port
Warning: Putting non-prefixed findutils in your path can cause python builds to fail.
~❯ brew --config
HOMEBREW_VERSION: 0.9.5
@joshtch
joshtch / 1096-0184-_.yaml
Created June 29, 2014 15:47
Noppo Choc Mini Wireless
---
- idVendor: 4246
idProduct: 388
bcdDevice: 257
bConfigurationValue: 1
bInterfaceNumber: 0
hidReportDescriptor: !binary |-
BQEJBqEBBQgZASkDFQAlAXUBlQORApUFkQEFBxngKeeVCIECGQQpJwktCS4J
LwkwCTEJMwk0CTYJNwk4CTUJKAk5CSwJKwlKCUsJTAlNCU6VOIECwA==
- idVendor: 4246
Verifying that "joshhowe.id" is my Blockstack ID. https://onename.com/joshhowe
@joshtch
joshtch / gdrive-dl.py
Created January 4, 2018 02:02
Google Drive file downloader for Python, with progress bar with tqdm. Based on this SO answer https://stackoverflow.com/a/39225039/3175094
#!/usr/bin/env python2
import requests
from tqdm import tqdm
import re
import os
def download_file_from_google_drive(id, destination):
URL = 'https://docs.google.com/uc?export=download'
session = requests.Session()
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`App renders correctly 1`] = `
<View
style={
Object {
"backgroundColor": "#fff",
"flex": 1,
}
}
import * as React from 'react';
import { act, create } from 'react-test-renderer';
import App from '../App';
jest.mock('expo', () => ({
Linking: {
makeUrl: () => '/',
},
SplashScreen: {

Keybase proof

I hereby claim:

  • I am joshtch on github.
  • I am joshhowe (https://keybase.io/joshhowe) on keybase.
  • I have a public key ASCh1g4Dbu5V6TK3ni38RHEiaAtH0TORT8KRGnT-b_0NeAo

To claim this, I am signing this object: