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 | |
# raspios.sh | |
# Usage: | |
# REPOSITORY=YOUR_DOCKER_HUB_REPOSITORY_type raspios image_file_url debian_release type date ARCH | |
# or if img already exists this works too: | |
# raspios.sh dummy debian_release type date ARCH | |
# (Default is not to delete the image after download.) | |
# e.g. | |
# Example for arm64: | |
# ./raspios.sh https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2023-12-06/2023-12-05-raspios-bookworm-arm64-lite.img.xz bookworm lite 2023-12-06 arm64 |
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 | |
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then | |
SESSION_TYPE=remote/ssh | |
elif pstree -p | egrep --quiet --extended-regexp ".*sshd.*\($$\)"; then | |
SESSION_TYPE=remote/ssh | |
else | |
case $(ps -o comm= -p $PPID) in | |
sshd|*/sshd) SESSION_TYPE=remote/ssh;; | |
esac | |
fi |
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 | |
# Put this script into your crontab e.g. | |
# @reboot ~/bin/bounce_ipv6.sh | |
# Bounce IPv6 connection if router is up but IPv6 connectivity is down, | |
# and check the connection every 30 seconds. | |
router_address="192.168.0.1" | |
ipvsixaddress="2600::" | |
while true; | |
do | |
if ping -c1 $router_address &>/dev/null; then |
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: | |
# REPOSITORY=YOUR_DOCKER_HUB_REPOSITORY_NAME chromeos_docker.sh recovery_file_url container_name chromeos_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_13816.82.0_nocturne_recovery_stable-channel_mp.bin.zip nocturne 90 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
[Desktop Entry] | |
Version=1.0 | |
Name=Google Chrome | |
# Only KDE 4 seems to use GenericName, so we reuse the KDE strings. | |
# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413. | |
GenericName=Web Browser | |
GenericName[ar]=متصفح الشبكة | |
GenericName[bg]=Уеб браузър | |
GenericName[ca]=Navegador web | |
GenericName[cs]=WWW prohlížeč |
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
# Install build prereqs: | |
sudo apt-get install build-essential libxml2-dev libssl-dev zlib1g-dev | |
# You can extract a dmg using 7z thus: 7z x File.dmg | |
# This installs tools like lsbom to see what is inside bom files | |
git clone https://github.com/hogliux/bomutils && cd bomutils && make && sudo make install | |
# Now install xar so you can extract the pkg file | |
curl -OLf https://opensource.apple.com/tarballs/xar/xar-425.2.tar.gz | |
tar fxv xar-425.2.tar.gz | |
cd xar-425.2/xar/ | |
curl -OLf https://raw.githubusercontent.com/macports/macports-ports/master/archivers/xar/files/xar-1.8-openssl-1.1.patch |
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/env bash | |
# shellcheck disable=SC1117 | |
# Ubuntu Kernel PPA info | |
ppa_host="kernel.ubuntu.com" | |
ppa_index="/~kernel-ppa/mainline/" | |
ppa_key="17C622B0" | |
# If quiet=1 then no log messages are printed (except errors) |
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_13816.82.0_nocturne_recovery_stable-channel_mp.bin.zip nocturne 90 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
require 'package' | |
class Gcc10 < Package | |
description 'The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Ada, and Go.' | |
homepage 'https://www.gnu.org/software/gcc/' | |
version '10.3.0' | |
@isl_ver = '0.23' | |
compatibility 'all' | |
license 'GPL-3' | |
source_url 'https://gcc.gnu.org/pub/gcc/releases/gcc-10.3.0/gcc-10.3.0.tar.xz' |
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/env bash | |
# set -x | |
pkg="${1}" | |
CREW_LIB_PREFIX=$(crew const | grep CREW_LIB_PREFIX | awk -F = '{print $2}') | |
# Which packages have a needed library in CREW_LIB_PREFIX | |
# This is a subset of what crew whatprovides gives | |
whatprovidesfxn() { | |
pkgdepslcl="${1}" | |
filelcl=$(grep "$pkgdepslcl" /usr/local/etc/crew/meta/*.filelist | grep $CREW_LIB_PREFIX) |
NewerOlder