Skip to content

Instantly share code, notes, and snippets.

View bouob's full-sized avatar
🇯🇵
0x1

dOuOb bouob

🇯🇵
0x1
View GitHub Profile
@bouob
bouob / ptt_autologin.sh
Created September 14, 2022 18:24 — forked from ethanncyb/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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>3PI線迷宮鼠學習平台-UCH 3PI LineMaze</title>
<link href="https://dreamweaver-3pi-victorzhj.c9users.io/css/bootstrap.css" rel="stylesheet" type="text/css">
<script src="https://dreamweaver-3pi-victorzhj.c9users.io/js/script.js" type="text/javascript"></script>