foo@bar:~$ curl -s -w 'Testing Website Response Time for :%{url_effective}\n\nLookup <br />Time:\t\t%{time_namelookup}\nConnect
Time:\t\t%{time_connect}\nAppCon Time:\t\t%{time_appconnect}\nRedirect
Time:\t\t%{time_redirect}\nPre-transfer Time:\t%{time_pretransfer}\nStart-transfer
Time:\t%{time_starttransfer}\n\nTotal Time:\t\t%{time_total}\n' -o /dev/null ADDRESS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { readFileSync, writeFileSync, appendFileSync } = require("fs"); | |
const ngixFile = "ngix-redirect-file.conf"; | |
const jsonRedirectFile = "vercel.json"; | |
ngixToVercelRedirect = (ngix) => { | |
const ngixParts = ngix.split(" "); | |
const ngixPath = ngixParts[1]; | |
const ngixDestination = ngixParts[2]; | |
const ngixStatusCode = ngixParts[3]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
currentBranch=`git branch --show-current` | |
currentBranch="${currentBranch}" | |
echo "🛬 Pulling changes from current ${currentBranch}" | |
git pull origin $currentBranch | |
echo "🛫 Pushing changes from your current ${currentBranch}" | |
git push origin $currentBranch | |
ghCommand=`gh api /repos/:owner/:repo/commits/:branch/status | python -c 'import json, sys; print(json.loads(sys.stdin.read())["state"]);'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
class Cake {} | |
class Order { | |
String type; | |
Order(this.type); | |
} |