brew install nmap
nmap --script ssl-enum-ciphers -p 443 example.server.comStarting 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).| 1. Prevent losing the message in the first place | |
| If you know ahead of time that you want to “undo” a commit without losing either your changes or your commit message, use soft reset: | |
| # Move HEAD one commit back, but keep index & working-tree untouched | |
| git reset --soft HEAD~1 | |
| • What it does | |
| • HEAD moves to the previous commit | |
| • Your index (staging area) still contains exactly what you had in that commit |
| https://stackoverflow.com/questions/29914052/how-to-git-rebase-a-branch-with-the-onto-command/29916361#29916361 | |
| git rebase --onto <newparent> <oldparent> |
| // Exclude test files from VSCode searches | |
| **/*.test.* |
| # 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: