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
#!/bin/bash | |
# Creates a self-signed certificate for a given domain name | |
set -e | |
if [ $# -ne 1 ]; then | |
echo "Usage: generate_cert.sh <domain-name>" | |
echo | |
echo "Generates a self-signed certificate for a given domain name." | |
echo |
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
- (void)deleteAllRecordings { | |
int count = 0; | |
NSFileManager *fileManager = NSFileManager.defaultManager; | |
NSURL *appSupport = | |
[fileManager URLsForDirectory:NSApplicationSupportDirectory inDomains:NSUserDomainMask][0]; | |
NSURL *megacoolAppSupport = [appSupport URLByAppendingPathComponent:@"Megacool" isDirectory:YES]; | |
NSError *error; | |
NSArray<NSURL *> *recordingDirectories = [fileManager | |
contentsOfDirectoryAtURL:megacoolAppSupport | |
includingPropertiesForKeys:nil |
OlderNewer