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 | |
# Ensure that the script exits on any errors | |
set -euo pipefail | |
if [[ -n "${VERBOSE:-}" ]]; then | |
set -x | |
fi | |
# Check that the correct number of arguments are provided |
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
2024-02-29T10:05:19.7563508Z Current runner version: '2.312.0' | |
2024-02-29T10:05:19.7566955Z Runner name: 'buildjet.com_535e1c79-ec10-4804-a0c5-6c7449681dc5' | |
2024-02-29T10:05:19.7567486Z Runner group name: 'Default' | |
2024-02-29T10:05:19.7567937Z Machine name: 'ubuntu' | |
2024-02-29T10:05:19.7569309Z ##[group]GITHUB_TOKEN Permissions | |
2024-02-29T10:05:19.7570290Z Contents: read | |
2024-02-29T10:05:19.7570543Z Metadata: read | |
2024-02-29T10:05:19.7570769Z Packages: write | |
2024-02-29T10:05:19.7571027Z ##[endgroup] | |
2024-02-29T10:05:19.7573387Z Secret source: Actions |
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
coder-b5fcdc954-8ms2s:~$ tree /tmp/coder | |
/tmp/coder | |
├── provisioner-0 | |
│ ├── tf | |
│ │ └── registry.terraform.io | |
│ │ ├── coder | |
│ │ │ └── coder | |
│ │ │ ├── 0.10.0 | |
│ │ │ │ └── linux_amd64 | |
│ │ │ │ ├── LICENSE |
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
// This is lifted directly from https://github.com/gorilla/websocket/blob/master/examples/echo/server.go | |
// without the build:ignore directives | |
// Copyright 2015 The Gorilla WebSocket Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
package main | |
import ( |
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
/* | |
* Foundry VTT Macro for Starfinder RPG -- Mass Ability, Save, or Skill Roll | |
*/ | |
let targetActors = getTargetActors().filter(a => a != null); | |
function checkForActors(){ | |
if (targetActors.length == 0) | |
throw new Error('You must designate at least one token as the roll target'); | |
} | |
checkForActors(); |
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
/* | |
* Foundry VTT Macro for Starfinder RPG -- Mass Perception Check | |
*/ | |
// Gets list of selected tokens, or if no tokens are selected then the user's character. | |
function getTargetActors() { | |
const character = game.user.character; | |
const controlled = canvas.tokens.controlled; | |
let actors = []; |
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() { | |
game.playlists.filter(p => p.playing).forEach(p => p.playNext()); | |
})() |
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({fadeDuration=5000}={}) { | |
function fadeOutPlaylist(playlist, fadeDuration) { | |
if (!playlist.playing) return; | |
let playingSound = playlist.sounds.filter(s => s.playing).find(_ => true).sound; | |
if (!!!playingSound) return; // should not happen | |
let currVol = playingSound.volume; | |
let globalVol = game.settings.get("core", "globalPlaylistVolume"); | |
if (currVol == 0) return; | |
playingSound.fade(0, { duration: fadeDuration, from: currVol}) | |
setTimeout(() => playlist.stopAll(), fadeDuration); |
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({fadeIn="", fadeDuration=5000}={}) { | |
function fadeInPlaylist(playlist, fadeDuration) { | |
playlist.playAll().then(function(p) { | |
let globalVol = game.settings.get("core", "globalPlaylistVolume"); | |
p.sounds.filter(s => s.playing).find(_ => true) | |
.sound | |
.fade(globalVol, { duration: fadeDuration, from: 0}); | |
}); | |
} | |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "generic/ubuntu2004" | |
config.vm.provision "shell" do |shell| | |
shell.privileged = false | |
shell.path = "provision.sh" | |
end | |
end |
NewerOlder