Skip to content

Instantly share code, notes, and snippets.

View vovkasm's full-sized avatar

Vladimir Timofeev vovkasm

  • Self employed
  • Budva, Montenegro
View GitHub Profile
@henriquemenezes
henriquemenezes / android-generate-keystores.md
Last active November 6, 2024 04:47
Android: Generate Release/Debug Keystores

Android: Generate Release/Debug Keystores

Generate Keystores

Debug Keystore

$ keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "C=US, O=Android, CN=Android Debug"
@msealand
msealand / AsyncBlockOperation.h
Last active November 9, 2020 02:52
Asynchronous version of NSBlockOperation
#import <Foundation/Foundation.h>
typedef void(^AsyncBlock)(dispatch_block_t completionHandler);
@interface AsyncBlockOperation : NSOperation
@property (nonatomic, readonly, copy) AsyncBlock block;
+ (instancetype)asyncBlockOperationWithBlock:(AsyncBlock)block;
@andrewheiss
andrewheiss / bt-fix
Last active March 14, 2016 15:17
Reset Bluetooth driver on OS X Mavericks
#!/usr/bin/env sh
# Fixes problem described at http://apple.stackexchange.com/questions/118783/bluetooth-peripherals-randomly-disconnecting-under-mavericks
kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport