Skip to content

Instantly share code, notes, and snippets.

@Haptein
Haptein / add_furigana_to_clipboard
Last active February 12, 2022 05:10
Adds furigana to whatever's in your clipboard
#! /usr/bin/bash
# requires wl-clipboard and kakasi, Xorg can do with xclip instead
str=`wl-paste`
wl-paste | kakasi -i utf8 -JH -f -p | wl-copy
@Haptein
Haptein / droidcam_update.sh
Created October 13, 2017 05:54
Bash script for rebuilding Droidcam. Useful for me since I gotta rebuild it each time there's a kernel update.
cd /opt/ #place where droidcam is already installed
sudo ./droidcam-uninstall
cd /tmp/
wget https://www.dev47apps.com/files/600/droidcam-64bit.tar.bz2
file=droidcam-64bit.tar.bz2
checksum=ad14437f0556d80f981d1027766afe29
md5check="$(md5sum $file)"
if [ "$checksum $file"="md5check" ];
then
echo "Good checksum."