Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View PThorpe92's full-sized avatar
💭
🦀

Preston Thorpe PThorpe92

💭
🦀
View GitHub Profile
@PThorpe92
PThorpe92 / volunteering.md
Last active February 17, 2024 19:11
volunteer

Beginner:

  • Intro to CLI tools, coreutils, shells, and advantages of the terminal.
  • Basic introduction to Computer Science, CPU's, turing machines, binary etc.
  • Introduction to Open Source and Github.

Intermediate:

  • Introduction to Functional Programming (can be language agnostic).
  • Introduction to C programming + memory management.
  • Developer environment efficiency (vim, tmux, tiling window mgmt), effective terminal workflow.
  • Back-end/API design best pracices. (language agnostic)
@PThorpe92
PThorpe92 / default-theme.yml
Created February 5, 2024 01:47
eza color theme defaul yml file
colourful: true
filekinds:
normal:
foreground: null
background: null
is_bold: false
is_dimmed: false
is_italic: false
is_underline: false
is_blink: false
@PThorpe92
PThorpe92 / Dockerfile
Created January 26, 2024 04:16
Dockerfile for static musl builds for Rust programs to run on scratch 7mb container
FROM rust:slim as builder
RUN apt-get update && apt-get install -y libpq-dev libssl-dev pkg-config musl-tools perl make && rm -rf /var/lib/apt/lists/*
RUN export OPENSSL_STATIC=1
RUN export OPENSSL_NO_VENDOR=Y
RUN rustup target add x86_64-unknown-linux-musl
WORKDIR /app
COPY . /app
RUN cargo build --release --target x86_64-unknown-linux-musl
RUN strip /app/target/x86_64-unknown-linux-musl/release/bt_postgres_test
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "#98C379",
"style": "plain",
"template": "\u279c",
@PThorpe92
PThorpe92 / eza_commits.md
Created August 20, 2023 15:18
eza_commits

Examples

  • feat: add column selection
  • fix(output): fix width issue with columns
  • test(fs): add tests for filesystem metadata
  • feat!: breaking change / feat(config)!: implement config file
  • chore(deps): update dependencies

Commit types

@PThorpe92
PThorpe92 / my.cnf
Created August 12, 2023 19:14
default my.cnf for xampp linux installation
# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.