Skip to content

Instantly share code, notes, and snippets.

View essingen123's full-sized avatar
😀

Karl Lindberg & Kilian Güntner essingen123

😀
View GitHub Profile
@essingen123
essingen123 / index.md
Created November 11, 2023 18:18 — forked from ericandrewlewis/index.md
Set up an Ubuntu Web Server on an Intel Nuc, steps and code snippets
@essingen123
essingen123 / cpumonitor.py
Created August 1, 2023 01:41
Script for displaying some cpu and memory usage on a mac, may work on other OS:es too
#!/usr/bin/env python3
import os
import time
from collections import deque
# Check if required libraries are installed. If not, install them.
libraries = {
"psutil": "psutil",
"curses": "windows-curses" if os.name == "nt" else "curses"
}
@essingen123
essingen123 / envkeywordfinder.py
Created July 31, 2023 17:08
Script for finding keywords in shell configurations for mac, useful when looking for a keyword alias for example
import os
def search_keyword_in_file(file_path, keyword):
findings = []
with open(file_path, 'r', errors='ignore') as file:
lines = file.readlines()
for idx, line in enumerate(lines, start=1):
if keyword.lower() in line.lower():
findings.append((idx, line.strip()))
return findings
@essingen123
essingen123 / gitlab-fox-animated-logo.markdown
Created October 16, 2019 10:30
GitLab Fox: Animated Logo
@essingen123
essingen123 / canvas-sparkle-light-trail.markdown
Created October 2, 2019 16:46
Canvas Sparkle Light Trail
@essingen123
essingen123 / index.html
Last active October 2, 2019 15:57
Infinity and beyond unicorns in Animation spin le Circle text with SVG
<div id="container">
<div id="circle">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="300px" height="300px" viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve">
<defs>
<path id="circlePath" d=" M 150, 150 m -60, 0 a 60,60 0 0,1 120,0 a 60,60 0 0,1 -120,0 "/>
</defs>
<circle cx="150" cy="100" r="75" fill="none"/>
<g>
<use xlink:href="#circlePath" fill="none"/>
<text fill="#f8f8f8">
@essingen123
essingen123 / index.html
Created October 2, 2019 15:56
nested simulations
<canvas></canvas>
<!-- Click to generate a new image -->
<canvas></canvas>
<!-- Click to generate a new image -->