Skip to content

Instantly share code, notes, and snippets.

View ChristopherBilg's full-sized avatar
🪰
Battling, bashing, and banishing bothersome bugs

Chris Bilger ChristopherBilg

🪰
Battling, bashing, and banishing bothersome bugs
View GitHub Profile
@ChristopherBilg
ChristopherBilg / apple-m1-macbook-air-macbook-pro-mini-developer-setup-guide-security.md
Created January 5, 2022 19:26
Security Hardened + Apple-Free M1 Macbook Air, Macbook Pro, and Mini Setup for Power Developers

Security Hardened + Apple-Free M1 Macbook Air, Macbook Pro, and Mini Setup for Power Developers

An opinionated configuration by @niftylettuce for Apple's M1 computer line-up.

Table of Contents

Foreword

I launched Forward Email in November and needed a faster machine to work with.

@ChristopherBilg
ChristopherBilg / tini2p-design.md
Created January 2, 2022 22:37 — forked from coneiric/tini2p-design.md
Design overview for a tiny I2P router

Tiny I2P Router Design Ideas

Overall design

Minimal as possible. I2P is full of crypto primitives, file formats, and protocols.

The goal is to implement the smallest functional set of I2P concepts for a working router.

To begin, only implement the NTCP2 transport. This is a TCP-like end-to-end encrypted transport.

@ChristopherBilg
ChristopherBilg / git-clearHistory
Created August 27, 2020 16:15 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
@ChristopherBilg
ChristopherBilg / MST.js
Last active October 2, 2023 22:40
Simple minimum spanning tree (MST) implementation in JS; note: the cycle checking function works for this small graph, but will need to be implemented in larger graphs
const vertices = ['a', 'b', 'c', 'd'];
const edges = [
{
starting: 'c',
ending: 'd',
weight: 500,
},
{
starting: 'a',
ending: 'b',
@ChristopherBilg
ChristopherBilg / carriage_return.c
Last active October 2, 2023 22:40
C Language: Carriage Return Example
#include <stdio.h>
#include <unistd.h>
#define itterator 100000
#define pollingDelay 1
int main() {
for(int i = 1; i <= itterator; i++){
printf("i = %d\r", i);
sleep(pollingDelay/10);
@ChristopherBilg
ChristopherBilg / Class Inheritance Example.py
Created March 15, 2018 16:27
Python Example of Class Inheritance
#!/usr/bin/env python3
class Ship():
def __init__(self, name="Ship", yearBuilt=2000):
self.name = str(name)
self.yearBuilt = int(yearBuilt)
def name(self, name=None):
if not name == None:
@ChristopherBilg
ChristopherBilg / clock.py
Created March 15, 2018 13:49
r/DailyProgrammer Talking Clock
#!usr/bin/env python3
"""
This script is the r/DailyProgrammer Easy Challenge #321 titled
Talking Clock.
Author: Christopher Bilger
"""
WORD_HOURS = [
"twelve",
"one",
"two",
@ChristopherBilg
ChristopherBilg / integers.py
Created March 14, 2018 16:28
r/DailyProgrammer Integer Complexity 1
#!usr/bin/env python3
"""
This script is the r/DailyProgrammer Easy Challenge #354 titled
Integer Complexity 1.
Author: Christopher Bilger
"""
import math as Math
class Integer():
@ChristopherBilg
ChristopherBilg / numbers.txt
Created March 13, 2018 14:31
r/DailyProgrammer Reverse Factorial
120
150
3628800
479001600
6
18
@ChristopherBilg
ChristopherBilg / rack_management.py
Last active October 2, 2023 22:40
r/DailyProgrammer Rack Management 1
#!usr/bin/env python3
"""
This script is the r/DailyProgrammer Easy Challenge #294 titled
Rack Management 1.
Author: Christopher Bilger
"""
def scrabble(rack_str, desired_str):
"""