Skip to content

Instantly share code, notes, and snippets.

View chabad360's full-sized avatar
💻
Just Coding!

Mendel Greenberg chabad360

💻
Just Coding!
View GitHub Profile
@chabad360
chabad360 / nice_config_prints.sh
Last active April 9, 2019 06:25
Prints a file in a easy to find format, useful for logging config files (Uses colors!)
#!/bin/bash
# Function usage 'output ./test.txt "Test File"'
function output () {
TITLE=$2 NAME=${3:-$(echo "$1" | grep -o '\([^\/\\]\+\.\w\+\)$')} awk 'BEGIN{print "\033[1;36m" ENVIRON["TITLE"] \
":\n\033[0;31m" ENVIRON["NAME"] "\t|\033[1;31m ------------------------------------------------------------------------\033[0m"} \
{print "\033[0;31m" ENVIRON["NAME"] "\t| \033[0m" $0} END{print "\033[0;31m" \
ENVIRON["NAME"] "\t|\033[1;31m ------------------------------------------------------------------------\033[0m\n"}' $1
}
{
"0": {
"name": "Default",
"default_map": "Default",
"Default": {
"is_using_matrix": true,
"red_led": 1,
"green_led": 0,
"blue_led": 0,
"matrix": {
   6.18   ~/.config/fusion-360/bin     1003  03/06/22  12:40 
mendel@MENDELSPC  ./launcher.sh
--2022-03-06 12:40:18-- https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/builds/stable-branch/bin/update-config.txt
SSL_INIT
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.108.133, 185.199.111.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9 [text/plain]
Saving to: ‘/home/mendel/.config/fusion-360/bin/update-config.txt’
@chabad360
chabad360 / index.html
Created June 6, 2023 15:17
A small tool for controlling playback in resolume through websocket (uses jsonpath for finding things)
<!DOCTYPE html>
<head>
<style>
body {
height:100vh;
}
* {
margin:0px;
}
.cliphead {
@chabad360
chabad360 / torahdays.ipynb
Last active June 8, 2023 07:06
A notebook that calculates the precise chance that the torah will be read on a given day
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
package main
import (
"github.com/rodrigocfd/windigo/ui"
"github.com/rodrigocfd/windigo/ui/wm"
"github.com/rodrigocfd/windigo/win"
"github.com/rodrigocfd/windigo/win/co"
)
type UpDown interface {