Bare essentials Android SDK installation, forked from: https://gist.github.com/patrickhammond/4ddbe49a67e5eb1b9c03 and modified to own needs
Prerequisites:
Make sure the doctor is happy (do what it tells you):
// | |
// TimeFormatter.h | |
// ElectroDeluxe | |
// | |
// Convert milliseconds to a formatted output string containing hours:minutes:seconds | |
// with padding zero. | |
// | |
// Copyright © 2015 srmds. All rights reserved. | |
// |
// | |
// TimeFormatter.swift | |
// ElectroDeluxe-Swift2.0 | |
// | |
// Convert milliseconds to a formatted output string containing hours:minutes:seconds | |
// with padding zero. | |
// | |
// Created by c0d3r on 21/08/15. | |
// Copyright © 2015 srmds. All rights reserved. | |
// |
// | |
// DateFormatter.swift | |
// CoreDataCRUD | |
// | |
// Created by c0d3r on 01/10/15. | |
// Copyright © 2015 io pandacode. All rights reserved. | |
// | |
import Foundation |
func getAllEvents(sortedByDate:Bool = false, sortAscending:Bool = true) -> Array<Event> { | |
print("getAllEvents") | |
var fetchedResults:Array<Event> = Array<Event>() | |
let minionManagedObjectContextWorker:NSManagedObjectContext = NSManagedObjectContext.init(concurrencyType: NSManagedObjectContextConcurrencyType.PrivateQueueConcurrencyType) | |
minionManagedObjectContextWorker.parentContext = self.mainContextInstance | |
let fetchRequest = NSFetchRequest() | |
let entity = NSEntityDescription.entityForName("Event", inManagedObjectContext: minionManagedObjectContextWorker) |
// | |
// TimeFormatter.swift | |
// | |
// Convert milliseconds to a formatted output string containing hours:minutes:seconds | |
// with padding zero. | |
// | |
// Created by srmds on 28/11/16. | |
// Copyright © 2015 srmds. All rights reserved. | |
// | |
import Foundation |
Bare essentials Android SDK installation, forked from: https://gist.github.com/patrickhammond/4ddbe49a67e5eb1b9c03 and modified to own needs
Prerequisites:
Make sure the doctor is happy (do what it tells you):
You can check here for getting the latest version. Change the wget url to download newer versions.
for date in $(tmutil listlocalsnapshots / | perl -pe 's/com.*(2018.*)/\1/'); do echo "deleting $date"; sudo tmutil deletelocalsnapshots "$date"; done |
''' | |
Simple LocustIO testing script to call an API endpoint | |
********************************** Installation instructions ************************************** | |
Prerequisites | |
- python 2.7 / 3 | |
- pip, see: https://pip.pypa.io/en/stable/installing/ | |
- locust, see: https://locust.io |
# replace_soh_separator.py | |
from pathlib import Path | |
import logging | |
logger = logging.getLogger(__name__) | |
if __name__ == "__main__": | |
""" |