URL=$1
shift 1
while [ "$#" -gt 0 ]; do
case "$1" in
-o) OUTPUT="$2"; shift 2;;
-ttl) TTL="$2"; shift 2;;
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
rm -r /etc/pacman.d/gnupg | |
pacman-key --init | |
pacman-key --refresh-keys | |
pacman-key --populate archlinux | |
pacman -Sy archlinux-keyring | |
pacman -Scc | |
pacman -Syyu |
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
$ cd /etc/apt/sources.list.d | |
$ cat microsoft-prod.list | |
deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/ubuntu/22.04/prod jammy main | |
$ cat ubuntu-toolchain-r-ubuntu-test-jammy.list | |
deb https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu/ jammy main | |
# deb-src https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu/ jammy main |
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
/* | |
Simple demo to show how the node inspector works | |
✨ 1: Run with: | |
node --inspect-brk debuggerdemo.js | |
By default, the debug process runs on "ws://127.0.0.1:9229", but you can change the port. See node --help for more info | |
--inspect[=[host:]port] activate inspector on host:port (default: 127.0.0.1:9229) | |
--inspect-brk[=[host:]port] activate inspector on host:port and break at start of user script |
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
⟵ ⟶ ⟷ ← → ↓ ↑ ↕ ↔ ↖ ↘ ↗ ↙ ⇿ ⇽ ⇾ ⇄ ⇆ ⇈ ⇊ ⇉ ⇇ ⬱ ⇶ ⤡ ⤢ ↧ ↥ ↦ ↤ ↹ ⇐ ⇒ ⇔ ⇕ ⇑ ⇓ ⇗ ⇙ ⇖ ⇘ ⇦ ⇨ ⇧ ⇩ ⇳ ⇣ ⇡ ⇢ ⇠ ➙ ➝ ➞ ➘ ➚ ➛ ➡ ➟ ➠ ➜ ➥ ➦ ➢ ➣ ➤ ▶ ◀ ▼ ▲ ➲ ➧ ➽ ➾ ➪ ➩ ➱ ➯ ➴ ➶ ➷ ➹ ➳ ⬄ ⬀ ⬃ ⬁ ⬂ ⬇ ⬆ ⬍ ⬉ ⬊ ⬈ ⬋ ⤊ ⤋ ⟰ ⟱ ⇜ ⇝ ⬳ ⟿ ↜ ⬿ ↭ ⤳ ↝ ⤝ ⤞ ↚ ↛ ↞ ↠ ↟ ↡ ↢ ↣ ⤌ ⤍ ⬸ ⤑ ↼ ↽ ↾ ↿ ⇀ ⇁ ⇂ ⇃ ⇋ ⇌ ⥪ ⥬ ⥫ ⥭ ⥍ ⥌ ⥊ ⥋ ⥎ ⥐ ⥏ ⥑ ⥒ ⥓ ⥔ ⥘ ⥖ ⥗ ↫ ↬ ↶ ↷ ↩ ↪ ⤶ ⤷ ⤴ ⤵ ⤣ ⤥ ⤤ ⤦ ⤾ ⤿ ⤸ ⤹ ⤺ ⤻ ↻ ↺ ⟳ ⟲ ⥁ ⥀ ↰ ↱ ↲ ↳ ⬐ ⬑ ⬎ ⬏ ⬲ ⟴ ⥺ ⭄ ⥂ ⥃ ⥆ ⥅ ⥻ ⥹ ⇱ ⇲ ↯ |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
# | |
# sponge - soak up standard input and write to a file | |
# | |
# NOTE: Poor mans versions of sponge | |
# ... to avoid having to 'apt-get install moreutils' and perl dependencies) in CI pipeline | |
# Example Usage: |
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 | |
echo "Cleaning Linux Headers" | |
#echo $(dpkg --list | grep linux-image | awk '{ print $2 }' | sort -V | sed -n '/'`uname -r`'/q;p') $(dpkg --list | grep linux-headers | awk '{ print $2 }' | sort -V | sed -n '/'"$(uname -r | sed "s/\([0-9.-]*\)-\([^0-9]\+\)/\1/")"'/q;p') | xargs sudo apt-get -y purge | |
#dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge | |
echo "" | |
echo "Cleaning orphan .deb packages" | |
deborphan | xargs sudo apt-get -y remove --purge | |
echo "" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Akamai | Hello world</title> | |
<meta name="viewport" content="width=device-width" /> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | |
<meta name="format-detection" content="telephone=no" /> | |
<meta http-equiv="content-type" content="text/html;charset=UTF-8" /> |
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
#!/usr/bin/env bash | |
GITROOT=$(git rev-parse --show-toplevel) | |
ROOT=$GITROOT/packages/www | |
INPUT=$ROOT/public | |
OUTPUT=$ROOT/public | |
minifier=$ROOT/node_modules/.bin/html-minifier | |
# See: html-minifier --help |
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
/* | |
* Custom jsx parser | |
* See: tsconfig.json | |
* | |
* { | |
* "jsx": "react", | |
* "jsxFactory": "h" | |
* } | |
* | |
*/ |
NewerOlder