Skip to content

Instantly share code, notes, and snippets.

View Avarel's full-sized avatar
🤠
Yeehaw to the Heehaw

Avarel Avarel

🤠
Yeehaw to the Heehaw
View GitHub Profile
@Avarel
Avarel / Dockerfile
Created April 13, 2023 20:13
Dockerfile for Pintos
FROM ubuntu:22.04
# Install dependencies
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install build-essential libncurses5-dev \
texinfo xz-utils libgmp-dev libmpfr-dev libmpc-dev wget \
libvirt-daemon-system libvirt-clients qemu-system-i386 curl
# Set up build environment variables
ENV SWD=/home/tools
@Avarel
Avarel / wsl2-perf.sh
Last active April 10, 2022 23:20
Installing perf and flamegraph on WSL2
# Build and install perf
# WSL2 kernel does not have linux-tools so you must build perf from the source
# Libunwind is required for flamegraph to reconstruct the call stack
# Do this in your home repository or something
apt install build-flex bison libunwind-dev libunwind8
git clone https://github.com/microsoft/WSL2-Linux-Kernel --depth 1
cd WSL2-Linux-Kernel/tools/perf
make
sudo cp perf /usr/local/bin
@Avarel
Avarel / index.pug
Created October 7, 2017 21:45
kaiper codemirror 5
main.code-box
section#kaiper-box
.code
textarea
@Avarel
Avarel / index.pug
Created August 25, 2017 21:14
Mantaro splash
mixin avatar()
img.responsive-img.circle.z-depth-3(src='https://cdn.discordapp.com/avatars/213466096718708737/1dbce9ca83454e761bdb6a482354f8c0.png?size=2048')
mixin button(link, text)
a.btn-large.z-depth-3(href=link, target='_blank')=text
mixin content()
h1 Mantaro
h2 Anime, music, moderation, and everything you might want in a customizable and stable Discord bot.
+button('https://github.com/Mantaro/MantaroBot/', 'GitHub')
:root {
--bright-accent: #0d47a1; /* #0d47a1 */
--dark-accent: #07367f; /* #07367f */
--bright-body: #202020; /* #131313 */
--dark-body: #131313; /* #101010 */
--top-bar-height: 56px; /* 56px */
--bottom-bar-height: 96px; /* 96px */
--border-radius: 3px;