curiouser / gist:9ce8a7af01d340b392d76d271c430609
0 mi piace
0 forks
1 files
Ultima volta attivo 1 day ago
| 1 | #! /usr/bin/env bash |
| 2 | |
| 3 | # Create a new ARM server (CAX41 | arm | 320 GB | eu-central) from app image: Docker CE |
| 4 | |
| 5 | # install git |
| 6 | apt update |
| 7 | apt install -y git |
| 8 | |
| 9 | # download and prepare Iris for build |
| 10 | git clone --depth=1 https://github.com/jaedb/Iris.git |
curiouser / gist:16ae3c78139045a79fa27d46310140f8
0 mi piace
0 forks
2 files
Ultima volta attivo 1 day ago
| 1 | #! /usr/bin/env bash |
| 2 | |
| 3 | vi ~/.local/bin/displays.sh |
curiouser / gist:29f7e93f52654d7e8613237143587f75
0 mi piace
0 forks
1 files
Ultima volta attivo 1 day ago
| 1 | #! /usr/bin/env bash |
| 2 | wget https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10021/ghostscript-10.02.1.tar.gz |
| 3 | tar -zxf ghostscript-10.02.1.tar.gz ghostscript-10.02.1/ |
| 4 | cd ghostscript-10.02.1/ |
| 5 | ./configure |
| 6 | make -j56 |
| 7 | sudo make install |
curiouser / gist:42127e23be3146ef9c269f4a85f544b2
0 mi piace
0 forks
2 files
Ultima volta attivo 1 day ago
| 1 | qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.0DH:EAX.xsavec [bit 1] |
| 2 | qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.0DH:EAX.xgetbv1 [bit 2] |
| 3 | |
| 4 | |
| 5 | [NOTE ] coreboot-2024-01-18_3e19b73 Thu Jan 18 19:28:10 UTC 2024 bootblock starting (log level: 7)... |
| 6 | [DEBUG] FMAP: Found "FLASH" version 1.1 at 0x0. |
| 7 | [DEBUG] FMAP: base = 0xff800000 size = 0x800000 #areas = 3 |
| 8 | [DEBUG] FMAP: area COREBOOT found @ 200 (8388096 bytes) |
| 9 | [INFO ] CBFS: mcache @0x00014e00 built for 12 files, used 0x2ac of 0x4000 bytes |
| 10 | [INFO ] CBFS: Found 'fallback/romstage' @0x80 size 0x4558 in mcache @0x00014e2c |
curiouser / gist:b11bb47e62fe4eec89955e5080d16df7
0 mi piace
0 forks
1 files
Ultima volta attivo 1 day ago
| 1 | // open the likes/comments activity panel prior to running this in a web console. |
| 2 | // this will insert thumbs just above the album photos |
| 3 | |
| 4 | (() => { |
| 5 | // cleanup and init |
| 6 | try { |
| 7 | document.querySelector('#virtual-timeline').parentNode.removeChild(document.querySelector('#selects')) |
| 8 | } catch {} |
| 9 | document.querySelector('#virtual-timeline').insertAdjacentHTML('beforebegin', '<div class="flex flex-wrap" id="selects"></div>') |
| 10 |
curiouser / gist:ee7dac72c2a041a6bf7579473f6a50cb
0 mi piace
0 forks
5 files
Ultima volta attivo 1 day ago
| 1 | #! /usr/bin/env bash |
| 2 | |
| 3 | xrandr --output DP-4 --auto --primary --output HDMI-0 --off |
curiouser / gist:e31cc22b2ba34df38a1a625d1c964570
0 mi piace
0 forks
2 files
Ultima volta attivo 1 day ago
| 1 | #! /usr/bin/env bash |
| 2 | # adapted from https://docs.zfsbootmenu.org/en/v2.3.x/guides/ubuntu/uefi.html |
| 3 | # script is not meant to be run non-interactively. read and understand before executing |
| 4 | |
| 5 | sudo -i |
| 6 | |
| 7 | source /etc/os-release |
| 8 | export ID |
| 9 | |
| 10 | export POOL_DEVICE="/dev/nvme1n1p3" |
curiouser / gist:0109efc80a6147b3941cffd285247d56
0 mi piace
0 forks
1 files
Ultima volta attivo 1 day ago
| 1 | #! /usr/bin/env bash |
| 2 | |
| 3 | # build deps |
| 4 | sudo apt install meson libelf-dev |
| 5 | |
| 6 | # get source |
| 7 | git clone git@github.com:flatpak/flatpak-builder.git |
| 8 | cd flatpak-builder |
| 9 | |
| 10 | # from repo instructions, build |
curiouser / gist:4432aa2a66744739b6525074c02b657b
0 mi piace
0 forks
1 files
Ultima volta attivo 1 day ago
| 1 | (() => { |
| 2 | // cleanup and init |
| 3 | try { |
| 4 | document.querySelector('#virtual-timeline').parentNode.removeChild(document.querySelector('#selects')) |
| 5 | } catch {} |
| 6 | document.querySelector('#virtual-timeline').insertAdjacentHTML('beforebegin', '<div class="flex flex-wrap" id="selects"></div>') |
| 7 | |
| 8 | const commentCountMap = new Map() |
| 9 | const commentThumbs = Array.from(document.querySelectorAll('#activity-panel img[alt*=commented]')) |
| 10 | const likeCountMap = new Map() |
curiouser / gist:9c5e5d82aa95457bb21d4f981a668952
0 mi piace
0 forks
2 files
Ultima volta attivo 1 day ago
| 1 | #!/bin/sh -e |
| 2 | |
| 3 | CERT_PATH_LE_LIVE="/snikket/letsencrypt/live/$SNIKKET_DOMAIN_ASCII" |
| 4 | CERT_PATH="/etc/prosody/certs/$SNIKKET_DOMAIN.crt" |
| 5 | |
| 6 | check_cert_path() { |
| 7 | if test -f "$CERT_PATH"; then |
| 8 | exit 0; |
| 9 | fi |
| 10 | } |