Skip to content

Instantly share code, notes, and snippets.

@manfromth3m0oN
manfromth3m0oN / init.el
Last active June 1, 2024 15:24
Emacs Config
;; turn off the extra ui
(tool-bar-mode -1)
(scroll-bar-mode -1)
(setq inhibit-splash-screen t)
(setq use-file-dialog nil)
(setq default-frame-alist '((undecorated . t)))
;; make sure things work at work
;;(setq url-http-proxy-basic-auth-storage
;; (list (list "PROXY HOST"
@manfromth3m0oN
manfromth3m0oN / Dockerfile
Created September 11, 2023 14:55
Playwright Go Docker image
FROM debian:bookworm
RUN apt-get update
RUN apt-get upgrade
RUN apt-get install -y golang ca-certificates
RUN go run github.com/playwright-community/playwright-go/cmd/playwright@latest install --with-deps
@manfromth3m0oN
manfromth3m0oN / coverage.sh
Created May 2, 2023 14:41
Markdown Wordcount Script
#!/bin/bash
if [ $(uname -s) == "Linux" ]
then
sed=sed
elif [ $(uname -s) == "Darwin" ]
then
sed=gsed
fi
$sed '/^```/,/^```/d' | $sed 's/#\+ //g;s/\\\w\+\({\w\+}\)\?//g;s/\[\w\]//g;s/{[[:digit:]]\.[[:digit:]]\(cm\)\?}//g;s/!\[\w\+\](\w\+)//g;s/!\[[A-Z a-z]\+\].\+//g;/^[[:space:]]*$/d;/`*\+`/d' | tr -d "{}|-()[]!:>"
@manfromth3m0oN
manfromth3m0oN / config.el
Created March 1, 2023 17:02
Doom Emacs Config
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!
;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets. It is optional.
(setq user-full-name "Max S-T"
user-mail-address "maxstantay@gmail.com")
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!
;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets. It is optional.
(setq user-full-name "Max S-T"
user-mail-address "maxstantay@gmail.com")
@manfromth3m0oN
manfromth3m0oN / wordcount.sh
Created May 23, 2022 08:15
Markdown Wordcount Bash
sed '/^```/,/^```/d' | sed 's/#\+ //g;s/\\\w\+\({\w\+}\)\?//g;s/\[\w\]//g;s/{[[:digit:]]\.[[:digit:]]\(cm\)\?}//g;s/!\[\w\+\](\w\+)//g;s/!\[[A-Z a-z]\+\].\+//g;/^[[:space:]]*$/d;/`*\+`/d' | tr -d "{}|-()[]!:>" | wc -l
@manfromth3m0oN
manfromth3m0oN / main.rs
Created March 23, 2022 23:00
macro rules
use yew::prelude::*;
#[function_component(Navbar)]
fn child() -> Html {
return html! { "I am a child" };
}
macro_rules! todo_view {
($function:ident => $name:ident) => {
#[function_component($name)]
@manfromth3m0oN
manfromth3m0oN / tips.md
Last active September 10, 2021 14:40
Max's Tips

Some quick tips if you need a hand

Contents

Shell stuff

These videos should get you up to speed with the shell if you feel you are struggling.

@manfromth3m0oN
manfromth3m0oN / foot.ini
Created September 1, 2021 14:09
foot config
# -*- conf -*-
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
term=xterm-256color #(or xterm-256color if built with -Dterminfo=disabled)
# login-shell=no
font=Tamzen:size=15
# font-bold=<bold variant of regular font>
# font-italic=<italic variant of regular font>
# font-bold-italic=<bold+italic variant of regular font>
@manfromth3m0oN
manfromth3m0oN / init
Created September 1, 2021 14:07
river init
#!/bin/sh
##############################
# Startup commands #
##############################
swaybg -i $HOME/pics/bg/womaninfield.jpg &
#############################