Skip to content

Instantly share code, notes, and snippets.

View hewittc's full-sized avatar

Christopher Hewitt hewittc

View GitHub Profile
@mkettn
mkettn / vivado
Last active April 17, 2025 13:15
run vivado 2017.2 on linux with hidpi monitor and a tiling wm, also pass thru any arguments given, and set the current working dir to /tmp/vivado2017, hence it doesn't create various files in the current working dir. this is by far the most sane configuration i can come up with.
#!/bin/bash
VIVADO_PATH=/opt/Xilinx/Vivado/2017.2
VIVADO_TMP_DIR=`mktemp -d /tmp/vivado2017.2.XXXX`
export J2D_D3D=false
export _JAVA_OPTIONS="-Dsun.java2d.dpiaware=true -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dsun.java2d.xrender=true"
export SWT_GTK3=0
wmname LG3
source $VIVADO_PATH/settings64.sh
@dm0-
dm0- / kernel-small.md
Last active July 30, 2019 19:53
Build a modified CoreOS kernel (no initramfs modules; X260 driver notes)

Download and start the CoreOS development image in a container. Make sure to bind writable directories over the kernel's build and install paths.

wget 'http://alpha.release.core-os.net/amd64-usr/current/coreos_developer_container.bin.bz2'
bzcat coreos_developer_container.bin.bz2 > coreos_developer_container.bin
mkdir boot modules src
sudo systemd-nspawn \
    --bind="$PWD/boot:/boot" \
    --bind="$PWD/modules:/lib/modules" \

--bind="$PWD/src:/usr/src" \