Skip to content

Instantly share code, notes, and snippets.

View AlphaTechnolog's full-sized avatar

Gabriel Guerra AlphaTechnolog

View GitHub Profile
@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 March 27, 2022 21:21
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.
"""
@rkuslak
rkuslak / GithubMonokai.js
Last active September 2, 2021 19:19
Github Monokai
// ==UserScript==
// @name GitHub PRE Themer
// @version 1
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
@ps1dr3x
ps1dr3x / xset-led-wayland.sh
Created October 26, 2018 17:44
Turn on keyboard backlight/leds on wayland (xset led 3 alternative)
# "input0::scrolllock" might be different (?)
# On
sudo sh -c 'echo 1 > /sys/class/leds/input0::scrolllock/brightness'
# Off
# sudo sh -c 'echo 0 > /sys/class/leds/input0::scrolllock/brightness'