Skip to content

Instantly share code, notes, and snippets.

View zuedev's full-sized avatar
👀
Looking for more projects!

Alex zuedev

👀
Looking for more projects!
View GitHub Profile
@zuedev
zuedev / docker-compose.yml
Last active August 31, 2025 15:21 — forked from remusjones/docker-compose.yml
Plutonium patch script for the felddy/foundryvtt container.
services:
foundry:
image: felddy/foundryvtt:13
restart: unless-stopped
volumes:
- ./data:/data
ports:
- 30000:30000
environment:
- CONTAINER_CACHE=/data/container_cache
@zuedev
zuedev / gcp_unpreempter.js
Last active May 20, 2020 14:45
gcp_unpreempter.js
const Compute = require("@google-cloud/compute");
const compute = new Compute();
const state = {
msg: "",
};
exports.init = (req, res) => {
compute.getVMs().then((data) => {
data[0].forEach((vm) => {
["dedmen"] call {
missionNamespace setVariable [_this select 0,player, true];
[0, {
params ["_myName"];
private _curVarName = _myName+"Cur";
if (!isNil _curVarName) then {
[-1, compile format["if (player == %1) then {%1 sideChat 'deleting Curator';}", _myName]] call CBA_fnc_globalExecute;
deleteVehicle (missionNamespace getVariable [_curVarName, objNull]);
missionNamespace setVariable [_curVarName, nil, true];
@zuedev
zuedev / vpa.bash
Last active June 20, 2019 11:50
My Kubernetes [Vertical Pod Autoscaler](https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler#intro) easy setup script
#!/bin/bash
DEPLOYMENT=$1
TEMPDIR="/tmp"
TEMPLATE="
{
\"apiVersion\": \"autoscaling.k8s.io/v1beta2\",
\"kind\": \"VerticalPodAutoscaler\",
\"metadata\": {
\"name\": \"$DEPLOYMENT-vpa\"
/*
* This script cycles between two or more iframes on a page.
*
* Make sure to hide the iframe(s) with CSS before running this script on the page!
*
* Originally intended for use with Rasberry Pi's acting as digital signs.
*/
window.onload = function () {
var options = {
@zuedev
zuedev / init.vim
Last active April 18, 2019 09:22
My very basic nvim configuration
call plug#begin()
Plug 'crusoexia/vim-monokai'
Plug 'scrooloose/nerdtree'
Plug 'junegunn/fzf'
Plug 'itchyny/lightline.vim'
Plug 'terryma/vim-multiple-cursors'
Plug 'tpope/vim-eunuch'
Plug 'mattn/emmet-vim'
Plug 'airblade/vim-gitgutter'
@zuedev
zuedev / lock_mic_vol_v2.vbs
Last active July 31, 2018 19:03
Locking microphone volume based on device IDs
Set WshShell = CreateObject("WScript.Shell")
i = 0
Do While i = 0
cmd1=WshShell.RUN("SoundVolumeView /SetVolume ""{0.0.1.00000000}.{e62b029d-0dc8-4985-aa9d-75393ba9acea}"" 100", 0, True) ' Yeti
cmd2=WshShell.RUN("SoundVolumeView /SetVolume ""{0.0.1.00000000}.{8af538fe-61b6-4af7-b41e-a08e286c1e1f}"" 100", 0, True) ' VoiceMeter
WScript.Sleep(30000) ' every 30 seconds
Loop
@zuedev
zuedev / a3update.py
Created June 1, 2018 10:43 — forked from marceldev89/a3update.py
Arma 3 Linux server and mod updater (workshop)
#!/usr/bin/python3
# MIT License
#
# Copyright (c) 2017 Marcel de Vries
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell