Skip to content

Instantly share code, notes, and snippets.

View loneicewolf's full-sized avatar
🌀
..That special moment when the inevitable won't be inevitable

0AA01A0F1 loneicewolf

🌀
..That special moment when the inevitable won't be inevitable
View GitHub Profile
@loneicewolf
loneicewolf / snippets.sh
Created November 1, 2022 10:38
bash snippets - keywords/tags -- bash commands, sh,shell,snippets,one-liners
# From Adam Liss's comment
# https://stackoverflow.com/a/9387914/14346786
# Read a file using a bash script
i=0;while read l;do ((i=i+1));echo "$i:$l";done < file.txt
# alphabet
az=$(echo {a..z} | tr -d ' \n\t\v')
@loneicewolf
loneicewolf / gedit_snippet_md_dropdown_.md
Created December 27, 2022 21:15
gedit snippet dropdown markdown
<details>
<summary> ${1:Click to Expand HEADER } </summary>

${2:ENTER CONTENTS}

</details>

#### <details><summary> ${1:Click to Expand HEADER } </summary>${2:ENTER CONTENTS}</details>
@loneicewolf
loneicewolf / README.md
Last active February 3, 2024 19:17
LKM Loadable Kernel Modules in Linux

LKM - Loadable Kernel Modules in Linux

Some code taken from other sources(others repo's, gist's), sites, courses, and so on. And some code is made and/or modified by me; :warning: note - any of this is not perfect; I make this gist to some friends which asked me for some beginner lkm dev;

@loneicewolf
loneicewolf / md_footnotes.md
Created February 1, 2023 10:46
Markdown Footnotes

Title

abstract

Subtitle

Paragraph paragraph
paragraph paragraph
paragraph.

from manim import *
import string
import random
random.seed(513)
def gen_text(text = string.ascii_uppercase):
b = VGroup()
lr = None
for x in text: