$ cd ~/.ssh
$ ssh-keygen -t rsa -C "EMAIL"
Filename: EMAIL
Passphrase: choose appropriate passphrase
$ ssh-add EMAIL
$ ssh-agent bash
$ ssh-add ~/.ssh/id_rsa
Full List: | |
Apple Music: | |
<key>NSAppleMusicUsageDescription</key> | |
<string>My description about why I need this capability</string> | |
Bluetooth: | |
<key>NSBluetoothPeripheralUsageDescription</key> |
include('config.php'); | |
ob_start('ob_gzhandler'); | |
$query = "SELECT ..."; | |
$params = array(); | |
$options =array("Scrollable" => SQLSRV_CURSOR_KEYSET); | |
$consulta = sqlsrv_query($conn, $query, $params, $options); | |
$numero_de_linhas = sqlsrv_num_rows($consulta); | |
$obj = new stdClass(); |
ALTER TABLE tablename AUTO_INCREMENT = 1 |
func postDeviceId() { | |
let userDefaults = UserDefaults.standard | |
let deviceToken = userDefaults.string(forKey: Constants.deviceTokenKey)! | |
//print("Device ID: \(deviceToken)") | |
let user = Globals.sharedInstance.loggedUser | |
let name: String = (user?.name)! | |
let url = URL(string: "https://barranoar.peopleon.a2hosted.com/device.php")! | |
var request = URLRequest(url: url) | |
request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type") |
let url = URL(string: "http://www.thisismylink.com/postName.php")! | |
var request = URLRequest(url: url) | |
request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type") | |
request.httpMethod = "POST" | |
let postString = "id=13&name=Jack" | |
request.httpBody = postString.data(using: .utf8) | |
let task = URLSession.shared.dataTask(with: request) { data, response, error in | |
guard let data = data, error == nil else { // check for fundamental networking error | |
print("error=\(error)") | |
return |
open Podfile -a Xcode |
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<TextView | |
android:id="@+id/notifications.badge" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" |