Skip to content

Instantly share code, notes, and snippets.

View ethanncyb's full-sized avatar
🎯
Focusing

Ethan Chen ethanncyb

🎯
Focusing
View GitHub Profile
@ethanncyb
ethanncyb / clock.html
Created August 11, 2021 16:40 — 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" >
@ethanncyb
ethanncyb / ptt_autologin.sh
Last active September 14, 2022 18:24 — forked from fkztw/ptt_autologin.sh
A shell script to login PTT via ssh automatically.
#!/usr/bin/env expect
# Login into PTT via SSH.
# Combine crontab with this script so you don't forget to login PTT everyday.
# Usage: /bin/bash -c '${FILE_PATH_OF_THIS_SCRIPT} ${BBS_ID} ${BBS_PW}'
# Example in crontab:
# ptt auto login, every day at 12:00 PM
# 0 12 * * * /bin/bash -c /home/ptt/ptt.sh BBS_ACC123 BBS_PWD456
@ethanncyb
ethanncyb / ptt_autologin.sh
Created July 28, 2021 08:18 — forked from fkztw/ptt_autologin.sh
A shell script to login PTT via ssh automatically.
#!/usr/bin/env expect
# Login into PTT via SSH.
# Combine crontab with this script so you don't forget to login PTT everyday.
# Usage: /bin/bash -c ${FILE_PATH_OF_THIS_SCRIPT}
# Example in crontab:
# ptt auto login, every day at 12:00 PM
# 0 12 * * * /bin/bash -c ${ABSOLUTE_FILE_PATH_OF_THIS_SCRIPT}
@ethanncyb
ethanncyb / Japanese Kana keyboard layout on MacOS.md
Last active November 3, 2020 15:24
Japanese Kana keyboard layout on MacOS

Japanese kana input method

Keyboard Chart

1 2 3 4 5 6 7 8 9 0 shift + 0 - =
q w e r t y u i o p [ ] \
@ethanncyb
ethanncyb / sketch-never-ending.md
Created August 2, 2019 02:51 — forked from ismailmechbal/sketch-never-ending.md
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@ethanncyb
ethanncyb / sketch-never-ending.md
Created August 2, 2019 01:56 — forked from Bhavdip/sketch-never-ending.md
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@ethanncyb
ethanncyb / latex2pdf.sh
Created October 17, 2017 05:44
OpenVAS7 latex2pdf whit chinese issus fix autoscirpt. (How to use: latex2pdf.sh filename.tex )
#!/bin/bash
importpack="\\usepackage{CJK}"
firstkeyword="\\begin{CJK*}{UTF8}{bsmi}"
endkeyword="\\end{CJK*}"
if ! grep -Fxq "$importpack" ${1}
then
# if not found
sed -i -e '/\\usepackage\[utf8x\]{inputenc}/a \\\'$importpack ${1}
fi