Skip to content

Instantly share code, notes, and snippets.

View krunk4ever's full-sized avatar

Toland Hon krunk4ever

  • Airbnb
  • San Francisco, CA
View GitHub Profile
@krunk4ever
krunk4ever / GooglePay.kt
Last active May 21, 2020 17:28
PaymentDataRequest support for Google Pay API v2 on Android
import android.os.Bundle
import com.google.android.gms.wallet.PaymentData
import com.google.android.gms.wallet.PaymentDataRequest
import com.google.android.gms.wallet.PaymentMethodTokenizationParameters
import com.google.android.gms.wallet.WalletConstants
import org.json.JSONArray
import org.json.JSONObject
/**
* Google Pay API request configurations.
$ /usr/bin/nscurl --ats-diagnostics https://api.cloud.opentable.com/umami_venue/api/v4/Restaurant/108712/reservation --verbose
Starting ATS Diagnostics
Configuring ATS Info.plist keys and displaying the result of HTTPS loads to https://api.cloud.opentable.com/umami_venue/api/v4/Restaurant/108712/reservation.
A test will "PASS" if URLSession:task:didCompleteWithError: returns a nil error.
================================================================================
Default ATS Secure Connection
---
ATS Default Connection
@krunk4ever
krunk4ever / fantastical-reminder-issue-with-google-calendar.txt
Last active December 16, 2015 10:08
Fantastical Reminder Issue with Google Calendar
Test #1: I attempt to create a event with no alarm
Here is how I create a new event using Fantastical:
http://www.krunk4ever.org/fantastical/01.png
Note that I didn't add any alarms here.
Here's how it looks on Google:
http://www.krunk4ever.org/fantastical/02.png
Note that it has a default alarm of 30 mins before the event.
@krunk4ever
krunk4ever / gist:1426208
Created December 3, 2011 05:45
error installing sane-backends
==> Downloading ftp://ftp2.sane-project.org/pub/sane/sane-backends-1.0.22/sane-backends-1.0.22.tar.gz
File already downloaded in /Users/thon/Library/Caches/Homebrew
/usr/bin/tar xf /Users/thon/Library/Caches/Homebrew/sane-backends-1.0.22.tar.gz
==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/sane-backends/1.0.22 --without-gphoto2 --enable-local-backends --enable-libusb --disable-latex
./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/sane-backends/1.0.22 --without-gphoto2 --enable-local-backends --enable-libusb --disable-latex
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
@krunk4ever
krunk4ever / xbox-live-error.txt
Created September 6, 2011 17:47
Xbox Live Error
Uh oh... that shouldn't have happened.
It appears you've found a glitch in the system.
date: 9/6/2011 5:46:00 PM
code: EEEEEEEE80150101
s: nxK0zXGOUtkUVLQbBEJP0g==
id: 0cdd02ec-84e4-45e3-b87e-be337a11fb8e
req: 38c725f7-6274-4bcc-8dd3-6658d7181ae4
@krunk4ever
krunk4ever / gist:1007458
Created June 4, 2011 01:48
post-receive failed - commits not showing up on website
Counting objects: 51, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (34/34), done.
Writing objects: 100% (38/38), 21.63 KiB, done.
Total 38 (delta 21), reused 0 (delta 0)
remote: Push worked, but post-receive failed: Connection reset by peer
remote: /data/github/current/vendor/gems/ruby/1.8/gems/redis-2.2.0/lib/redis/client.rb:234:in `ensure_connected'
remote: /data/github/current/vendor/gems/ruby/1.8/gems/redis-2.2.0/lib/redis/client.rb:114:in `process'
remote: /data/github/current/vendor/gems/ruby/1.8/gems/redis-2.2.0/lib/redis/client.rb:183:in `logging'
remote: /data/github/current/vendor/gems/ruby/1.8/gems/redis-2.2.0/lib/redis/client.rb:113:in `process'