Skip to content

Instantly share code, notes, and snippets.

View alkavan's full-sized avatar
😀
sup?

Igal Alkon alkavan

😀
sup?
View GitHub Profile
@rafi
rafi / INSTALL.md
Last active December 30, 2015 20:19
My Arch Linux installation
@justecorruptio
justecorruptio / 2048.c
Created April 4, 2014 03:49
Tiny 2048 in C!
M[16],X=16,W,k;main(){T(system("stty cbreak")
);puts(W&1?"WIN":"LOSE");}K[]={2,3,1};s(f,d,i
,j,l,P){for(i=4;i--;)for(j=k=l=0;k<4;)j<4?P=M
[w(d,i,j++)],W|=P>>11,l*P&&(f?M[w(d,i,k)]=l<<
(l==P):0,k++),l=l?P?l-P?P:0:l:P:(f?M[w(d,i,k)
]=l:0,++k,W|=2*!l,l=0);}w(d,i,j){return d?w(d
-1,j,3-i):4*i+j;}T(i){for(i=X+rand()%X;M[i%X]
*i;i--);i?M[i%X]=2<<rand()%2:0;for(W=i=0;i<4;
)s(0,i++);for(i=X,puts("\e[2J\e[H");i--;i%4||
puts(""))printf(M[i]?"%4d|":" |",M[i]);W-2
@alkavan
alkavan / ctf.cfg
Last active January 2, 2025 04:50
Install IOQUAKE3 on Rocky Linux 9.0
set sv_hostname "BewareSpace Q3 Arena (CTF)"
set sv_maxclients 12
set g_motd "mess with the best, die like the rest."
set g_forcerespawn 10
set g_gametype 4
set bot_minplayers 8
set g_spskill 3
set timelimit 15
set m1 "capturelimit 8; map q3ctf1 ; set nextmap vstr m2"
@alkavan
alkavan / rocky-linux-9_web-application-server.md
Last active April 12, 2025 07:06
Rocky Linux 9 | Web Application Server

Rocky Linux 9 | Web Application Server Installation

Notice

This cheatsheet assumes the user is knowledgeable about bare installations of virtual private servers on cloud providers and is looking for quick but comprehensive instructions.

Some trivial commands might be missed or skipped.
However, this document can also work as quick tutorial for newcomers to the RHEL eco-system.

Initial System Setup

@alkavan
alkavan / install-eggdrop-bot.md
Last active April 5, 2025 10:55
Installation instructions for the Eggdrop IRC bot.

Eggdrop IRC Bot | Install Instructions

Prepare System (as root)

Install required packages for compile:

dnf install -y wget telnet \
  automake gcc make diffutils \
  tcl-devel openssl-devel
@alkavan
alkavan / rocky-linux-9_minecraft-server.md
Last active April 28, 2025 16:08
Instructions to install Minecraft server on Rocky Linux.

Rocky Linux 9 | Minecraft Server Installation

Initial System Setup

Update system.

dnf update -y

Set your timezone.

Rocky Linux 9 | Mail Server Installation

This is a tutorial how to install your own mail server on a Rocky Linux 9 machine.

Initial System Setup

Update system.

sudo dnf update -y
@alkavan
alkavan / rocky-linux-9_openvpn-server.md
Last active April 5, 2025 10:54
Rock Linux 9 | OpenVPN Server

Rocky Linux 9 | OpenVPN Server Installation


Step 1: Enable EPEL and Install Packages

Update Fedora and install OpenVPN and Easy-RSA:

sudo dnf install -y epel-release
sudo dnf update -y
sudo dnf install -y openvpn easy-rsa