System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go directory by:
| const functions = require('firebase-functions'); | |
| const cors = require('cors')({ origin: true }); | |
| const rp = require('request-promise'); | |
| exports.checkIP = functions.https.onRequest((req, res) => { | |
| cors(req, res, () => { | |
| if( req.method !== "GET" ) { | |
| return res.status(401).json({ | |
| message: "Not allowed" | |
| }); |
| #!/bin/bash | |
| OVH_CONSUMER_KEY="***" | |
| OVH_APP_KEY="***" | |
| OVH_APP_SECRET="***" | |
| HTTP_METHOD="GET" | |
| HTTP_QUERY="https://api.ovh.com/1.0/domain" | |
| HTTP_BODY="" |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go directory by:
Exhaustive list of SPDX (Software Package Data Exchange) licenses: https://spdx.org/licenses/
| How to Completely Remove Android Studio | |
| Execute these commands from the terminal | |
| rm -Rf /Applications/Android\ Studio.app | |
| rm -Rf ~/Library/Preferences/AndroidStudio* | |
| rm ~/Library/Preferences/com.google.android.studio.plist | |
| rm -Rf ~/Library/Application\ Support/AndroidStudio* | |
| rm -Rf ~/Library/Logs/AndroidStudio* |
| #!/bin/bash | |
| # file: ttfb.sh | |
| # curl command to check the time to first byte | |
| # ** usage ** | |
| # 1. ./ttfb.sh "https://google.com" | |
| # 2. seq 10 | xargs -Iz ./ttfb.sh "https://google.com" | |
| curl -o /dev/null \ | |
| -H 'Cache-Control: no-cache' \ | |
| -s \ |
| const arr1 = [1,2,3] | |
| const arr2 = [4,5,6] | |
| const arr3 = [...arr1, ...arr2] //arr3 ==> [1,2,3,4,5,6] |