brew install nmap
nmap --script ssl-enum-ciphers -p 443 example.server.com
Starting Nmap 7.40 ( https://nmap.org ) at 2017-05-18 15:34 CEST
Nmap scan report for example.server.com (1.2.3.4)
Host is up (0.036s latency).
# Prints out the iOS version number | |
printIosVersion() { | |
sed -n 'N;s/.*CFBundleShortVersionString.*>\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/p' ios/Compass/Info.plist | |
} | |
# Sets the iOS version number | |
# | |
# {$1} The new version number to set | |
###### Documentation ###### | |
# sed -i '' ' # -i '' will modify the file and save it |
/** | |
* Set the system time for our tests. | |
* This ensures that our tests can't fail based on the local time of the CI machine. | |
* This guards against app code where the behavior changes based on the device time. | |
* For example, a test might fail if we attempt to set the search time "before now". | |
*/ | |
beforeAll(() => { | |
// @TODO: 'modern' is default once we upgrade to Jest 27 https://jestjs.io/blog/2020/05/05/jest-26#new-fake-timers | |
jest.useFakeTimers("modern"); | |
const JS_DATE_11_AM = new Date(new Date().setHours(11, 0, 0, 0)); |
git status | egrep -v '.js|.png' |
componentDidUpdate(prevProps) { | |
console.log("Render update diff:"); | |
const now = Object.entries(this.props); | |
const added = now.filter(([key, val]) => { | |
if (prevProps[key] === undefined && val !== undefined) return true; | |
if (prevProps[key] !== val) { | |
console.log(`${key} | |
+ ${JSON.stringify(val)} | |
- ${JSON.stringify(prevProps[key])}`); |
adb logcat '*:W' > logcatWarningsAndErrors.txt |
Some Google Play store research for setting up private beta channels for Managed Devices.
Note the difference between:
Play Store: play.google.com/
Managed Play Store: play.google.com/work
https://support.google.com/googleplay/android-developer/answer/3131213
Specifically the following section:
'use strict'; | |
function getDependencies(funcs) { | |
const dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs | |
if (!dependencies.every(dep => typeof dep === 'function')) { | |
const dependencyTypes = dependencies.map( | |
dep => typeof dep | |
).join(', ') | |
throw new Error( |
// List the full gradle dependencies for an Android app | |
./gradlew app:dependencies -q |