Skip to content

Instantly share code, notes, and snippets.

View DanEdens's full-sized avatar
💭
Building a Test Kit!

Dan Edens DanEdens

💭
Building a Test Kit!
View GitHub Profile
@DanEdens
DanEdens / LGS_script_template.lua
Created November 4, 2022 12:57 — forked from Egor-Skriptunoff/LGS_script_template.lua
Template script file for Logitech Gaming Software
---------------------------------------------------------------------------------------------
-- LGS_script_template.lua
---------------------------------------------------------------------------------------------
-- Version: 2019-04-19
-- Author: Egor Skriptunoff
--
--
-- This is a template for "Logitech Gaming Software" script file.
-- Four useful features are implemented here:
--
@DanEdens
DanEdens / #_overview.md
Created August 11, 2022 15:31 — forked from doytsujin/#_overview.md
Sample Terraform codes for Azure Container Apps with Dapr
@DanEdens
DanEdens / azure-pipeline-with-keyvault.yaml
Created December 23, 2020 13:37 — forked from cdennig/azure-pipeline-with-keyvault.yaml
Azure DevOps Terraform with KeyVault + Service Connection
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
variables:
- group: kvintegratedvargroup
steps:
@DanEdens
DanEdens / .vimrc
Created December 20, 2020 23:53 — forked from millermedeiros/.vimrc
My VIM settings (.vimrc)
" =============================================================================
" Miller Medeiros .vimrc file
" -----------------------------------------------------------------------------
" heavily inspired by: @factorylabs, @scrooloose, @nvie, @gf3, @bit-theory, ...
" =============================================================================
" -----------------------------------------------------------------------------
" BEHAVIOR
@DanEdens
DanEdens / .zshrc
Created December 18, 2020 18:38 — forked from SlexAxton/.zshrc
My gif workflow
gifify() {
if [[ -n "$1" ]]; then
if [[ $2 == '--good' ]]; then
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif
rm out-static*.png
else
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif
fi
else
@DanEdens
DanEdens / bash setup for docker
Created December 17, 2020 00:25 — forked from auwsom/bash setup for docker
bash setup for docker
# wget https://gist.github.com/auwsom/fbeb8bfd36af91bb482529ee499f1058/raw -O bashsetup_docker ; bash !$
set +o history && sleep 1
sed -i /^'alias d'/d ~/.bashrc; sed -i /^'function d'/d ~/.bashrc ## remove old
source ~/.bashrc ; exec bash ## have to restart shell to enter the bindings without recursion
#echo "HISTIGNORE=''" >>~/.bashrc
# sudo cp /usr/share/zoneinfo/US/Pacific /etc/localtime # cant set, read only
echo "alias d='docker'">>~/.bashrc
echo "alias dcm='docker commit'">>~/.bashrc # CONTAINER IMAGE_REPO:TAG <- have to specify or creates new image
echo "alias del='docker exec -it \$(docker ps -q -l) bash'">>~/.bashrc
echo "alias di='docker images'">>~/.bashrc
@DanEdens
DanEdens / utils.py
Last active January 3, 2023 19:17 — forked from FulcronZ/main.py
Python MQTT Logging Handler
import errno
import logging
import os
import re
import subprocess
import time
from datetime import datetime
from pathlib import Path
from typing import List
### Preseed for Ubuntu 18.04
# Derived from: https://help.ubuntu.com/lts/installation-guide/example-preseed.txt
### Usage
# We recommend to use the build-iso.sh script to build an image with embedded
# preseed and other required files. In that case the preseed file gets loaded
# automatically and all additional files are available to the installer.
### Unattended Installation
d-i auto-install/enable boolean true
@DanEdens
DanEdens / teams_webhook_post.py
Last active January 15, 2020 17:33 — forked from devStepsize/slack_webhook_post.py
POST a JSON payload to a Team's channel Incoming Webhook using Python requests
'''
This is an example of how to send data to Team's webhooks in Python with the
requests module.
Documentation for Team's Incoming Webhooks:
https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/what-are-webhooks-and-connectors
Card playground:
https://messagecardplayground.azurewebsites.net/
'''
import json