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 -ex | |
git_branch="v1.3-patch" | |
git_base="https://github.com/rstudio/rstudio" | |
QT_VERSION=5.15.0 | |
now=$(date +"%m%d%Y%H%M") | |
#docker build --pull --no-cache -f Dockerfile.focal-amd64 -t rstudio:focal-amd64 . | |
# following from https://stackoverflow.com/a/246128 | |
SOURCE="${BASH_SOURCE[0]}" | |
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink | |
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )" |
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
#!/sbin/sh | |
# | |
# ADDOND_VERSION=2 | |
# | |
# /system/addon.d/70-gapps.sh | |
# | |
. /tmp/backuptool.functions | |
if [ -z $backuptool_ab ]; then | |
SYS=$S |
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
diff -Npaur a/config/kernel-inode-times.m4 b/config/kernel-inode-times.m4 | |
--- a/config/kernel-inode-times.m4 2020-01-22 16:49:01.000000000 -0500 | |
+++ b/config/kernel-inode-times.m4 2020-02-27 12:40:52.273139053 -0500 | |
@@ -1,8 +1,22 @@ | |
-dnl # | |
-dnl # 4.18 API change | |
-dnl # i_atime, i_mtime, and i_ctime changed from timespec to timespec64. | |
-dnl # | |
AC_DEFUN([ZFS_AC_KERNEL_SRC_INODE_TIMES], [ | |
+ |
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 -x | |
workdir="${HOME}/workdir" | |
[[ ! -d "$workdir" ]] && ( mkdir -p "$workdir" || exit 1) | |
[[ ! -d "$workdir"/tmp ]] && ( mkdir -p "$workdir"/tmp || exit 1) | |
[[ ! -d "$workdir"/output ]] && ( mkdir -p "$workdir"/output || exit 1) | |
echo "workdir is ${workdir}" | |
tmpdir=$(mktemp -d deb_XXXX -p "$workdir"/tmp) | |
deb_temp=${tmpdir}/deb | |
extract_tmp=${tmpdir}/extract |
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/python3 | |
# Sets volumes for all Google home device on the local network programmatically. | |
# Adapted from script at https://pastebin.com/ke3Z65pm | |
# from this discussion by reddit user Mjjjjjjjjjjjjjjjj | |
# https://www.reddit.com/r/googlehome/comments/8b0b4o/python_script_to_manage_the_volume_of_multiple/ | |
# | |
from __future__ import print_function | |
import time | |
import sys |
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 | |
echo "* Disabling any non-vmlinuz kernel lines" | |
echo " in /boot/firmware/config.txt ." | |
sed -i -E '/(^kernel=vmlinuz)/!s/^kernel=/#kernel=/g' /boot/firmware/config.txt | |
echo "* Adding line to use the rpi bootloader to load the kernel" | |
echo " in /boot/firmware/config.txt ." | |
if ! grep -qs '^kernel=vmlinuz' /boot/firmware/config.txt | |
then echo "kernel=vmlinuz" >> /boot/firmware/config.txt | |
fi | |
echo "* Adding line to use the rpi bootloader to load the initrd" |
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 | |
for f in `sudo zfs list -H| awk '{print $1}'`; do sudo zfs set overlay=on "$f" ; 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
#!/bin/bash -e | |
#export PS4='+(${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' | |
# Place in /usr/local/sbin/mount_zfs.sh | |
USAGE="Usage: $0 zpool1 zpool2 zpool3 ... zpoolN" | |
MOUNTATTEMPTS=50 | |
COUNTER=1 | |
if [ "$#" == "0" ]; then | |
echo "$USAGE" | |
exit 0 |
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 -ex | |
# Hack to add user USERDATA zpool to an Ubuntu 19.10 system. | |
# I have this at /usr/local/bin/zfsuseradd.sh | |
user="${1}" | |
[[ -n "$user" ]] || (echo "User not specified." && exit 1) | |
zfs_user_suffix=$(mount | grep rpool/USERDATA/root_ | awk '{print $1}' | sed 's/rpool\/USERDATA\/root_//') | |
[[ -n "$zfs_user_suffix" ]] || (echo "Can't get Ubuntu ZFS user suffix." && exit 1) | |
zfs_system_suffix=$(mount | grep rpool/ROOT/ubuntu_ | awk '{print $1}' | head -1 | sed 's/rpool\/ROOT\/ubuntu_//') | |
[[ -n "$zfs_system_suffix" ]] || (echo "Can't get Ubuntu ZFS system suffix." && exit 1) |
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
-v /dev:/dev --privileged | |
wget http://cdimage.ubuntu.com/ubuntu-server/daily-preinstalled/current/eoan-preinstalled-server-arm64+raspi3.img.xz | |
xzcat eoan-preinstalled-server-arm64+raspi3.img.xz > eoan-preinstalled-server-arm64+raspi4.img | |
kpartx -av eoan-preinstalled-server-arm64+raspi4.img | |
mount /dev/mapper/loop0p2 /mnt | |
mount /dev/mapper/loop0p1 /mnt/boot/firmware | |
git clone --depth=1 https://github.com/Hexxeh/rpi-firmware |