#Installing ngrok on OSX
- Download ngrok
- Unzip it to your Applications directory
- Create a symlink (instructions below)
Run the following two commands in Terminal to create the symlink.
# cd into your local bin directory
<?php | |
// This can be found in the Symfony\Component\HttpFoundation\Response class | |
const HTTP_CONTINUE = 100; | |
const HTTP_SWITCHING_PROTOCOLS = 101; | |
const HTTP_PROCESSING = 102; // RFC2518 | |
const HTTP_OK = 200; | |
const HTTP_CREATED = 201; | |
const HTTP_ACCEPTED = 202; |
{ | |
"deviceModels": [ | |
{ | |
"id": 106232, | |
"modelName": "D2212", | |
"deviceManufacturerId": 100019, | |
"marketingName": null | |
}, | |
{ | |
"id": 109514, |
#Installing ngrok on OSX
Run the following two commands in Terminal to create the symlink.
# cd into your local bin directory
/** | |
* Created by Usman on 17/11/14. | |
* video ad with ability to split into two portions horizontally | |
*/ | |
Function.prototype.bind = Function.prototype.bind || function(b) { | |
// Polyfill from https://gist.github.com/dsingleton/1312328 | |
if (typeof this !== "function") { | |
throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable"); | |
} |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
const getFlagEmoji = countryCode => { | |
return String.fromCodePoint(...[...countryCode.toUpperCase()].map(x=>0x1f1a5+x.charCodeAt())); | |
} | |
console.log(getFlagEmoji('US')) // "πΊπΈ" | |
console.log(getFlagEmoji('BD')) // "π§π©" |
Node Version Manager (https://github.com/nvm-sh/nvm) works perfectly across native node installations as well as emulated Rosetta installations. The trick I am using here is to install one LTS version of node under Rosetta and another stable version as native binary.
//audio pipeline | |
[ | |
{ | |
"src": "aud_1", | |
"pipeline": "recording", | |
"isEnable": true, | |
"bitRate": 16, | |
"codec": "OPUS" | |
}, | |
{ |
/** | |
* Retrieves all the rows in the active spreadsheet that contain data and logs the | |
* values for each row. | |
* For more information on using the Spreadsheet API, see | |
* https://developers.google.com/apps-script/service_spreadsheet | |
*/ | |
function readRows() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); |
[ | |
{ | |
"key": "common.loading", | |
"value": "Loading..." | |
}, | |
{ | |
"key": "common.button.agree", | |
"value": "Yes" | |
}, | |
{ |