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
Homebrew build logs for python on macOS 10.12.6 | |
Build date: 2018-06-29 19:50:51 |
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
i: 165 | |
r0: 165 | |
r1: (null) | |
r2: 165 | |
r3: (null) | |
r4: 175 |
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
// | |
// Created by Thomas Tempelmann on 28.04.19. | |
// See also: https://stackoverflow.com/q/55884928/43615 | |
// | |
// This code relies on string functions only available on macOS, sorry. | |
// | |
#include <Foundation/Foundation.h> | |
#include <string.h> | |
#include <stdlib.h> |
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
// A solution to the question "How can I make the cancel button react to both the Return the the Esc keys?" | |
// | |
// See https://stackoverflow.com/a/60570407/43615 | |
#import "AppDelegate.h" | |
@interface AlertEscHandler : NSView | |
@end | |
@implementation AlertEscHandler |
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
// Written 2019 by Thomas Tempelmann, [email protected] | |
// Tested on macOS, but may work on iOS as well. | |
NSMutableSet *reportedMissingLocs = nil; | |
#define MyAppSupportFolderName "your.bundle.id" // or your app's name | |
static NSBundle *mainBundle = nil; | |
static NSArray<NSString*> *availableLangs; // list of langs the app knows (possibly sorted alphabetically) | |
static NSDictionary<NSString*,NSBundle*> *bundlePerLang = nil; |
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
// See https://twitter.com/tempelorg/status/1305559310760644612?s=20 | |
// Turns out this is correct behavior. | |
// No more need for testing. | |
#include <stdio.h> | |
#include <sys/mount.h> | |
int main(int argc, const char * argv[]) { | |
struct statfs fsinfo; | |
statfs("/", &fsinfo); |
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
// | |
// Sample code for determining all invididual mounted volumes, including volume groups. | |
// Tested on macOS 10.13.6, 10.15.6 and 10.16 (11.0) b6 | |
// | |
// See https://stackoverflow.com/questions/63876549/ | |
// | |
// Created by Thomas Tempelmann on 14 Sep 20 to 17 Sep 20 (yes, this took me several days to get right). | |
// | |
#import <IOKit/IOKitLib.h> |
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
#import <Foundation/Foundation.h> | |
int main(int argc, const char * argv[]) { | |
NSArray<NSURL*> *vols = [NSFileManager.defaultManager mountedVolumeURLsIncludingResourceValuesForKeys:nil options:0]; | |
for (NSURL *url1 in vols) { | |
NSURL *url2 = [NSURL fileURLWithPath:url1.path]; | |
if (! [url1 isEqual:url2]) { | |
NSLog(@"url mismatch: %@ - %@", url1, url2); | |
if (! [url1.path isEqualToString:url2.path]) { | |
NSLog(@"path mismatch: %@ - %@", url1.path, url2.path); |
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
# VER: 0.28 | |
client | |
dev tun0 | |
proto udp | |
remote nat.openvpn.ipredator.se 1194 | |
remote nat.openvpn.ipredator.me 1194 | |
remote nat.openvpn.ipredator.es 1194 | |
#remote 46.246.46.100 1194 | |
#remote 46.246.46.101 1194 | |
#remote 46.246.46.102 1194 |
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 | |
# | |
# This script demonstrates an issue with SMB (and probably AFP as well) | |
# sharing, when accessing files by macOS that are hosted on a Linux share. | |
# | |
# Run this script on a Linux system to create two file in the current dir. | |
# Make sure it runs in bash, not sh, or the codes won't work. | |
# | |
# Make the generated files acessible via SMB, then try to access both files | |
# from macOS. The one called "decomposed_ü" won't be accessible - that's the bug. |
OlderNewer