Skip to content

Instantly share code, notes, and snippets.

View helloimalemur's full-sized avatar
🦊

helloimalemur helloimalemur

🦊
View GitHub Profile
@helloimalemur
helloimalemur / email_to_sms_service_list.md
Last active February 27, 2024 00:11
Email to Text (SMS) Service List
@helloimalemur
helloimalemur / hackers_movie_quotes.txt
Last active February 22, 2024 21:50
Hackers Movie Quotes
Mess with the best, die like the rest.
There is no right and wrong. There's only fun and boring.
Spandex: it's a privilege, not a right.
The pool on the roof must have a leak.
YO THIS IS ZERO COOL!
Whoa! This isn't woodshop class?
Of all the things I've lost, I miss my mind the most.
Orwell is here now. He's livin' large. We have no names, man. No names. We are nameless!
"This is our world now. The world of the electron and the switch; the beauty of the baud. We exist without nationality, skin color, or religious bias. You wage wars, murder, cheat, lie to us and try to make us believe it's for our own good, yet we're the criminals. Yes, I am a criminal. My crime is that of curiosity. I am a hacker, and this is my manifesto." Huh? Right? Manifesto? "You may stop me, but you can't stop us all."
When I was a child, I spoke as a child, I understood as a child, I thought as a child, but when I became a man, I put away childish things. What? It's Corinthians one, chapter thirteen verse eleven.
@helloimalemur
helloimalemur / EndeavourOS_disable_sleep.md
Created February 11, 2024 17:18
EndeavourOS disable sleep
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
@helloimalemur
helloimalemur / react_iter_array.md
Created January 27, 2024 08:02
React Iter Array

You can just use map within the components render method.

render () {
   return (
       <div>
           {stations.map(station => <div key={station}> {station} </div>)} 
       </div>
 );
@helloimalemur
helloimalemur / byomysql.sh
Last active January 22, 2024 17:45
Docker - MariaDB - Bring your own SQL server
## Bring your own SQL server;
export DOCKER_MARIADB_DBHOST="127.0.0.1";
export DOCKER_MARIADB_DBPORT="3306";
export DOCKER_MARIADB_DBNAME="mdb";
export DOCKER_MARIADB_DBHOSTPW="Password123!";
export DOCKER_MARIADB_DATABASE="mydatabase";
export DOCKER_MARIADB_USER="'devuser'";
export DOCKER_MARIADB_TABLE="mytable";
docker run -p "$DOCKER_MARIADB_DBHOST":"$DOCKER_MARIADB_DBPORT":"$DOCKER_MARIADB_DBPORT" --name "$DOCKER_MARIADB_DBNAME" -e MARIADB_ROOT_PASSWORD="$DOCKER_MARIADB_DBHOSTPW" -d mariadb:latest &
sleep 15s;
@helloimalemur
helloimalemur / lets_encrypt_dns_challenge.md
Created December 19, 2023 19:24
Let’s Encrypt Certificate with DNS Challenge and Namecheap

Install Let’s Encrypt Certbot

apt install certbot

Generate new certificate using Certbot

certbot certonly --manual --preferred-challenges dns -d "*.DOMAIN"

Setting DNX TXT ACME Challenge in Namecheap

@helloimalemur
helloimalemur / lets_encrypt_haproxy_certificates.md
Last active December 19, 2023 19:21
Fix Let's Encrypt Certificates for use with HAProxy
@helloimalemur
helloimalemur / mac-linux-nfs.md
Last active December 18, 2023 23:34 — forked from betweenbrain/mac-linux-nfs.md
Mac backup to Linux NFS via Time Machine

Server

apt update
apt install nfs-kernel-server
mkdir /mnt/nfs -p
chown nobody:nogroup /mnt/nfs
chmod 777 /mnt/nfs
nano /etc/exports
@helloimalemur
helloimalemur / gdb_cheat_sheet.txt
Created November 30, 2023 20:49
GDB cheat sheet
GDB commands by function - simple guide
---------------------------------------
More important commands have a (*) by them.
Startup
% gdb -help print startup help, show switches
*% gdb object normal debug
*% gdb object core core debug (must specify core file)
%% gdb object pid attach to running process
% gdb use file command to load object
@helloimalemur
helloimalemur / Default_Debian_Bullseye_Repositories.txt
Created November 15, 2023 17:00
Default Debian Bullseye Repositories
deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb http://deb.debian.org/debian bullseye-backports main contrib non-free
deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free