Skip to content

Instantly share code, notes, and snippets.

View larshb's full-sized avatar
🏎️

Lars Henrik Bolstad larshb

🏎️
View GitHub Profile
@larshb
larshb / raw2bmp.py
Last active October 12, 2018 14:15
A simple python script to convert a raw binary coded image into a bitmap file. (applying metadata to a header)
import struct
# Filenames
IFILE = "raw.bsq"
OFILE = IFILE + ".bmp"
# Image dimensions
NX = 512
NY = 2000
@larshb
larshb / ntnu_venus.xw32
Created January 31, 2018 15:14
X-Win32 session script for connecting to NTNU's Venus cluster and opening a browser window
<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>