Skip to content

Instantly share code, notes, and snippets.

@evansan
evansan / cloverupdater.command
Last active August 20, 2018 17:10
automatically download and install latest clover from Dids' repo
#!/bin/bash
cd /tmp/
echo "Going to temp directory"
dnlink=`curl -s https://api.github.com/repos/dids/clover-builder/releases/latest | grep -Eo "https?://\S+?\.pkg" | head -n 1`
echo "Get the lastest download link"
efiguid=`bdmesg | grep " self device " | grep -o ........-....-....-....-............ | head -n 1`
echo "Get Booted EFI Partition's GUID"
@evansan
evansan / 69-language-selector-zh-cn.conf
Created July 6, 2017 03:12
Change ubuntu Chinese dispaly fonts: sudo gedit /etc/fonts/conf.avail/69-language-selector-zh-cn.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test qual="any" name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>DejaVu Serif</string>