This file contains hidden or 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
// unset all current targets | |
for (const t of game.user.targets) { | |
t.setTarget(false, {user: game.user, releaseOthers: false, groupSelection: false}) | |
} | |
// Set all controlled tokens to be targeted | |
for (const controlled of canvas.tokens.controlled) { | |
controlled.setTarget(true, {user: game.user, releaseOthers: false, groupSelection: false}) | |
} |
This file contains hidden or 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
Get-Content C:\Users\username\Downloads\youtube-urls.txt | ForEach-Object -Parallel { Start-Sleep -Seconds $(Get-Random -Minimum 3 -Maximum 15); yt-dlp.exe --ffmpeg-location 'C:\Program Files\ffmpeg\bin\ffmpeg.exe' --audio-format mp3 -x "$_" } -ThrottleLimit 3 |
This file contains hidden or 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
// CONSTANTS | |
const SRC_DECK_NAME = "Tarokka Deck"; | |
const DST_CARD_PILE_NAME = "Tarokka Reading"; | |
const CARD_WIDTH = 150; | |
const CARD_HEIGHT = 210; | |
// get reference to src/dst cards objects | |
const src_cards = game.cards.filter(cards => cards.data.name===SRC_DECK_NAME)[0]; | |
const dst_cards = game.cards.filter(cards => cards.data.name===DST_CARD_PILE_NAME)[0]; |
This file contains hidden or 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
// CONSTANTS | |
const SRC_DECK_NAME = "Tarokka Deck"; | |
const DST_CARD_PILE_NAME = "Tarokka Reading"; | |
const CARD_WIDTH = 150; | |
const CARD_HEIGHT = 210; | |
// GET REFERENCE TO SOURCE/DESTINATION "CARDS" OBJECTS | |
const src_cards = game.cards.filter(cardstack => cardstack.data.name===SRC_DECK_NAME)[0]; | |
const dst_cards = game.cards.filter(cardstack => cardstack.data.name===DST_CARD_PILE_NAME)[0]; |
This file contains hidden or 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
// A modified macro for the Foundry virtual tabletop that lets a user configure their token's vision and lighting settings. This script is taken from Sky's foundry repo here: https://github.com/Sky-Captain-13/foundry/blob/master/scriptMacros/tokenVision.js. | |
let applyChanges = false; | |
new Dialog({ | |
title: `Token Vision Configuration`, | |
content: ` | |
<form> | |
<div class="form-group"> | |
<label>Vision Type:</label> | |
<select id="vision-type" name="vision-type"> |
This file contains hidden or 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
# Author: Cole Daubenspeck | |
# | |
# Written for picoCTF 2019 - rsa-pop-quiz | |
# Requires Python 3.6 and above | |
import socket | |
import time | |
import json | |
ADDRESS = '2019shell1.picoctf.com' |
This file contains hidden or 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
# https://developers.google.com/speed/webp/download | |
Get-ChildItem -Path . -File -Depth 0 | ForEach-Object -Parallel { &'C:\Program Files\libwebp\bin\cwebp.exe' -q 75 "$_" -o "$([io.path]::GetFileNameWithoutExtension($_)).webp" } -ThrottleLimit 16 |
This file contains hidden or 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 os | |
import sys | |
import logging | |
import datetime | |
import time | |
# Sets up environment | |
if len(sys.argv) < 2: | |
print('MUST SPECIFY THE BASE KEEPASS DIRECTORY') | |
print('Usage: python KeePass_Backup.py [directory_path]') |
This file contains hidden or 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 json | |
import pandas | |
VADINFO_FILE=r"FILE_PATH_GOES_HERE" | |
CSV_OUTPUT=r"FILE_PATH_GOES_HERE" | |
# thanks https://stackoverflow.com/questions/1094841/get-human-readable-version-of-file-size | |
def sizeof_fmt(num, suffix='B'): | |
for unit in ['','Ki','Mi','Gi','Ti','Pi','Ei','Zi']: | |
if abs(num) < 1024.0: |
This file contains hidden or 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 | |
sudo grep nginx /var/log/audit/audit.log | grep denied | audit2allow -M nginx_local | |
sudo semodule -i nginx_local.pp |
NewerOlder