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 | |
# example: ./setup-ses-route53.sh <hosted-zone-id> <domain> | |
# Check if the correct number of arguments are provided | |
if [[ "$#" -ne 2 ]]; then | |
echo "Usage: $0 <hosted-zone-id> <domain>" | |
exit 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
import type { Component, Ref } from "vue" | |
import { defineComponent, h, onBeforeUnmount, onMounted, ref } from "vue" | |
/** | |
* ResponsivePanes is a component that renders its children in a responsive manner. | |
* | |
* @example | |
* <ResponsivePanes :components="[ | |
* { parent: BAccordion, child: BAccordionItem }, // Mobile/Small (default) | |
* { parent: BTabs, child: BTab, minWidth: 768 }, // Tablet/Medium |
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 | |
# These steps are copied directly from the post here: https://www.reddit.com/r/Proxmox/comments/104z8pt/comment/jewwf7u/ | |
sudo -s | |
curl https://raw.githubusercontent.com/pimox/pimox7/master/RPiOS64-IA-Install.sh > RPiOS64-IA-Install.sh | |
chmod +x RPiOS64-IA-Install.sh | |
./RPiOS64-IA-Install.sh |
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
{ | |
events(first: 10, where: {status: PUBLISH}) { | |
edges { | |
node { | |
uri | |
title | |
cost | |
costMax | |
costMin | |
content |
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: "Build and deploy Nuxt SSR with PM2" | |
on: [push] | |
jobs: | |
build: | |
name: "Build Nuxt Application" | |
runs-on: [self-hosted, ARM64] # you can also use buildjet.com | |
environment: | |
name: "Production" | |
steps: | |
- uses: actions/checkout@v3 |
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
let setupProvider = async () => { | |
const endpoints = [ | |
'https://bsc-dataseed1.defibit.io/', | |
'https://bsc-dataseed.binance.org/', | |
'https://bsc-dataseed1.ninicoin.io/', | |
'https://bsc-dataseed2.defibit.io/', | |
'https://bsc-dataseed3.defibit.io/', | |
'https://bsc-dataseed4.defibit.io/', | |
'https://bsc-dataseed2.ninicoin.io/', | |
'https://bsc-dataseed3.ninicoin.io/', |
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
// adapted from https://stackoverflow.com/a/61121577/887164 | |
// replace `adsbygoogle` in your ad unit class name with `ADSENSE` | |
let _rsztmr; | |
// call to updateAds after resize (debounced) | |
window.onresize = function () { | |
clearTimeout(_rsztmr); | |
_rsztmr = setTimeout(updateAds, 100); | |
} |
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
// career posts and the page w/ ID 13 both have forms, | |
// as long as we are not on one of those, we | |
// dequeue CF7 and reCaptcha to remove the v3 badge | |
// add to functions.php | |
add_action('wp_print_scripts', function () { | |
global $post; | |
$is_career = (is_single() && $post->post_type == 'career'); | |
if (!$is_career && !is_page(array('13'))) { |
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 | |
# | |
# Author: Larry Williamson - hitmeup@l422y.com | |
# Script to automate updating a staged WordPress site from a local dev environment and clear PageSpeed | |
# and NGiNX fastcgi caches. Skips uploading node_modules. | |
# | |
# 1) Update WordPress (Understrap) version in style.css so browsers will refresh the new version | |
# 2) use lftp w/ sftp to reverse mirror files w/ 20 parallel connections (FAST.) | |
# 3) use SSH to remotely execute a cache clearing 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
set dir to "" | |
on open dropped_dir | |
set dir to dropped_dir | |
end open | |
if length of dir is equal to 0 then | |
set dir to (choose folder with prompt "Choose a folder to scan for lock files") | |
end if | |
set list_of_files to {} |
NewerOlder