Skip to content

Instantly share code, notes, and snippets.

jp_apple_id.md

What do you want?

  • A Japanese Apple ID

Requirements? (X=NotRequired O=Required)

Item Required?
lsblk -f
rm -rfv /boot/{efi,grub,initramfs*}
rm -rfv /boot/{efi,grub,initramfs*}
umount /dev/sdb1
rm -rfv /boot/{efi,grub,initramfs*}
rm -rfv /boot/{efi,grub,initramfs*}
mkfs.fat /dev/sdb1
lsblk -f
mkdir /boot/efi
@Un1Gfn
Un1Gfn / rpi.txt
Created September 29, 2019 00:31
# rpi
<details><summary>References</summary>
[树莓派做透明代理](https://fishedee.com/2016/11/30/%E6%A0%91%E8%8E%93%E6%B4%BE%E5%81%9A%E9%80%8F%E6%98%8E%E4%BB%A3%E7%90%86/)
[用树莓派做一个“科学上网”透明代理路由器](https://blog.wanfajie.com/2018/08/%E7%94%A8%E6%A0%91%E8%8E%93%E6%B4%BE%E5%81%9A%E4%B8%80%E4%B8%AA%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91%E9%80%8F%E6%98%8E%E4%BB%A3%E7%90%86%E8%B7%AF%E7%94%B1%E5%99%A8/)
[树莓派运行ss-redir打造透明代理Wifi环境](https://www.zackhoo.com/linux/raspberrypi/20181202555.html)
@Un1Gfn
Un1Gfn / Dos2unix.tcl
Last active September 29, 2019 10:56
#!/usr/local/bin/tclsh
#!/bin/env /bin/tclsh
# proc power {base p} {
# set result 1
# while {$p>0} {
# set result [expr $result * $p]
# set p [expr $p - 1]
# }
@Un1Gfn
Un1Gfn / schedule.md
Last active November 12, 2019 12:40
@Un1Gfn
Un1Gfn / marx.txt
Last active December 21, 2019 01:32
Der Ursprung der Familie, des Privateigenthums und des Staats
The Origin of the Family, Private Property and the State
@Un1Gfn
Un1Gfn / 0-ssd.md
Last active February 7, 2020 10:33
ShadowsocksD/SSD JSON: Query with jq and generate shadowsocks-libev JSON

SSD(ShadowsocksD) JSON: Query with jq and generate shadowsocks-libev JSON

Prerequisites

  • Basic understanding of systemd service file
  • /usr/lib/systemd/system/shadowsocks-XXXservice

Examples:

Archlinux

@Un1Gfn
Un1Gfn / password.sh
Last active February 10, 2020 17:27
#!/dev/null
# Abandoned because of https://stackoverflow.com/a/40664920/8243991
# Even worse
# open spreedsheet w/ libreoffice
# ps aux | grep office
# sleep 7; gcore <PID>
# select all text in a cell (foobar)
# wait
// gcc -std=c11 -g -O0 -Wall -Wextra -fdiagnostics-color=always ieee754.c
/*
$ ./a.out x 0 x inf -inf x nan -nan x 1 1.5 1.75 1.875 -1.875 x
0 00000000 00000000000000000000000
0 11111111 00000000000000000000000
1 11111111 00000000000000000000000
#!/bin/bash
# https://en.wikipedia.org/wiki/MD5#Collision_vulnerabilities
# https://unix.stackexchange.com/a/82563/246562
tr -d ' \n' <<EOF | xxd -r -p | md5sum
d131dd02c5e6eec4 693d9a0698aff95c 2fcab58712467eab 4004583eb8fb7f89
55ad340609f4b302 83e488832571415a 085125e8f7cdc99f d91dbdf280373c5b
d8823e3156348f5b ae6dacd436c919c6 dd53e2b487da03fd 02396306d248cda0
e99f33420f577ee8 ce54b67080a80d1e c69821bcb6a88393 96f9652b6ff72a70