This file contains 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
colors: | |
# Default colors | |
primary: | |
background: '0x2D2A2E' | |
foreground: '0xfff1f3' | |
# Normal colors | |
normal: | |
black: '0x2c2525' | |
red: '0xfd6883' |
This file contains 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
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() |
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/"
This file contains 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
colors: | |
# Default colors | |
primary: | |
background: '#1f2430' | |
foreground: '#cbccc6' | |
bright_foreground: '#f28779' | |
# Normal colors | |
normal: | |
black: '#212733' # |
This file contains 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
#!/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. | |
""" |
This file contains 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
// ==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'); |
NewerOlder