Skip to content

Instantly share code, notes, and snippets.

View chrisisbeef's full-sized avatar

Chris Schmidt chrisisbeef

  • FluidTruck
  • Denver, Co
View GitHub Profile
@chrisisbeef
chrisisbeef / inventory.yml
Created November 15, 2022 22:34
Using Ansible JumpCloud Role with Proxmox Hosts
---
all:
hosts:
host1:
host2:
host3:
pve1:
pve2:
pve3:
children:
@chrisisbeef
chrisisbeef / spdt-relay.chip.c
Created September 25, 2022 00:15
SPDT Relay for Wokwi
#include "wokwi-api.h"
#include <stdio.h>
#include <stdlib.h>
DEFINE_PIN(COM);
DEFINE_PIN(NC);
DEFINE_PIN(NO);
DEFINE_PIN(COIL);
typedef struct {
@chrisisbeef
chrisisbeef / cd4052b.chip.c
Created September 25, 2022 00:13
CD4052B Analog MUX for Wokwi (Input MUXing Only for Now)
#include "wokwi-api.h"
#include <stdio.h>
#include <stdlib.h>
DEFINE_PIN(CIO0);
DEFINE_PIN(CIO1);
DEFINE_PIN(CIO2);
DEFINE_PIN(CIO3);
DEFINE_PIN(CIO4);
DEFINE_PIN(CIO5);
@chrisisbeef
chrisisbeef / best.ps1
Last active April 5, 2024 20:35
Bitdefender GravityZone Remote Installation Scripts (Works with JumpCloud Command-Runner Agent)
# Insert your company-hash here. When you get the download link, this is the long alpha-numeric scring
# that comes after setupdownloader_ in the filename.
# Do not include the square brackets (but do include the = if there is one).
$CompanyHash = ""
### Modify below this line at your own risk!
# If it's already installed, just do nothing
$Installed = Get-ItemProperty "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*" |
Where-Object { $_.DisplayName -eq "Bitdefender Endpoint Security Tools" }
@chrisisbeef
chrisisbeef / birds_and_bees.js
Created September 30, 2016 16:27
How to explain the birds and bees to a young programmer
let process = teenage_child;
function teenage(process) {
while(true) {
let processList = this.getProcesses();
for (let potential in processList) {
process.greet(potential);
if (potential.isWarm()) {
try {
process.offer(potential);
### Keybase proof
I hereby claim:
* I am chrisisbeef on github.
* I am chrisisbeef (https://keybase.io/chrisisbeef) on keybase.
* I have a public key whose fingerprint is 3781 27FA D240 C390 F4B8 07D9 5F5A 831F ECA3 2D95
To claim this, I am signing this object:
@chrisisbeef
chrisisbeef / install4j-manual.sh
Last active August 29, 2015 14:21
Install4J - Allow override of a bundled JRE in Unix Installer
# Allow override of Bundled JRE
# Override can be set either via the INSTALL4J_JAVA_HOME_OVERRIDE environment variable or
# by passing -manual <path> to the installer. The -manual arg will override the environment
# variable if both are set. INSTALL4j_JAVA_HOME_OVERRIDE is provided if a savvy user looks
# up the Install4J documentation.
#
# Instructions:
# In your Unix Installer Media, select the "Installer Options" -> "Installer Custom Script"
# option in the left pane. Select direct entry and copy/paste this script into the provided
# editor.
@chrisisbeef
chrisisbeef / gist:48a0b3bf38ee923b9944
Created November 11, 2014 20:38
SVN/Maven: Get a list of changed files for a specified range of revisions relative to the target directory of a compiled maven project
for f in $(svn diff --summarize -r16044:16045 | grep -v "/test/" | awk '{print $2}'); do printf "classes/"; if [[ "$f" =~ "/java/" ]]; then printf "$f" | cut -b 15- | sed 's/.java/*.class/'; elif [[ "$f" =~ "/resources/" ]]; then printf "$f" | cut -b 20-; fi; done