Assuming macOS and an SD card presented as /dev/rdisk3:
For ARMv7 (Pi 2):
diskutil unmountDisk disk3
xzcat ubuntu-18.04.2-preinstalled-server-armhf+raspi2.img.xz | sudo dd of=/dev/rdisk3 bs=32m
| require 'formula' | |
| # Adapted from https://trac.macports.org/browser/trunk/dports/www/webkit-gtk | |
| # Tested with newer glib and libsoup than currently in homebrew (also in tap). | |
| class Webkitgtk < Formula | |
| homepage 'http://webkitgtk.org/' | |
| url 'http://webkitgtk.org/releases/webkitgtk-1.11.92.tar.xz' | |
| sha1 'dbe9053eb8a9516cff6e796a4ba463bbb14fc464' | |
| depends_on 'pkg-config' => :build |
| struct MediaItem { | |
| var duration: Int? | |
| var title: String? | |
| var urlString: String? | |
| static func parseM3U(contentsOfFile: String) -> [MediaItem]? { | |
| var mediaItems = [MediaItem]() | |
| contentsOfFile.enumerateLines({ line, stop in | |
| if line.hasPrefix("#EXTINF:") { | |
| let infoLine = line.stringByReplacingOccurrencesOfString("#EXTINF:", withString: "") |
| .host:/vmshared /mnt/vmshared fuse.vmhgfs-fuse allow_other,uid=1000,gid=1000,auto_unmount,defaults 0 0 |
| #!/bin/bash | |
| CLUSTERNAME=mycluster.mydomain | |
| NAMESPACE=default | |
| USERNAME=myclusteruser | |
| GROUPNAME=mygroup | |
| openssl genrsa -out ${USERNAME}.key 2048 | |
| CSR_FILE=$USERNAME.csr |
| #!/bin/sh | |
| # Set the macOS installer path as a variable | |
| MACOS_INSTALLER="/Applications/$(ls /Applications | grep "Install macOS")" | |
| MOUNT_POINT="$MACOS_INSTALLER/Contents/SharedSupport" | |
| echo "macOS installer is \"$MACOS_INSTALLER\"" | |
| # Set the target disk as a variable | |
| TARGET=$(diskutil info "$(bless --info --getBoot)" | awk -F':' '/Volume Name/ { print $2 }' | sed -e 's/^[[:space:]]*//') | |
| echo "Target disk is \"$TARGET\"" |
| concurrent = 4 | |
| check_interval = 0 | |
| [session_server] | |
| session_timeout = 1800 | |
| [[runners]] | |
| name = "autoscale-runner" | |
| url = "https://gitlab.com/" | |
| token = "<YOUR TOKEN HERE>" |
| #!/bin/bash | |
| # SPDX-License-Identifier: GPL-2.0-or-later | |
| # | |
| # Tested on freshly installed Manjaro 22.0.5 Gnome. | |
| pamac build trizen | |
| cat >/tmp/convert.sh <<EOF | |
| pacman -Qq | grep pamac | xargs pacman -Rs --noconfirm manjaro-application-utility | |
| pacman -Rdd manjaro-release bashrc-manjaro manjaro-keyring python-manjaro-sdk | |
| pacman -U https://www.archlinux.org/packages/core/x86_64/{lsb-release,pacman{,-mirrorlist}}/download/ | |
| mv /etc/pacman.d/mirrorlist.pacnew /etc/pacman.d/mirrorlist |
| @import Darwin; | |
| @import Foundation; | |
| @import IOKit; | |
| // clang -fmodules -o brt brt.m && ./brt | |
| // credit to @zhuowei for discovering the following APIs | |
| typedef CFTypeRef IOAVServiceRef; | |
| extern IOAVServiceRef IOAVServiceCreate(CFAllocatorRef allocator); | |
| extern IOReturn IOAVServiceCopyEDID(IOAVServiceRef service, CFDataRef* x2); |
| @import Darwin; | |
| @import Foundation; | |
| @import IOKit; | |
| // clang -fmodules -o i2cwrite i2cwrite.m && ./i2cwrite | |
| typedef CFTypeRef IOAVServiceRef; | |
| extern IOAVServiceRef IOAVServiceCreate(CFAllocatorRef allocator); | |
| extern IOReturn IOAVServiceCopyEDID(IOAVServiceRef service, CFDataRef* x2); | |
| // outputBufferSize must be less than (1 << 12) (4096 bytes) |