Skip to content

Instantly share code, notes, and snippets.

@rsteckler
rsteckler / GoogleFitService.java
Last active August 29, 2015 14:15
Fit running in a service
private void notifyUiFailedConnection(ConnectionResult result) {
Intent intent = new Intent(FIT_NOTIFY_INTENT);
intent.putExtra(FIT_EXTRA_NOTIFY_FAILED_STATUS_CODE, result.getErrorCode());
intent.putExtra(FIT_EXTRA_NOTIFY_FAILED_INTENT, result.getResolution());
LocalBroadcastManager.getInstance(this).sendBroadcast(intent);
}
@rsteckler
rsteckler / gist:f4f24231d11f3e02a226
Created April 21, 2015 17:57
Delete data from Google Fit account
//Requires OAuth2 permissions to read/write fitness data.
private void deleteAllCalories() {
//Set the delete timespan to be the last year
Calendar cal = Calendar.getInstance();
Date now = new Date();
cal.setTime(now);
long endTime = cal.getTimeInMillis();
cal.add(Calendar.YEAR, -1);
long startTime = cal.getTimeInMillis();
{
"private": true,
"engines": {
"node": ">=5.0 <6",
"npm": ">=3.3 <4"
},
"dependencies": {
"babel-polyfill": "^6.3.14",
"babel-runtime": "^6.3.19",
"bluebird": "3.1.4",
Verifying that "cryptyk.id" is my Blockstack ID. https://onename.com/cryptyk

Keybase proof

I hereby claim:

  • I am rsteckler on github.
  • I am rsteckler (https://keybase.io/rsteckler) on keybase.
  • I have a public key ASBPGYtMZ73wCti0nFV7UsCC3JpmOdQ-swQ181cYASZ9XQo

To claim this, I am signing this object:

javascript:(function(){
var key = document.cookie.match('(^|;)\\s*ADRUM\\s*=\\s*([^;]+)');
if (!key) {
alert('Unable to find redirect cookie');
return;
}
var value=key.pop();
var rIndex=value.indexOf('r=');
var loc=decodeURIComponent(value.substr(rIndex+2));
var d=document.createElement('div');
freenas:/ # zpool status
pool: freenas-boot
state: ONLINE
scan: scrub repaired 0 in 0 days 00:00:50 with 0 errors on Mon Feb 4 03:45:51 2019
config:
NAME STATE READ WRITE CKSUM
freenas-boot ONLINE 0 0 0
da0p2 ONLINE 0 0 0
{
"creditorName": "WELLS FARGO",
"creditorNameF": "Wells Fargo",
"dateOpenedObj": {
"value": "2004-04-04T08:00:00.000Z",
"formattedDates": {
"defaultValue": "Apr 4, 2004",
"shortDisplayValue": "Apr 2004",
"timeZone": "GMT-08:00"
}
This file has been truncated, but you can view the full file.
Using /home/ubuntu/homestack/kubespray/ansible.cfg as config file
/home/ubuntu/homestack/kubespray/inventory/mycluster/hosts.yml did not meet host_list requirements, check plugin documentation if this is unexpected
/home/ubuntu/homestack/kubespray/inventory/mycluster/hosts.yml did not meet script requirements, check plugin documentation if this is unexpected
PLAY [localhost] ****************************************************************************************************************************************************************************************************************
TASK [Check ansible version >=2.7.6] ********************************************************************************************************************************************************************************************
Sunday 14 April 2019 17:40:06 +0000 (0:00:00.047) 0:00:00.047 **********
ok: [localhost] => {
"changed": false,
ubuntu@node1:~$ kubectl describe certificate home-secure-tls-secret
Name: home-secure-tls-secret
Namespace: default
Labels: <none>
Annotations: <none>
API Version: certmanager.k8s.io/v1alpha1
Kind: Certificate
Metadata:
Creation Timestamp: 2019-05-04T15:27:06Z
Generation: 4