Skip to content

Instantly share code, notes, and snippets.

View AlphaTechnolog's full-sized avatar

Franklin Gabriel Guerra AlphaTechnolog

View GitHub Profile
@theoparis
theoparis / emerge.py
Last active October 13, 2024 10:21
Send emerge output from gentoo portage to a custom discord status
from sh import tail
import json
import requests
import os
import re
import time
token = os.environ.get("DISCORD_TOKEN")
for text in tail("-f", "/var/log/emerge.log", _iter=True):
@sainnhe
sainnhe / sonokai-alacritty.md
Created January 24, 2022 07:40
Port of sonokai color scheme to alacritty

Installation

Add this to ~/.config/alacritty/alacritty.yml

default

colors:
  primary:
    background: "0x2c2e34"
@AlphaTechnolog
AlphaTechnolog / monokai-pro-alacritty.yaml
Created September 2, 2021 19:17
alacritty monokai pro theme
colors:
# Default colors
primary:
background: '0x2D2A2E'
foreground: '0xfff1f3'
# Normal colors
normal:
black: '0x2c2525'
red: '0xfd6883'
@AlphaTechnolog
AlphaTechnolog / diamond.py
Created April 28, 2021 16:00
Python curses diamond screensaver
import curses
import asyncio
from random import randint
from typing import Callable
async def realmain(stdscr: Callable, x_movement: int, y_movement: int):
curses.noecho()
curses.cbreak()
@bashelled
bashelled / install-arch-without-pacstrap.md
Last active September 29, 2023 11:48
Some tutorial on how to pacstrap Arch Linux without pacstrap.

Installing Arch without pacstrap is easy. No, you won't use archbootstrap. That is only for chroots. Instead, you will do it hand made.

First, make the file system.

mkdir -m 0755 -p /path/to/root/var/{cache/pacman/pkg,lib/pacman,log} /path/to/root/{dev,run,etc/pacman.d}
mkdir -m 1777 -p /path/to/root/tmp
mkdir -m 0555 -p /path/to/root/{sys,proc}
cp -a /etc/pacman.d/gnupg "/path/to/root/etc/pacman.d/"

Everforest - Alacritty

In ~/.config/alacritty/alacritty.yml:

# Define
schemes:
  everforest_dark_hard: &everforest_dark_hard
    primary:
      background: '#272e33'
@agoose77
agoose77 / ayu-mirage.yaml
Last active January 20, 2025 09:39
Alacritty ayu-mirage theme
colors:
# Default colors
primary:
background: '#1f2430'
foreground: '#cbccc6'
bright_foreground: '#f28779'
# Normal colors
normal:
black: '#212733' #
@591342534
591342534 / SimpleHTTPServerWithUpload.py
Created May 27, 2019 08:13 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""