Skip to content

Instantly share code, notes, and snippets.

View Trivoz's full-sized avatar
🧬
Experimenting with Helix

Trivoz

🧬
Experimenting with Helix
  • Student
  • Sydney, Australia
  • 13:33 (UTC +10:00)
View GitHub Profile
@Trivoz
Trivoz / bashrc
Created February 6, 2024 04:59
My bash rc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@Trivoz
Trivoz / aliases
Created February 6, 2024 04:47
My bash aliases (and zsh aliases since it works for that as well)
# cargo
alias c=cargo
alias cr='cargo run'
alias cf='cargo fmt'
alias cn='cargo new'
alias cc='cargo check'
alias ct='cargo test'
alias ca='cargo add'
alias cdo='cargo d --open'
alias cb='cargo build'
@Trivoz
Trivoz / .vimrc
Created February 6, 2024 04:12
My latest (as of February 6) vimrc configuration
if &compatible
finish
endif
if has('autocmd')
filetype plugin indent on
endif
if has('syntax') && !exists('g:syntax_on')
syntax enable
endif
@Trivoz
Trivoz / do_linux.md
Created December 7, 2023 01:43
my linux workflow

Doing Linux


Table of Contents

  • Dots! (aka dotfiles)
@Trivoz
Trivoz / install_guide.md
Created April 5, 2023 02:46
Arch Linux Installation for Beginners

Arch Rice

This file is meant to be a guide for me (and anyone else) that can just simply install something that looks decent with minimal effort. A lot of the stuff I see nowdays isn't that well layed out (apart from the actual arch docs) but even then, the documentation couldn't possibly format (into a simple, consise manner) the great amount of errors and edge cases one might encounter when trying to follow a step. Unfortunately this guide doesn't cover that either, as that would take me... years? Dedcades? Probably a really long time.

But nonetheless, this guide is for myself and suits my needs but contributions are welcome.

Installation

This part is 1/2 of the installation when it comes to this sort of setup. This installation component should cover essentially

@Trivoz
Trivoz / stuff
Created April 4, 2023 05:35
stuff
During the class, we collaborated as a group to brainstorm the habits of successful individuals. We also got to know each other by sharing our names and hobbies. Afterwards, we reported our findings to the instructor within the given time frame. The course covered the fundamentals of engineering, its importance, and the specific area of expertise of our lecturer, Dr. Lalbakhsh, which is radio and telecommunications engineering. The session also included a tutorial on navigating the online portal and a ten-minute break. We were informed that a substitute teacher would be taking tomorrow's lesson. Additionally, we learned that there would be three group assignments worth 50% of our grade, and the significance of having strong communication skills as an engineer. The instructor emphasized that the first half-hour of the class was crucial, and it's acceptable to arrive up to five minutes late. We also discovered how to navigate to Woodsville Road using Google Maps when Edwards' phone guided us. Overall, it was an
@Trivoz
Trivoz / template.tex
Created March 28, 2023 03:18
Template
\documentclass[a4paper,14pt,oneside,openany]{memoir}
\usepackage[left=30mm, right=15mm, top=20mm, bottom=20mm]{geometry}
\pagestyle{plain}
\parindent=1.25cm
\usepackage{indentfirst}
\usepackage[english]{babel}
\setsecnumdepth{subsection}
@Trivoz
Trivoz / title.txt
Created January 4, 2023 09:04
text
___ ___ _ _
| \/ | | | (_)
| . . | ___ _ _ _ __ | |_ __ _ _ _ __ ___
| |\/| |/ _ \| | | | '_ \| __/ _` | | '_ \/ __|
| | | | (_) | |_| | | | | || (_| | | | | \__ \
\_| |_/\___/ \__,_|_| |_|\__\__,_|_|_| |_|___/
@Trivoz
Trivoz / mountains.txt
Created January 4, 2023 08:49
Ascii art of some mountains
/\
/**\
/****\ /\
/ \ /**\
/ /\ / \ /\ /\ /\ /\ /\/\/\ /\
/ / \ / \ / \/\/ \/ \ /\/ \/\ /\ /\/ / / \/ \
/ / \/ /\ \ / \ \ / \/ / / \/ \/ \ / \ \
/ / \/ \/\ \ / \ / / \
__/__/_______/___/__\___\__________________________________________________
@Trivoz
Trivoz / main.js
Created January 3, 2023 06:09
Javascript canvas template
function randint(a=0, b) {
/* Return random whole number between a and b */
return Math.floor(Math.random() * (b - a + 1)) + a;
}
function choice(list) {
/* Return positive integer to index list */
index = Math.abs(Math.floor(Math.random() * (list.length - 0 + 1)) - 1);
return list[index];
}