- Jammy 22.04 LTS
- https://cdimage.ubuntu.com/jammy/daily-live/current
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 |
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 |
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 http://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 |
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) |
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 [email protected] | |
import sys | |
import os | |
import shlex | |
import subprocess | |
import argparse | |
import datetime | |
import calendar | |
from pathlib import Path |
Set up tunnel:
ssh -L 1443:clusternode-xcc:443 adminuser@adminhost
Then, run web browser on PC connecting to
https://localhost:1443
Notes on building https://github.com/NCI-GDC/gdc-client
Following their instructions, get error in building lxml
Python package:
Building wheels for collected packages: lxml
Building wheel for lxml (setup.py): started
NewerOlder