- /dev/sda1: ESP (EFI System Partition)
- /dev/sda2: system + home
- /dev/sda3: swap
This file contains hidden or 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
bitcoin-cli getrawtransaction 5c4f060e6166a530d891cafd0e9df42441d29b1ed9cff71a1652201b8d50bd72 2 | jq -r '.vout[].scriptPubKey.hex | sub("^.{6}"; "")' | while read -r output; do echo "$output" | xxd -p -r; echo; done |
This file contains hidden or 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 node | |
// Invoke with: bitcoin-cli getrawtransaction 4be3a833ee83b4ca7d157d60fbf7411f7528314ce90df8a844f855118bc6ca11 | ./dinner-inscription.js | |
const { Transaction } = require('bitcoinjs-lib'); | |
if (process.stdin.isTTY) { | |
console.error('raw tx needed, quitting...'); | |
process.exit(1); | |
} |
Instructions taken from Obtaining Factory Images.
curl -O https://releases.grapheneos.org/allowed_signers
Benefits:
- Hide ads;
- Remove tracking when sharing links;
- Enable video download;
- Other benefits;
This file contains hidden or 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 | |
# Sets brightness to parameter level [0, max_brightness] | |
# Default: 10_000 | |
default=10000 | |
brightness=${1:-$default} | |
max="$(cat /sys/class/backlight/*/max_brightness)" | |
if test "$brightness" -eq "$brightness" 2>/dev/null; then # numeric value |
This file contains hidden or 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 | |
function run() { | |
read_wordlist | |
local input | |
printf "Enter seed words: " | |
read -r input | |
local seed_words=() |
This file contains hidden or 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 node | |
const { Transaction } = require("bitcoinjs-lib"); | |
const fs = require("fs"); | |
const inputFile = "txhex"; | |
const outputFile = "output.bin"; | |
let hex = fs.readFileSync(inputFile, "utf8"); | |
let tx = Transaction.fromHex(Buffer.from(hex, "hex")); |
This file contains hidden or 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
# 1024-bit key | |
keytool -printcert -jarfile apk_file 2>/dev/null | grep SHA256 | cut -f2- -d':' | tr -cd '[[:xdigit:]]:'; echo | |
# 4096-bit key | |
apksigner verify -v --print-certs --min-sdk-version 24 apk_file | grep "certificate SHA-256" | |
# One-liner example for Signal | |
test $(apksigner verify -v --print-certs --min-sdk-version 24 Signal-Android-website-prod-universal-release-7.33.2.apk | grep -m1 "certificate SHA-256" | cut -d':' -f2 | tr -cd '[:xdigit:]') = $(echo -n "4B:E4:F6:CD:5B:E8:44:08:3E:90:02:79:DC:82:2A:F6:5A:54:7F:EC:C2:6A:BA:7F:F1:F5:20:3A:45:51:8C:D8" | tr -cd '[:xdigit:]' | tr '[:upper:]' '[:lower:]') && echo "passed" || echo "failed" |
NewerOlder