This file contains hidden or 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
On Mac OSX, the native SSH client can use the built-in keychain directly. To add your private key to the keychain simply use the command: | |
ssh-add -K /path/of/private/key | |
As an example if your private key is stored at ~/.ssh and is named id_rsa, you would use the command: | |
ssh-add -K ~/.ssh/id_rsa | |
You will then be prompted for your passcode, which will be stored in your keychain. After this you should be ready for a password-less login. |
This file contains hidden or 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
#pragma mark - NetworkHelper.h | |
- (void)getHotspotNameWithCompletion:(void (^)(void))completionBlock andFail:(void (^)(void))failBlock; | |
#pragma mark - NetworkHelper.m | |
- (void)getHotspotNameWithCompletion:(void (^)(void))completionBlock andFail:(void (^)(void))failBlock | |
{ | |
dispatch_async(queue, ^{ |
This file contains hidden or 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
public class SplashActivity extends Activity { | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.splash); | |
LinearLayout layoutMain = (LinearLayout) findViewById(R.id.layoutMain); | |
NewerOlder