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 fs from 'fs' | |
import YAML from 'yaml' | |
const PasswordPresentRe = /(password=.+)&/; | |
const HasuraRootPath = `../standard-cloud-demo/metadata`; | |
const metdataString = fs.readFileSync(`${HasuraRootPath}/databases/databases.yaml`, 'utf8') | |
const metadata = YAML.parse(metdataString) | |
console.log() | |
console.log(`🔍 Checking Hasura Metadata for passwords in connection strings...\n`) |
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/bash | |
set -e | |
echo "" | |
echo "" | |
echo "Setting bash shell customizations for Raspian or Ubuntu-server based Pi's" | |
echo "LET'S GO NOW!!" | |
function file.fetch () { | |
SOURCE=$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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
################################################################## | |
# Load all custom shell data from their own files | |
# | |
if [ -f ~/.bash_sources ]; then | |
. ~/.bash_sources | |
fi |
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
# ------------------------------------ | |
# Exports and aliases | |
# ------------------------------------ | |
export CONTAINERS_HOME=$HOME/containers | |
export CONTAINER_HOME=$CONTAINERS_HOME | |
export JQ_EXPR_UNIQUE_DOCKER_COMPOSE_RELATIVE_PATH_VOLUMES='with_entries(.value |= .volumes) | to_entries | map(.value) | flatten | map (. | try split(":")) | map(.[0] ) | map(. | select(. | startswith("/") | not)) | unique | .[]' |
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
if [ -f ~/.bash_functions ]; then | |
. ~/.bash_functions | |
fi | |
if [ -f ~/.bash_exports ]; then | |
. ~/.bash_exports | |
fi | |
if [ -f ~/.bash_prompt ]; then |
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
{ | |
"name": "__NAME__", | |
"description": "Description of something or other", | |
"version": "0.1.0", | |
"main": "./dist/index.js", | |
"types": "./dist/index.d.ts", | |
"private": false, | |
"license": "UNLICENSED", | |
"files": ["dist/**/*"], | |
"publishConfig": { |
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
{ | |
"compilerOptions": { | |
"pretty": true, | |
"target": "esnext", | |
"module": "commonjs", | |
"lib": ["esnext"], | |
"declaration": true, | |
"outDir": "dist", | |
// "noEmit": true, | |
"strict": 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
{ | |
"compilerOptions": { | |
"preserveConstEnums": true, | |
"strictNullChecks": true, | |
"sourceMap": true, | |
"allowJs": true, | |
"target": "es5", | |
"outDir": ".build", | |
"moduleResolution": "node", | |
"lib": ["es2015"], |
ESPN's hidden API endpoints
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
NewerOlder