A simple script to parse your ancestry in a compact raw-text format.
Prerequisite: Python GEDCOM Parser
pip install python-gedcom
@echo off | |
echo The script will create a desktop.ini file and make it and the icon file hidden. | |
echo Directory to be customized: %cd% | |
set /p name="Name (overlayed).....: " | |
set /p desc="Description (tooltip): " | |
set /p icon="Icon file (.ico).....: " | |
set /p confirmation=Ready to apply? [y]es |
import urllib.request, re | |
from pprint import pprint | |
import os | |
# Apartment codes (Finn-kode) | |
codes = [143511428, 140785196] | |
FINNROOT = "https://www.finn.no/realestate/homes/ad.html?finnkode=" | |
finnLink = lambda code : FINNROOT + str(code) |
{ | |
"log_ext": [ ".log", ".rpt" ], | |
"severity" : { | |
"error" : { | |
"enable" : true, | |
"summary" : true, | |
"pattern" : [ | |
[ "^Error-\\[", "^\\s*[\\n]" ], // Error-[ ~ next empty line (multi-line) |
''' | |
NOTE: Must be run from shell environment (eg. WSL Bash or CygWin mintty) | |
Put this script in a subdirectory of the .exe files you want to unwrap. | |
''' | |
import os | |
BINDIR = '/'.join(os.getcwd().split('/')[:-1]) # Superdirectory | |
print("Unwrapping " + BINDIR) |
A simple script to parse your ancestry in a compact raw-text format.
pip install python-gedcom
# Based on colorize (https://unix.stackexchange.com/a/318779) | |
awk ' | |
function color(c,s) { | |
printf("\033[%dm%s\033[0m\n",30+c,s) | |
} | |
/?/ {color(1,$0);next} | |
/M/ {color(3,$0);next} | |
{print} | |
' $1 |
from struct import * | |
class Pixel: | |
def __init__(self, byte): | |
self.r = byte[0] | |
self.g = byte[1] | |
self.b = byte[2] | |
def bytestr(self, x): | |
return "{0:0{1}X}".format(x,2) | |
def __repr__(self): |
#/bin/bash | |
# Based on https://askubuntu.com/a/279014 | |
for x in {0..8}; do | |
for i in {30..37}; do | |
for a in {40..47}; do | |
echo -ne "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0;37;40m " | |
done | |
echo |