Skip to content

Instantly share code, notes, and snippets.

@wolfemm
wolfemm / tink.pro
Created March 1, 2020 02:33
Rule to keep ProGuard/R8 from breaking Tink's Reflection
-keepclassmembers class com.google.crypto.tink.** {
# Prevents removal/renaming of members with names ending in an underscore regardless of type.
*** *_;
}
@wolfemm
wolfemm / ChromeTabsUtils.java
Created August 21, 2016 22:13
Utils for Android's CustomTabs Support Library
/*
* Copyright 2015 Diego Rossi (@_HellPie)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@wolfemm
wolfemm / wale_postgres_recovery.md
Created December 6, 2015 23:53 — forked from elithrar/wale_postgres_recovery.md
WAL-E + Postgres 9.x (single server + DB) Setup and Recovery

A quick "how to" on what you need to do to both setup AND recover a single-server PostgreSQL database using WAL-E

  • WAL-E: https://github.com/wal-e/wal-e
  • Assuming Ubuntu 12.04 LTS ("Precise")
  • We'll be using S3. Make sure you have an IAM in a group with GetObject, ListBucket and PutObject on the bucket you want to use (and that it's not public).

Setup:

  1. These packages:
@wolfemm
wolfemm / sidekiq
Last active August 29, 2015 14:26 — forked from dyerc/sidekiq
Sidekiq init script
#!/bin/bash
# sidekiq Init script for Sidekiq
# chkconfig: 345 100 75
#
# Description: Starts and Stops Sidekiq message processor for Stratus application.
#
# User-specified exit parameters used in this script:
#
# Exit Code 5 - Incorrect User ID
# Exit Code 6 - Directory not found