Skip to content

Instantly share code, notes, and snippets.

View theoparis's full-sized avatar

Theo Paris theoparis

View GitHub Profile
@theoparis
theoparis / bundler.ts
Last active February 1, 2022 08:03
deno issue 1
import { Application } from "https://deno.land/x/oak/mod.ts";
import staticFiles from "https://deno.land/x/static_files/mod.ts";
import {
init as initTw,
TwInfo,
generate as generateTw
} from "https://deno.land/x/twd/mod.ts";
export const bundle = async () => {
const { files, diagnostics } = await Deno.emit("./frontend/src/main.tsx", {
@theoparis
theoparis / .config
Created February 17, 2022 07:48
buildroot config (wip, moving to theos configurator soon)
#
# Automatically generated file; DO NOT EDIT.
# Buildroot 2022.02-rc1-38-gcc9470c2d8 Configuration
#
BR2_HAVE_DOT_CONFIG=y
BR2_HOST_GCC_AT_LEAST_4_9=y
BR2_HOST_GCC_AT_LEAST_5=y
BR2_HOST_GCC_AT_LEAST_6=y
BR2_HOST_GCC_AT_LEAST_7=y
BR2_HOST_GCC_AT_LEAST_8=y
@theoparis
theoparis / main.rs
Created February 20, 2022 08:41
Proxy server issue #1
use std::{env, net::IpAddr, str::FromStr};
use fdpl::{server::ProxyServer, types::Route};
use tide::Request;
#[tokio::main]
async fn main() {
env_logger::init_from_env(
env_logger::Env::default().default_filter_or("info"),
);
@theoparis
theoparis / test.py
Created March 16, 2022 22:55
Python quadratic equation solver test 1
import math
print("format is ax^2+bx+c")
a = float(input("a="))
b = float(input("b="))
c = float(input("c="))
# fomrula is -b^2-4ac
# ((b) - ((b) * (2))) * (b)= -b^2
X = (b**2) - (4 * a * c)
@theoparis
theoparis / theme.css
Created April 5, 2022 03:39
Discord+ w/ "FiraCode Nerd Font"
/**
* @name Discord+
* @version 3.1.1
* @author PlusInsta
* @authorLink https://plusinsta.xyz
* @description A sleek, customizable Discord theme.
* @website https://plusinsta.xyz/discord-plus/
* @source https://github.com/PlusInsta/discord-plus/blob/master/DiscordPlus-source.theme.css
* @invite 2Jwh2nS
*/
@theoparis
theoparis / conventional-commits.md
Created April 27, 2022 05:16
Conventional commits

The most important prefixes you should have in mind are:

  • fix: which represents bug fixes, and correlates to a SemVer patch.
  • feat: which represents a new feature, and correlates to a SemVer minor.
  • feat!:, or fix!:, refactor!:, etc., which represent a breaking change (indicated by the !) and will result in a SemVer major.

Multiple Changes

@theoparis
theoparis / App.svelte
Last active May 13, 2022 23:35
svelte + windicss template for login page
<main class="flex flex-col items-center w-full min-h-screen bg-gray-700">
<header class="flex flex-col p-4 mb-12 w-full bg-gray-800">
<h1 class="text-4xl text-gray-100 text-center mb-4 font-bold">
template
</h1>
<p class="text-lg text-gray-100 text-center">
yet another tailwind template
</p>
</header>
<h2 class="text-3xl text-gray-100 text-center mb-4">Login</h2>
@theoparis
theoparis / log.txt
Created May 14, 2022 22:23
Arcanus + computercraft + create mod crash :(
Time: 5/14/22, 3:18 PM
Description: Initializing game
java.lang.RuntimeException: Could not execute entrypoint stage 'main' due to errors, provided by 'porting_lib'!
at org.quiltmc.loader.impl.entrypoint.EntrypointUtils.lambda$invoke0$2(EntrypointUtils.java:62)
at org.quiltmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
at org.quiltmc.loader.impl.entrypoint.EntrypointUtils.invoke0(EntrypointUtils.java:60)
at org.quiltmc.loader.impl.entrypoint.EntrypointUtils.invokeContainer(EntrypointUtils.java:45)
at org.quiltmc.loader.impl.entrypoint.EntrypointUtils.invoke(EntrypointUtils.java:32)
at org.quiltmc.loader.impl.game.minecraft.Hooks.startClient(Hooks.java:52)
@theoparis
theoparis / Cargo.toml
Created May 16, 2022 09:46
Bevy voxel test
[package]
name = "mc-rust"
version = "0.0.1"
authors = ["Theo Paris <[email protected]>"]
edition = "2021"
license = "MIT"
description = "An open source minecraft like voxel world game using rust bevy engine"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@theoparis
theoparis / build-kernel.sh
Created June 3, 2022 23:11
Raspberry pi kernel build script
#!/bin/bash
# https://forums.raspberrypi.com/viewtopic.php?t=330358
trap '{ stty sane; echo ""; errexit "Aborted"; }' SIGINT SIGTERM
CONFIG1="Raspberry Pi 1, Zero and Zero W, and Raspberry Pi Compute Module 1 (32-bit)"
CONFIG2="Raspberry Pi 2, 3, 3+ and Zero 2 W, and Raspberry Pi Compute Modules 3 and 3+ (32-bit)"
CONFIG3="Raspberry Pi 4 and 400, and Raspberry Pi Compute Module 4 (32-bit)"
CONFIG4="Raspberry Pi 3, 3+, 4, 400 and Zero 2 W, and Raspberry Pi Compute Modules 3, 3+ and 4 (64-bit)"