This file contains 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 | |
# chromeos_docker.sh | |
# Usage: | |
# chromeos_docker.sh recoveryfileurl name milestone arch | |
# or if image.bin already exists this works too: | |
# chromeos_docker.sh dummy name milestone arch | |
# (Default is not to delete the image after download.) | |
# e.g. | |
# Example for x86_64: | |
# chromeos_docker.sh https://dl.google.com/dl/edgedl/chromeos/recovery/chromeos_13505.73.0_nocturne_recovery_stable-channel_mp.bin.zip nocturne 87 x86_64 |
This file contains 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 | |
# arch2crew | |
# Script to help with creating Chromebrew package files from Arch Linux PKGBUILD files | |
# Assumes rubocop is installed via "gem install rubocop" | |
# Usage: arch2crew <Arch Linux package name> | |
# Satadru Pramanik <satadru@gmail.com> | |
# | |
archpkgname="${1}" | |
# Initial setup |
This file contains 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/sh | |
#make sure the directory for the python libraries is in the chroot | |
mkdir -p /var/unbound/usr/local/lib/python2.7 | |
#link the actual python library directory to the chroot's directory | |
mount -t nullfs /usr/local/lib/python2.7 /var/unbound/usr/local/lib/python2.7 | |
#copy the python script to the /var/unbound directory so | |
#unbound-checkconf can find it |
This file contains 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
require 'package' | |
class Llvm < Package | |
description 'The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. The optional packages clang, lld, lldb, polly, compiler-rt, libcxx, libcxxabi and openmp are included.' | |
homepage 'http://llvm.org/' | |
version '11.0.1-rc2' | |
compatibility 'all' | |
source_url 'https://github.com/llvm/llvm-project/archive/llvmorg-11.0.1-rc2.tar.gz' | |
source_sha256 'c217780b9903eabf0fdb8ed227ae50b623d3f82afb9ac36beffbc81acbc6ff6c' |
This file contains 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
require 'package' | |
class Sommelier < Package | |
description 'Sommelier works by redirecting X11 and Wayland programs to the built-in ChromeOS wayland server.' | |
homepage 'https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/vm_tools/sommelier/' | |
version '2237607' | |
compatibility 'all' | |
source_url 'https://chromium-review.googlesource.com/changes/chromiumos%2Fplatform2~2237607/revisions/10/patch?zip&path=%2FCOMMIT_MSG' | |
source_sha256 '0dda9635fe947383e0a4abc573a289acbd81e07115dbb1aaafcc7f3b85a35d6a' |
This file contains 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 | |
# ***Note*** You need machinectl installed. | |
# This can be found in the systemd-container package on Ubuntu! | |
# | |
# Place this nvidia-wallpaper-restore-on-resume.sh script in /lib/systemd/system-sleep/ | |
# Then run: sudo chmod +x /lib/systemd/system-sleep/nvidia-wallpaper-restore-on-resume.sh | |
# | |
# This works around the wallpaper corruption on resume from suspend with Nvidia GPUs | |
# reported at https://gitlab.gnome.org/GNOME/gnome-shell/issues/1084 | |
# and due to this feature of the Nvidia driver: |
This file contains 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 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
hdiutil attach /Applications/Install\ OS\ X\ Mavericks.app/Contents/SharedSupport/InstallESD.dmg | |
cd /tmp | |
hdiutil convert /Volumes/OS\ X\ Install\ ESD/BaseSystem.dmg -format UDRW -o /tmp/RWBase | |
hdiutil convert -format UDSP -o /tmp/sparseRWBase RWBase.dmg | |
rm /tmp/RWBase.dmg | |
hdiutil resize -size 6g /tmp/sparseRWBase.sparseimage | |
hdiutil attach -owners on /tmp/sparseRWBase.sparseimage -shadow | |
sudo rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages | |
sudo ditto /Volumes/OS\ X\ Install\ ESD/Packages /Volumes/OS\ X\ Base\ System/System/Installation/Packages | |
hdiutil eject /Volumes/OS\ X\ Install\ ESD/ |
This file contains 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 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 |