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
luarocks install --tree=$(brew --prefix)/lib/lua/5.1 luasocket |
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
# Local | |
LOG_LEVEL=debug pnpm dlx renovate \ | |
--platform local \ | |
--print-config true | |
# GitHub hosted | |
REPO="user/repo" | |
LOG_LEVEL=debug pnpm dlx renovate \ | |
--dry-run extract \ | |
--print-config 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
HTTP/2 200 | |
date: Sun, 05 May 2024 15:39:06 GMT | |
content-type: text/html; charset=utf-8 | |
cache-control: public, max-age=0, must-revalidate | |
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=ZNcUyO8%2FNm1megeD0GbqGongpd3IiRZ7OizUiPtTDwjeFbtsiQmY%2F0xbwB%2F87Vpm1IK6Oje3JneArNv6fSQad3wC37ZwuqNjIunCyd4nh9p2YX0pLnBTXiM8TafWlw%2Fz"}],"group":"cf-nel","max_age":604800} | |
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800} | |
vary: Accept-Encoding | |
cf-cache-status: DYNAMIC | |
strict-transport-security: max-age=15552000; preload | |
expect-ct: max-age=86400, enforce |
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 { | |
FactoryProvider, | |
InjectionToken, | |
Optional, | |
SkipSelf, | |
Type, | |
} from '@angular/core' | |
/** | |
* Helps to make a `forRoot` guard to ensure a module is not imported |
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 | |
[ $# -eq 0 ] && >&2 echo "❌ No files provided as arguments" && exit 1 | |
NOSPACES_FILE_REGEXP="^([0-9]{4})([0-9]{2})([0-9]{2})(.*)$" | |
PARENTHESES_FILE_REGEXP="^\(([0-9]{4})\.([0-9]{2})\.([0-9]{2})\)(.*)$" | |
for filename in "$@"; | |
do | |
new_filename="$filename" | |
printf "\"$filename\"" | |
# No spaces |
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 | |
repos=$(gh repo list --limit 100 --json nameWithOwner | jq -r '.[].nameWithOwner') | |
count=0 | |
echo "{" | |
for repo in $repos; do | |
has_pages="$(gh api repos/"$repo" --jq '.has_pages')" | |
echo " \"$repo\": $has_pages," | |
if [ "$has_pages" = "true" ]; then | |
: $((count+=1)) | |
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
function getNextButton() { | |
return document.querySelector('.podcast-pagination .right_arrow'); | |
} | |
function hasNextButton() { | |
const nextButtonStyle = window.getComputedStyle(getNextButton()); | |
return nextButtonStyle.opacity !== '0' | |
} | |
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); |
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 | |
# | |
# So you have backed up your GPG key using paperkey, and have scanned it | |
# using OCR techniques. However, it's not perfect and some checksums do not match | |
# Some 8s are Bs, 0s are Os... This script will try to spot errors so you | |
# can compare those lines and fix them | |
# | |
# Given a secret key exported using paperkey, tries to decode it. | |
# | |
# In case a CRC checksum wrong is found, a vim editor will be opened |
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 | |
# <bitbar.title>Kraken.com price tickers</bitbar.title> | |
# <bitbar.version>v1.0</bitbar.version> | |
# <bitbar.author>davidlj95</bitbar.author> | |
# <bitbar.author.github>davidlj95</bitbar.author.github> | |
# <bitbar.desc>Last selected tickers from Kraken.com</bitbar.desc> | |
# <bitbar.image>https://i.imgur.com/iGX2yjR.png</bitbar.image> | |
# <bitbar.dependencies>jq,curl</bitbar.dependencies> | |
# |
NewerOlder