This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # AlmaLinux 9 Paranoid Server Setup | |
| # starting from a fresh install this will: | |
| # establish a trusted ssh key login | |
| # create an admin user with sudo rights | |
| # then disable direct root login as much as possible | |
| # you should be comfortable with how ssh key authentication works before you do this | |
| # on your local cyberdeck, generate an ssh key if you haven't already |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <time.h> | |
| // "0123 456789ABCDEF"; | |
| char gradient[]=".,-=\"^!:;x+X$#&@"; | |
| static void mandel( | |
| int w, int h, | |
| float cx0, float cy0, | |
| float cx1, float cy1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| function update { | |
| errcod="$?" | |
| newPWD=${PWD/#$HOME/\~} | |
| if [ "$errcod" -eq "0" ] | |
| then | |
| unset fill errcod | |
| else | |
| errcod=" Err: $errcod" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| rem elevate -w choco install -y msys2 --params "/NoUpdate /InstallDir:C:\msys64" | |
| cd c:\msys64 | |
| if %errorlevel% neq 0 exit /b %errorlevel% | |
| rem Use windows home directory | |
| usr\bin\sed.exe -i 's/^\(db_home: \)\(cygwin.*\)$/\1windows/' etc\nsswitch.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; vi:ft=nasm | |
| cpu 8086 | |
| org 100h | |
| section .text | |
| xor bx,bx ; attrib | |
| mov cx,1 ; just one thanks | |
| .again: inc bx ; next attrib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; vi:ft=nasm | |
| cpu 8086 | |
| org 0x0 | |
| jmp start | |
| rulz db 'seg rulz ok ',0 | |
| start: cli ; disable interrupts because lolbugs | |
| mov ax,0x7c0 ; BIOS loads code at 0000:7C00 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 10 for y=-16 to 16 | |
| 20 for x=-16 to 5 | |
| 30 ca=x*.13 | |
| 40 cb=y*.075 | |
| 50 a=ca:b=cb | |
| 70 for i=0 to 94 | |
| 80 t=a*a-b*b+ca | |
| 90 b=2*a*b+cb:a=t | |
| 110 if (a*a+b*b)>4 then goto 150 | |
| 120 next i |