Skip to content

Instantly share code, notes, and snippets.

View jessenich's full-sized avatar
😶‍🌫️
I may be slow to respond.

Jesse N. jessenich

😶‍🌫️
I may be slow to respond.
View GitHub Profile
@jessenich
jessenich / index.html
Created June 21, 2024 19:04
JS Snake Game
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Snake Game</title>
<style>
body {
display: flex;
justify-content: center;
@jessenich
jessenich / 99microsoft-dotnet.pref
Last active April 28, 2023 19:13
dotnet 6 install - MS Package Feed
# /etc/apt/preferences.d/99microsoft-dotnet.pref
Package: *
Pin: origin "packages.microsoft.com"
Pin-Priority: 1001
@jessenich
jessenich / extensions.txt
Last active April 11, 2023 19:15
VSCode Extension List
ahebrank.yaml2json
ahmadalli.vscode-nginx-conf
austincummings.razor-plus
BartVanHoey.blazory
bencoleman.armview
bmalehorn.shell-syntax
buianhthang.xml2json
cake-build.cake-vscode
chris-noring.ts-snippets
christian-kohler.npm-intellisense
@jessenich
jessenich / flash2fs.py
Created November 3, 2022 19:25
[Motorola Flashfile SH Generator] Generate a bash script from a given Motorola flash file with all commands needs to send a sparsed image over fastboot #android
#!/usr/bin/env python3
import argparse
import sys
from os import path
from textwrap import indent
from xml.etree import ElementTree
def commentify(x, prefix='# '):
@jessenich
jessenich / crontab
Last active September 28, 2022 04:06
FreeDNS & LogRotate Example
# Cron example for gl11314.my.to - will update on 5 minute intervals. Works for mac, linux (or any
# OS with a cron scheduler)
# If you're not familiar with the cron scheduler, you can search for "install a cron", cron is the standard scheduler available on most non-windows systems, mac's,
# routers, NAS boxes and so on Using IPv4 transport
# Test on the console using ..:
# curl http://sync.afraid.org/u/VRgFyLDqz4GeCXUqAmuxLLwZ/
# To install into cron, on the console enter: crontab -e
@jessenich
jessenich / install-nerd-fonts.sh
Last active June 1, 2024 05:34
Install Nerd Fonts (Linux)
#!/usr/bin/env bash
__main() {
declare -a fonts=("Hack")
gh_release=$(curl -s "https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest")
if [[ "${fonts[0]}" = "all" ]]; then
# Project all font names into source array
echo "$gh_release" | \
@jessenich
jessenich / .editorconfig
Last active April 25, 2023 16:02
Global EditorConfig
# .editorconfig help: https://EditorConfig.org
# References
# http://editorconfig.org/ (Official Site)
# http://editorconfig.org/#download (Plugins)
# http://davidensinger.com/2013/07/why-i-use-editorconfig/ (Reference)
# https://github.com/eslint/eslint/blob/master/.editorconfig (Sample file)
# No .editorconfig files above the root directory
root = true
@jessenich
jessenich / dotnet-install.sh
Last active February 20, 2022 05:10
dotnet-install
#!/bin/bash
dotnetver="6.0"
echo -e "\e[1m----------------------------------------"
echo -e "\e[1m .NET $(echo "$dotnetver" | cut -c 2 || true) Installer
echo -e "\e[1m----------------------------------------"
echo -e "\e[0m"
echo -e "\e[1m----------------------------------------"
@jessenich
jessenich / main.sh
Last active November 8, 2022 18:04
Linux Installs with Debian, Ubuntu, and Alpine Support
#!/bin/sh
if [ ! -f /etc/os-release ]; then
echo "Unable to determine ditribution" >&2
exit 1;
fi
. /etc/os-release
export NAME VERSION ID PRETTY_NAME
@jessenich
jessenich / code-injection-function-example.cs
Last active November 28, 2021 09:29
Rebuild C# Syntax Tree
using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
public static class CodeInjector {
static void InjectCode(string appDir) {
if (string.IsNullOrWhiteSpace(appDir))