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
<Session> | |
<HideOnStart>false</HideOnStart> | |
<Module>ssh</Module> | |
<Name>Venus Browse</Name> | |
<NewInstance>never</NewInstance> | |
<Settings> | |
<Command>nautilus --no-desktop --browser</Command> | |
<Host>venus.tele.ntnu.no</Host> | |
<UseCompression>true</UseCompression> | |
</Settings> |
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 struct | |
# Filenames | |
IFILE = "raw.bsq" | |
OFILE = IFILE + ".bmp" | |
# Image dimensions | |
NX = 512 | |
NY = 2000 |
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
#/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 |
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
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): |
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
# 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 |
A simple script to parse your ancestry in a compact raw-text format.
Prerequisite: Python GEDCOM Parser
pip install python-gedcom
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
''' | |
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) |
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
Show hidden characters
{ | |
"log_ext": [ ".log", ".rpt" ], | |
"severity" : { | |
"error" : { | |
"enable" : true, | |
"summary" : true, | |
"pattern" : [ | |
[ "^Error-\\[", "^\\s*[\\n]" ], // Error-[ ~ next empty line (multi-line) |
OlderNewer