This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To start, follow the Python Quickstart to get a credentials.json file: | |
# https://developers.google.com/calendar/quickstart/python | |
# Then edit the START_DATE_TIME and EVENT_SUMMARY_TO_DELETE constants and run the script. | |
#!/usr/bin/env python | |
from __future__ import print_function | |
import datetime | |
import pickle | |
import os.path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// DirectoryWatcher.swift | |
// | |
// Created by Sandy Chapman on 4/24/18. | |
// | |
import UIKit | |
@objc public class DirectoryWatcher : NSObject { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tracks the uptime of the iOS device. | |
- (time_t)uptime | |
{ | |
struct timeval boottime; | |
int mib[2] = {CTL_KERN, KERN_BOOTTIME}; | |
size_t size = sizeof(boottime); | |
time_t now; | |
time_t uptime = -1; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import subprocess | |
import os | |
try: | |
pngs = subprocess.check_output("git status -s | grep '^A[^M].*.png'", shell=True) | |
except subprocess.CalledProcessError as e: | |
if e.returncode != 1: | |
print("Invalid exit code: " + e) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/attrib/gatt-service.c b/attrib/gatt-service.c | |
index a8ab582..f2445d5 100644 | |
--- a/attrib/gatt-service.c | |
+++ b/attrib/gatt-service.c | |
@@ -306,6 +306,8 @@ gboolean gatt_service_add(struct btd_adapter *adapter, uint16_t uuid, | |
va_list args; | |
GSList *chrs, *l; | |
+ DBG("Adding GATT Service"); | |
+ |