https://github.com/daniel-thompson/pinebook-pro-debian-installer/
- switch to debian sid
wpa_passphrase $WIFI_SSID $WIFI_PSWD > /etc/wpa_supplicant.conf
ip link set wlan0 down
ip link set wlan0 up
/* Safari and Edge polyfill for createImageBitmap | |
* https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/createImageBitmap | |
*/ | |
if (!('createImageBitmap' in window)) { | |
window.createImageBitmap = async function(blob) { | |
return new Promise((resolve,reject) => { | |
let img = document.createElement('img'); | |
img.addEventListener('load', function() { | |
resolve(this); | |
}); |
#!/usr/bin/env bash | |
set -e | |
for number in $(gh pr list --search "status:failure -is:draft" --json 'number' | jq '.[].number') | |
do | |
echo '## Checking out PR' $number | |
gh pr checkout $number | |
echo |
#!/usr/bin/env bash | |
todo='0' | |
echo "[" > todo_data.json | |
git log --reverse --oneline | | |
while IFS= read -r commit | |
do | |
hash=$(echo $commit | cut -d' ' -f1) |
function fib(n, i = 0, a = 0, b = 1) { | |
if (n === i) { return a; } | |
return fib(n, i + 1, b, a + b); | |
} |
https://github.com/daniel-thompson/pinebook-pro-debian-installer/
wpa_passphrase $WIFI_SSID $WIFI_PSWD > /etc/wpa_supplicant.conf
ip link set wlan0 down
ip link set wlan0 up
FROM ubuntu:18.04 | |
ENV DEBIAN_FRONTEND=noninteractive | |
WORKDIR /root | |
COPY . . | |
RUN apt update | |
RUN apt -y upgrade | |
RUN apt -y install apt-utils apt-transport-https ca-certificates | |
RUN apt -y install wget gpg |
<?php | |
/** | |
* Connect to an HTTP server and echo the response | |
*/ | |
$host = 'localhost'; | |
$port = 80; | |
$fp = fsockopen($host, $port, $errno, $errstr, 30); | |
if (!$fp) { | |
echo "$errstr ($errno)<br />\n"; | |
} |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net" | |
"net/http" | |
) |
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: node_exporter | |
namespace: prometheus/node_exporter | |
spec: | |
template: | |
metadata: | |
labels: | |
name: node_exporter |