create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| // | |
| // URLRequest+Multipart.swift | |
| // | |
| // Created by Artur Mkrtchyan on 1/16/19. | |
| // Copyright © 2019 arturdev. All rights reserved. | |
| // | |
| import Foundation | |
| import MobileCoreServices |
| (* | |
| Export All Safari Tabs in All Open Windows to a Markdown File | |
| July 13, 2015 | |
| // SCRIPT PAGE | |
| http://hegde.me/urlsafari | |
| // ORIGINAL SCRIPT ON WHICH THIS SCRIPT IS BUILT | |
| http://veritrope.com/code/export-all-safari-tabs-to-a-text-file |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
As configured in my dotfiles.
start new:
tmux
start new with session name:
| /* | |
| This tips is extremely useful when you test your CoreData app in Unit Test. | |
| */ | |
| // iOS app is an executable bundle, means the `main` method is | |
| // included inside app bundle, so `mainBundle` returns the app bundle | |
| // | |
| // See doc at https://developer.apple.com/library/ios/#documentation/Cocoa/Reference/Foundation/Classes/NSBundle_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40003624 | |
| NSBundle *appBundle = [NSBundle mainBundle]; |
| #if TARGET_OS_IPHONE | |
| #import <MobileCoreServices/MobileCoreServices.h> | |
| #else | |
| #import <CoreServices/CoreServices.h> | |
| #endif | |
| /* | |
| MIME type to UTI | |
| */ | |
| NSURLResponse *response = ... // assume a URL response from somewhere else. |
| #import <Foundation/Foundation.h> | |
| @interface NSObject (AMAssociatedObjects) | |
| - (void)associateValue:(id)value withKey:(void *)key; // Retains value. | |
| - (id)associatedValueForKey:(void *)key; | |
| @end |