Skip to content

Instantly share code, notes, and snippets.

View pansapiens's full-sized avatar

Andrew Perry pansapiens

  • Melbourne, Australia
View GitHub Profile
@pansapiens
pansapiens / ollama-export.sh
Last active September 25, 2024 15:31 — forked from supersonictw/ollama-export.sh
Ollama Model Export Script
#!/bin/bash
# Ollama Model Export Script
# Usage: bash ollama-export.sh vicuna:7b
# License: MIT (https://ncurl.xyz/s/o_o6DVqIR)
# https://gist.github.com/supersonictw/f6cf5e599377132fe5e180b3d495c553
set -e
echo "Ollama Model Export Script"
echo "License: MIT (https://ncurl.xyz/s/RD0Yl5fSg)"
@pansapiens
pansapiens / appengine_leveldb2json.py
Last active July 13, 2024 05:34 — forked from xlfe/export.py
Export from Google App Engine Datastore Backup LevelDB format to JSON flat file
#!/usr/bin/env python2.7
# Export from Google App Engine Datastore Backup LevelDB format to JSON flat file
# Based on: https://gist.github.com/xlfe/af25f160256e4d52f499dee7e8fa212f
##
# 2024 instructions:
##
# Using the Google Cloud console (https://console.cloud.google.com), find "Firestore"
# and export your database to a Cloud Storage "Bucket". Download the content of the Bucket.

How to get firmware onto mutable modules

On Ubuntu 20.04.

(I have not yet tried the Black Magic Probe and gdb parts)

Install compiler

First install the arm compiler:

@pansapiens
pansapiens / Singularity.spec
Last active January 15, 2019 19:27 — forked from vsoch/Singularity.spec
A DeepVariant image for Singularity, reliant on a localimage pull of layers first
Bootstrap: localimage
From: deepvariant-0.6.1.simg
# Install Google Cloud SDK for the gcloud tool, then:
# We grab the official Docker image, push it to a locally running container repo, then get
# Singularity to pull it back.
# gcloud docker -- pull gcr.io/deepvariant-docker/deepvariant:0.6.1
# docker tag gcr.io/deepvariant-docker/deepvariant:0.6.1 localhost:5000/deepvariant:0.6.1
# docker run -d -p 5000:5000 --restart=always --name registry registry:2
# docker push localhost:5000/deepvariant:0.6.1
@pansapiens
pansapiens / install_docker.sh
Last active July 4, 2017 05:41 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
#!/usr/bin/env bash
UBUNTU_RELEASE=$(lsb_release --codename --short)
export COMPOSE_VERSION=1.8.0
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
sudo apt-get update
sudo apt-get install python-pip apt-transport-https ca-certificates
@pansapiens
pansapiens / gae_json_rest.py
Created January 27, 2010 11:22 — forked from gerad/gae_json_rest.py
turn google app engine to a big json db in the cloud
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
from django.utils import simplejson as json
from google.appengine.ext import db
import re
import pdb, sys
debugger = pdb.Pdb(stdin=sys.__stdin__, stdout=sys.__stdout__)
@pansapiens
pansapiens / ec2unifiedshell.py
Created January 20, 2010 04:45 — forked from anonymous/ec2unifiedshell.py
script to connect to all of your running EC2 instances, and to provide a single SSH prompt
#!/usr/bin/python
WhatThisIS="""
This is a hacked together script to connect to all of your running EC2 instances, and to provide a single SSH prompt amongst all of them, and to assist in uploading, splitting, and downloading files. email me at winniningham at and email server called gmail.com :P
"""
import paramiko
from numpy import *