Skip to content

Instantly share code, notes, and snippets.

View cpjolicoeur's full-sized avatar

Craig P Jolicoeur cpjolicoeur

View GitHub Profile
@cpjolicoeur
cpjolicoeur / ADB Error.log
Created July 29, 2015 13:52
Location manager on dead thread error
07-29 09:52:08.043 18671-325/com.accuweather.watchface W/MessageQueue﹕ Handler (android.location.LocationManager$ListenerTransport$1) {4268d760} sending message to a Handler on a dead thread
java.lang.RuntimeException: Handler (android.location.LocationManager$ListenerTransport$1) {4268d760} sending message to a Handler on a dead thread
at android.os.MessageQueue.enqueueMessage(MessageQueue.java:320)
at android.os.Handler.enqueueMessage(Handler.java:626)
at android.os.Handler.sendMessageAtTime(Handler.java:595)
at android.os.Handler.sendMessageDelayed(Handler.java:566)
at android.os.Handler.sendMessage(Handler.java:503)
at android.location.LocationManager$ListenerTransport.onLocationChanged(LocationManager.java:242)
at android.location.ILocationListener$Stub.onTransact(ILocationListener.java:58)
at android.os.Binder.execTransact(Binder.java:404)
@cpjolicoeur
cpjolicoeur / haproxy.cfg
Last active August 29, 2015 14:17 — forked from wkf/haproxy.cfg
# -*- mode: haproxy -*-
# vi: set ft=haproxy :
defaults
log global
mode http
option forwardfor
option dontlognull
option redispatch
option http-server-close
@cpjolicoeur
cpjolicoeur / de-projoify.js
Created November 24, 2014 18:50
Remove paywall overlay from projo.com
document.getElementById("ppUI").remove();document.getElementById("pressplusOverlay").remove();

Keybase proof

I hereby claim:

  • I am cpjolicoeur on github.
  • I am cpjolicoeur (https://keybase.io/cpjolicoeur) on keybase.
  • I have a public key whose fingerprint is CDE1 57A7 449D 6B20 775D 365C 85ED 987E 5AB3 6698

To claim this, I am signing this object:

vimdiff cheat sheet

##git mergetool

In the middle file (future merged file), you can navigate between conflicts with ]c and [c.

Choose which version you want to keep with :diffget //2 or :diffget //3 (the //2 and //3 are unique identifiers for the target/master copy and the merge/branch copy file names).

:diffupdate (to remove leftover spacing issues)

:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)

@cpjolicoeur
cpjolicoeur / .tigrc
Last active August 31, 2017 07:16 — forked from aesnyder/.tigrc
bind generic f !@git fetch
bind generic p !@git pull
bind generic P !@git push
bind generic { !?git push -f
bind generic r !git rebase -i master
bind generic U !@sh -c "git checkout master && git pull && git checkout - && git rebase master"
bind generic M !@git checkout master
bind generic ! !@git reset HEAD^
bind generic @ !@?git reset --hard HEAD^
bind generic a !git commit --amend
@cpjolicoeur
cpjolicoeur / GoInstant default ACL
Created January 16, 2014 00:28
default ACL for GoInstant
{
"$room": {
"#join": {
"users": [
"*"
]
},
"#visible": {
"users": [
"*"
Undefined symbols for architecture i386:
"std::string::find(char, unsigned long) const", referenced from:
zxing::oned::Code39Reader::decodeRow(int, zxing::Ref<zxing::BitArray>) in libScannerKit.a(Code39Reader.o)
"std::string::substr(unsigned long, unsigned long) const", referenced from:
zxing::oned::ConfigurableMultiFormatUPCEANReader::decodeRow(int, zxing::Ref<zxing::BitArray>) in libScannerKit.a(ConfigurableMultiFormatUPCEANReader.o)
zxing::oned::MultiFormatUPCEANReader::decodeRow(int, zxing::Ref<zxing::BitArray>) in libScannerKit.a(MultiFormatUPCEANReader.o)
zxing::oned::UPCAReader::maybeReturnResult(zxing::Ref<zxing::Result>) in libScannerKit.a(UPCAReader.o)
zxing::oned::UPCEReader::convertUPCEtoUPCA(std::string) in libScannerKit.a(UPCEReader.o)
"std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const", referenced from:
zxing::BitMatrix::description() in libScannerKit.a(BitMatrix.o)
Updating git://github.com/mojotech/dill.git
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Outdated gems included in the bundle:
* actionmailer (4.0.0 > 3.2.14)
* actionpack (4.0.0 > 3.2.14)
* activeadmin (0.6.1 > 0.6.0)
* activemodel (4.0.0 > 3.2.14)