Find text like this in the HTML:
<link rel="alternate" href="ios-app://">
The channel ID is in the href.
# See https://askubuntu.com/questions/440821/execute-script-when-disk-space-is-low | |
@daily sh -c "if [ $(df / --output='pcent' | grep -o "[0-9]*") -gt 90 ]; then docker system prune -af; fi |
Find text like this in the HTML:
<link rel="alternate" href="ios-app://">
The channel ID is in the href.
Raspberry Pi Imager
to flash a Raspbian Full OS image to SD card. Use the Imager's advanced option to set SSH and Wifi.sudo raspi-config
to expand storage to entire SD carddocker run hello-world
find . -type f -print0 | sort -z | xargs -0 identify -format '%t %w %h\n' > ../images-dimension.txt |
import UIKit | |
extension UIView { | |
func addConstaintsToPinHorizontalEdgesToSuperView(padding: CGFloat = 0) { | |
prepareForConstraints() | |
self.superview!.addConstraints(NSLayoutConstraint.constraints(withVisualFormat: "H:|-(padding)-[view]-(padding)-|", | |
options: [], | |
metrics: ["padding":padding], | |
views: ["view":self])) | |
} |
from golang:buster as builder | |
RUN go get github.com/ddollar/forego | |
WORKDIR src/github.com/ddollar/forego | |
RUN go build | |
from debian:buster | |
COPY --from=builder /go/src/github.com/ddollar/forego/forego /usr/local/bin/forego | |
CMD ["forego"] |
0 1 * * * df -Ph / | grep root | awk '{ if($5 > 80) print $0;}' | docker image prune -f |
#cloud-config | |
# vim: syntax=yaml | |
# | |
# The current version of cloud-init in the Hypriot rpi-64 is 0.7.9 | |
# When dealing with cloud-init, it is SUPER important to know the version | |
# I have wasted many hours creating servers to find out the module I was trying to use wasn't in the cloud-init version I had | |
# Documentation: http://cloudinit.readthedocs.io/en/0.7.9/index.html | |
# Set your hostname here, the manage_etc_hosts will update the hosts file entries as well |
// | |
// simd+ext.swift | |
// | |
// Created by Kaz Yoshikawa on 11/6/15. | |
// | |
// | |
import Foundation | |
import simd | |
import GLKit |
Pod::Spec.new do |s| | |
s.name = 'GPUImage3' | |
s.version = '0.1.0' | |
s.license = 'BSD' | |
s.summary = 'An open source iOS framework for GPU-based image and video processing.' | |
s.homepage = 'https://github.com/BradLarson/GPUImage3' | |
s.author = { 'Brad Larson' => '[email protected]' } | |
# This commit on that fork of GPUImage should contain just upgrades needed for Swift 4 compatibility. See https://github.com/BradLarson/GPUImage2/pull/212 | |
# Replace with https://github.com/BradLarson/GPUImage2.git when merged |