You can check here for getting the latest version. Change the wget url to download newer versions.
This file contains 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
# replace_soh_separator.py | |
from pathlib import Path | |
import logging | |
logger = logging.getLogger(__name__) | |
if __name__ == "__main__": | |
""" |
This file contains 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
''' | |
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 |
This file contains 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
for date in $(tmutil listlocalsnapshots / | perl -pe 's/com.*(2018.*)/\1/'); do echo "deleting $date"; sudo tmutil deletelocalsnapshots "$date"; done |
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):
This file contains 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
// | |
// 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 |
This file contains 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
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) |
This file contains 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
// | |
// DateFormatter.swift | |
// CoreDataCRUD | |
// | |
// Created by c0d3r on 01/10/15. | |
// Copyright © 2015 io pandacode. All rights reserved. | |
// | |
import Foundation |
This file contains 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
// | |
// 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. | |
// |
This file contains 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
// | |
// TimeFormatter.h | |
// ElectroDeluxe | |
// | |
// Convert milliseconds to a formatted output string containing hours:minutes:seconds | |
// with padding zero. | |
// | |
// Copyright © 2015 srmds. All rights reserved. | |
// |