Skip to content

Instantly share code, notes, and snippets.

@yejun
yejun / install.md
Last active January 30, 2017 02:36
Enable lets' encrypt ssl on ubnt edge router
  • Install acme.sh

    curl https://get.acme.sh | sh
  • Issue certificate

    .acme.sh/acme.sh --issue --dns -d ubnt.mydomain
@yejun
yejun / scan.py
Created January 25, 2017 17:23
Scan double sided document use single side ADF to PDF
import subprocess
import tempfile
import argparse
import shutil
import os.path
import glob
from PyPDF2 import PdfFileMerger, PdfFileReader
DEVICE=""
@yejun
yejun / how_to_bluetooth.md
Last active March 26, 2024 13:21
Use pulseaudio as bluetooth speaker on archlinux

Install packages

  • bluez
  • bluez-utils
  • pulseaudio-bluetooth

Enable bluetooth

Edit /etc/bluetooth/main.conf, uncomment following lines