Skip to content

Instantly share code, notes, and snippets.

View stuaxo's full-sized avatar
💭
 

Stuart Axon stuaxo

💭
 
View GitHub Profile
@stuaxo
stuaxo / clone-cloudfoundry-s3-to-django-media-dir.sh
Created May 20, 2020 18:28
Clone s3 bucket to local django media directory
#!/bin/bash
PROJECT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd )"
DEFAULT_MEDIA_DIR=../config/media
# You *really* want to use this via clone-site.sh so that the database matches,
# but it's up to you.
set -e
usage() {
>&2 echo 'Usage: $ clone-bucket.sh cf-app [media directory]'
@stuaxo
stuaxo / dump-cloudfoundry-db.dh
Created May 20, 2020 18:26
Dump cloudfoundry database of current site
#!/bin/bash
set -e
# software requirements:
# awk, jq, pg_dump, psql
# cloudfoundry cli (cf)
# post
# prerequisite:
# empty postgres database named invest-dev
@stuaxo
stuaxo / Recording Surface to SVG Surface.ipynb
Created February 26, 2020 23:09
Attempting to repro a bug in shoebot
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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.