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/sh | |
dig +short txt ch whoami.cloudflare @1.1.1.1 | tr -d '"' |
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 { from, defer } from 'rxjs'; | |
import { mergeAll, retry } from "rxjs/operators"; | |
const pages = [0, 100, 200, 300, 400, 500, 600, 700, 800, 900]; | |
const doPageRequest = async (startAt: number) => { | |
const response = await requestingSomeData({ startAt }) | |
return response.data; | |
} |
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 | |
#https://gitlab.com/Remmina/Remmina/-/wikis/Compilation/Compile-on-Ubuntu-20.04 | |
cd /your-remmina-location/remmina_devel/FreeRDP | |
git pull | |
cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_SSE2=ON -DWITH_CUPS=on -DWITH_PULSE=on -DCMAKE_INSTALL_PREFIX:PATH=/opt/remmina_devel/freerdp . |
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 | |
if [ "$1" == "" ]; then | |
echo "Bucket name required" | |
exit 1 | |
fi | |
DATE=$(date +%Y%m%d_%H%M) | |
DB_NAME=$PGDATABASE | |
BUCKET=$1 |
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 fs = require('fs'); | |
const path = "/your/data/path"; | |
(async () => { | |
async function recurseDir(aDir, aArr, aCond) { | |
//remove trailing slash if it's there | |
aDir = aDir.replace("\/+$", ""); | |
let dirents = await fs.promises.readdir(aDir, { withFileTypes: true }); |
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
Param( | |
[Parameter (Mandatory= $true)] | |
[AllowEmptyCollection()] | |
[String[]]$VmNames, | |
[Parameter (Mandatory= $true)] | |
[AllowEmptyCollection()] | |
[String[]]$VmssNames, | |
[Parameter (Mandatory= $true)] | |
[string]$ResourceGroupName, | |
[Parameter (Mandatory= $true)] |
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 {exec} = require('child_process'); | |
const fs = require('fs'); | |
const dotenv = require('dotenv'); | |
const path = require('path'); | |
dotenv.config(); | |
(async () => { | |
let dir = process.env.JSON_DIR; |