Skip to content

Instantly share code, notes, and snippets.

View stuaxo's full-sized avatar
💭
 

Stuart Axon stuaxo

💭
 
View GitHub Profile
@stuaxo
stuaxo / boot.log
Created December 31, 2019 01:46
dosemu log
FDPP kernel 0.1beta8 [GIT: beta-8-14-ga92a219] (compiled Oct 17 2019)
fdpp: plugin loaded
CONF: config variable parser_version_3 set
CONF: config variable c_system set
CONF: Parsing built-in dosemu.conf file.
CONF: config variable version_3_style_used set
CONF: Parsing built-in global.conf file.
CONF: config variable version_3_style_used unset
CONF: config variable version_3_style_used set
CONF: opened include file /usr/local/etc/dosemu/dosemu.conf
@stuaxo
stuaxo / cairo-manylinux.sh
Last active December 4, 2019 00:15 — forked from anntzer/cairo-manylinux.sh
manylinux build script for pycairo
#!/bin/bash
# Written by Antony Lee (@anntzer).
set -e
PYTHON_VERSION=37
PIP="/opt/python/cp$PYTHON_VERSION-cp${PYTHON_VERSION}m/bin/pip"
if ! [[ -e "$PIP" ]]; then
# Not in the manylinux image yet: call self from within docker.
docker run -it \
@stuaxo
stuaxo / Screenshot-Notepad.ipynb
Created December 7, 2018 12:17
Screenshot a single window
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stuaxo
stuaxo / dmesg-without-amdgpu.txt
Created November 23, 2018 00:03
dmesg on 4.20rc on HP Envy 15 Inch. modprobe.blacklist=amdgpu
[ 0.000000] Linux version 4.20.0-rc3 (root@Main-PC) (gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)) #1 SMP Mon Nov 19 15:18:07 CET 2018
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.20.0-rc3 root=UUID=5fbe26ec-88dd-4b0f-8e57-c577efacffc7 ro quiet splash idle=nomwait amdgpu.audio=0 amdgpu.dc=1 modprobe.blacklist=amdgpu
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'compacted' format.
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000000a0000-0x00000000000fffff] reserved
@stuaxo
stuaxo / Notebook with PNG.ipynb
Created October 3, 2018 21:27
Demonstrate inline png image
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stuaxo
stuaxo / rails.ipynb
Created May 22, 2018 16:45 — forked from l15n/rails.ipynb.json
Rails and Jupyter
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stuaxo
stuaxo / models.py
Created March 7, 2018 10:03
Wagtail FormViewPage
class FormViewPage(Page):
"""
Allow a wagtail Page to render a FormView.
"""
def __init__(self, view, *args, **kwargs):
self.view = view
Page.__init__(self, *args, **kwargs)
def serve(self, request):
"""
@stuaxo
stuaxo / cloudfoundry_python.sh
Last active July 31, 2018 14:50
Set up cloud foundry python to run interactively
vh="/home/vcap/deps/0"; for fn in $vh/env/*; do f=`basename $fn` && grep -q "/deps/0" $fn && cmd="export $f=/home/vcap$(sed "s#^/[^/]*/[^/]*##" $fn)" || cmd="export $f=$(cat $fn)" && echo $cmd; $cmd; done; export LD_LIBRARY_PATH=$LIBRARY_PATH; export PATH=$vh/bin:$PATH
# Above is a oneliner that sets environment variables to use the installed python in cloudfoundry
#
# It sets environment variables from the files in /home/vcap/deps/0/envs and strips the /tmp/contents... prefix from the paths
# It then sets the PATH and LD_LIBRARY_PATH
#
# Then you can run python and it will run the installed version.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.