If you’re using finder on the Mac and you can’t see files with a ‘.’ in front of them (.ssh etc) then use the following from a terminal: –
defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder
If you’re using finder on the Mac and you can’t see files with a ‘.’ in front of them (.ssh etc) then use the following from a terminal: –
defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder
So, I’ve been working on an iOS project in Unity and wanted to build on a PC and just use a Mac for the signing step. This allows me to throw processing power at the build (the PC) and just use a low-end Mac Mini to handle the less labour intensive signing.
Technically, a Mac isn’t needed in the pipeline (PC’s can handle the sign) but I’m still a bit sceptical about signing final release builds on a PC, and would prefer to keep things safe by signing on the hardware and tools that Apple recommends.
Quick tutorial on setting up an OSX slave that can be used from the PC…
As mentioned above in point 3.2.2, the credentials for connecting to the Mac have to be set up. After clicking the “Add” button do the following: –
And that’s it. When you launch the node it should connect to the Mac and you’ve got a Mac slave. I’ll add another post on how to setup the signing soon.
Example of constructor and destructor in PHP. Pretty simple syntax. Two preceding underscores.
<?php class MyDestructableClass { function __construct() { print "In constructor\n"; $this->name = "MyDestructableClass"; } function __destruct() { print "Destroying " . $this->name . "\n"; } } $obj = new MyDestructableClass(); ?>
Back to getting up to speed on PHP. This is a quick snippet of code that’ll probably come in handy: –
<?php spl_autoload_register(function ($class_name) { include $class_name . '.php'; }); $obj = new MyClass1(); $obj2 = new MyClass2(); ?>
This will auto-load a php file with the class name requested when the class is used. Assuming the naming standard is followed correctly this will be a handy little shortcut
We want to be able to login to a mac using ssh but don’t want to type a password every time. This is done by allowing Remote Login for a given user on the Mac and adding a public key to the Mac for the PC you’re logging in from.
That should do it. The next ssh jenkins@JENKINS_SLAVE will login without asking for a password
Also, worth noting that Sierra or above will need to be a 2048 bit rsa or they won’t work. See here for more info