Skip to content

Instantly share code, notes, and snippets.

View dogwong's full-sized avatar

dogwong

  • Hong Kong
  • 16:17 (UTC +08:00)
View GitHub Profile
@dogwong
dogwong / clock.html
Last active March 25, 2022 10:08 — forked from sam0737/clock.html
OBS Studio: A HTML page for showing current date and time in the video
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A simple clock</title>
</head>
<body translate="no" >
@dogwong
dogwong / install.sh
Last active October 22, 2023 11:58
Ubuntu install zsh with p9k and basic vimrc
# tested on DigitalOcean Ubuntu 22.04 LTS
# Ubuntu 22.04, prevent "Daemons using outdated libraries" popup
sed -i -e "/#\$nrconf{restart} = 'i';/s/.*/\$nrconf{restart} = 'a';/" /etc/needrestart/needrestart.conf
apt-get update
apt-get install -y git curl vim # basic stuffs
apt-get install -y language-pack-en # in case of "command not found: print_icon"
apt-get install -y zsh
@dogwong
dogwong / bestdori_json_upgrade.js
Last active December 19, 2018 13:41
Transform older version of exports (without profile) to newer one (with profile)
var OldExport =
// Replace your export data BELOW
// =================================
{"cards":[],"items":[[4,4,4,4,4,4,4],[4,4,4,4,4,4,4],[4,4,4,4,4,4,4],[4,4,4,4,4,4,4],[4,4,4,4,4,4,4],[4,4,4,4],[4,4,4,4]]}
// =================================
// Replace your export data ABOVE
console.clear();