- Jammy 22.04 LTS
- https://cdimage.ubuntu.com/jammy/daily-live/current
CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 15:02:17 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"532f52d52ccc1251f32a26c0a73e220e"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=98CVrQtSfshthVDQdAJlNKoI%2B0caFhsWP0ncWZyuYXqcPA897c8Cp3Z4%2FDu%2F%2FRXSocOwbi%2BXFL7s0zntShka1kmMEXqoVte0I7ZwD8qNzS8CpoggzMHRIAT7x52zvLg3MxeMTFmUeL1d2uIXgeMSISHhDQmADY2xyUMGgh3B60Prjp5pAVnPmhHRFH%2B%2Fqfw1qrKMI4kkcZirWKpHDQfPVCSsIV2kJ8u6MLeI0Pp2VjGl5i4NyWZ7V0Ri8tcDeL995Kk4VbDuHzWWw0iv3mCBMA%3D%3D--CLAVVZzAQQPikzFW--Z7ZObVe%2BvrqXFkMe5zY%2BzQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1844245150.1753455736; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 15:02:16 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 15:02:16 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: BD88:1478E2:80A71:97D70:68839C78
prehensilecode’s gists · GitHub
View GitHub Profile
{{ message }}
Instantly share code, notes, and snippets.
Former physicist, current HPC technical director.
prehensilecode
/ trumpet_visualizer.py
Created
June 30, 2025 20:01
stand-up maths' trumpet visualizer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import plotly.graph_objects as go | |
from dash import Dash, dcc, html, Input, Output, State | |
import dash_bootstrap_components as dbc | |
from flask_caching import Cache | |
external_stylesheets = [dbc.themes.SOLAR] | |
app = Dash(__name__, external_stylesheets=external_stylesheets) | |
server = app.server |
prehensilecode
/ apple_epub_to_std_epub.sh
Last active
June 21, 2025 16:11
Convert single Apple epub to standard epub
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Based on: https://www.reddit.com/r/Calibre/comments/dza1zi/comment/lxz97q5/ | |
# Except this just does a single Apple epub, which is a directory (folder); | |
# loop over it to do a directory. | |
# WARNING: DOES NOT HANDLE BOOKS WITH DRM | |
# Downloaded Apple Books books are in: | |
# ~/Library/Containers/com.apple.BKAgentService/Data/Documents/iBooks/Books | |
# Books in iCloud are in: | |
# ~/Library/Mobile Documents/iCloud~com~apple~iBooks/Documents |
prehensilecode
/ reinstall_pip_pkgs.sh
Last active
April 18, 2025 00:54
Re-install all pip packages retaining the same version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# tested on pip 25.0.1 | |
# XXX this is probably not a good idea | |
for pkg in $( python3 -m pip list | tail -n+3 | awk '{print $1 "==" $2}' ) | |
do | |
python3 -m pip install -U --force-reinstall "${pkg}" | |
done |
prehensilecode
/ kindle_bulk_download.js
Last active
February 21, 2025 20:02
— forked from lfhbento/userscript.js
Download all your Kindle books before Feb 26, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Kindle Download | |
// @namespace https://tampermonkey.net/ | |
// @version 2025-02-20 | |
// @description Download all your kindle books | |
// @author You | |
// @match https://www.amazon.com/hz/mycd/digital-console/contentlist/booksAll/dateDsc/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=amazon.com | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bootstrap: debootstrap | |
OSversion: focal | |
MirrorURL: https://us.archive.ubuntu.com/ubuntu/ | |
%environment | |
export FSLDIR="/usr/local/fsl" | |
export DEBIAN_FRONTEND="noninteractive" | |
export LANG="en_US.UTF-8" | |
%post |
prehensilecode
/ remove_nvidia_from_initramfs.sh
Created
December 2, 2024 15:23
Remove Nvidia & Nouveau kernel modules from initramfs and make persistent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Removes both nvidia and nouveau drivers from initramfs and rebuilds them. | |
export PATH=/bin:/usr/bin:/sbin:/usr/sbin | |
if [[ $( id -u ) -ne 0 ]] | |
then | |
echo "This must be run as root" | |
exit 1 | |
else | |
kernelversion=$(uname -r) |
prehensilecode
/ ubuntu_on_apple_silicon.md
Created
September 10, 2024 00:36
Ubuntu on Apple Silicon or ARM64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3.6 | |
# Author: David Chin david.chin@pennmedicine.upenn.edu | |
import sys | |
import os | |
import shlex | |
import subprocess | |
import argparse | |
import datetime | |
import calendar | |
from pathlib import Path |
prehensilecode
/ tunnel_to_cluster_node_mgmt_port.md
Last active
March 6, 2024 16:32
Tunnel to cluster node XCC or DRAC
Set up tunnel:
ssh -L 1443:clusternode-xcc:443 adminuser@adminhost
Then, run web browser on PC connecting to
https://localhost:1443
NewerOlder
You can’t perform that action at this time.