View checkboxes.html
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
<div class="checkbox-list"> | |
<p> | |
<input type="checkbox" class="save-cb-state" name="unique-name-1" value="no"> | |
</p> | |
</div> | |
<script src="https://code.jquery.com/jquery.js"></script> | |
<script> | |
// Avoid scoping issues by encapsulating code inside anonymous function |
View plugin.php
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
<?php | |
/** | |
* Plugin Name: My neato plugin | |
* Plugin URI: https://github.com/TaylorJadin/tiny-wordpress-plugins | |
* Description: This plugin does things, probably. | |
* Version: 1.0 | |
* Author: Taylor Jadin | |
* Author URI: https://jadin.me/ | |
**/ |
View gtmetrix
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 | |
# Config | |
GTMETRIX_API_KEY= | |
SLEEP_TIME=5 | |
# Functions | |
function submit_test { | |
curl -s -u $GTMETRIX_API_KEY: \ | |
-X POST -H Content-Type:application/vnd.api+json \ |
View docker-compose.yml
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
version: '3.3' | |
services: | |
app: | |
image: nextcloud | |
restart: always | |
ports: | |
- '8080:80' | |
volumes: | |
- 'nextcloud:/var/www/html' | |
volumes: |
View docker-compose.yml
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
version: '3.3' | |
services: | |
SERVICE_NAME: | |
image: DOCKERHUB_IMAGE | |
restart: always | |
ports: | |
- 'HOST_PORT:CONTAINER_PORT' | |
volumes: | |
- 'VOLUME_NAME_OR_PATH:PATH_INSIDE_CONTAINER' | |
environment: |
View streamdeck-open-close.applescript
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 appName to "Stream Deck" | |
set usbDeviceName to "Stream Deck" | |
set usbData to do shell script "system_profiler SPUSBDataType -detailLevel basic" | |
if usbData contains usbDeviceName then | |
log "Stream Deck connected" | |
if application appName is running then | |
log "Stream Deck.app is already running" | |
else | |
log "Launching Stream Deck.app" |
View foundryBackup.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
#!/bin/bash | |
FOUNDRYDATA="/home/jelastic/foundrydata" | |
DESTINATION="/home/jelastic/backups/" | |
BACKUPS_TO_KEEP=5 | |
TIME_FORMAT=`date -u +"%Y-%m-%dT%H:%M:%SZ"` | |
slow() { | |
start=`date +%s` | |
tar -cvJf "$DESTINATION/foundrydata-$TIME_FORMAT.tar.xz" $FOUNDRYDATA |
View create-local-users.ps1
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
$importCSVpath="C:\users\paperspace\desktop\userlist.csv" | |
ForEach ($user in (Import-CSV $importCSVpath)){ | |
$password = ConvertTo-SecureString $user.password -AsPlainText -Force | |
New-LocalUser -Name $user.username -Password $password -FullName $user.fullname | |
} |
View chorus-adblock.txt
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
##.adblock-allowlist-messaging__wrapper |
View backup.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
#!/bin/bash | |
output=$1 | |
sd="/dev/mmcblk0" | |
if [ -z "$output" ] | |
then | |
echo "No output path specified." | |
echo "Example: backup.sh /media/usb1/piboy.img.gz" | |
exit |
NewerOlder