Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
micro-teaching-assistant-fucker
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
micro-teaching-assistant-fucker
Commits
488fd5f4
There was an error fetching the commit references. Please try again later.
Unverified
Commit
488fd5f4
authored
7 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Patches
Plain Diff
mpg123 is much better than cvlc.
parent
14f22788
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
d.fish
+6
-3
6 additions, 3 deletions
d.fish
gl.awk
+6
-1
6 additions, 1 deletion
gl.awk
with
13 additions
and
5 deletions
README.md
+
1
−
1
View file @
488fd5f4
...
@@ -15,7 +15,7 @@ Linux. curl. fish. awk. One mp3 player available on command line.
...
@@ -15,7 +15,7 @@ Linux. curl. fish. awk. One mp3 player available on command line.
d.fish使用了gnome的notify-send,kde/其他de用户请根据自己的情况选择修改或删除气泡提醒。
d.fish使用了gnome的notify-send,kde/其他de用户请根据自己的情况选择修改或删除气泡提醒。
d.fish
使用了
cvlc来播放mp3,其他播放器用户请根据自己情况进行修改。请将电脑声音调大。
d.fish
默认使用mpg123/
cvlc来播放mp3,其他播放器用户请根据自己情况进行修改。请将电脑声音调大。
## Tips
## Tips
...
...
This diff is collapsed.
Click to expand it.
d.fish
+
6
−
3
View file @
488fd5f4
...
@@ -2,7 +2,10 @@
...
@@ -2,7 +2,10 @@
#Usage: fill _url with url of the page "学生->答题".
#Usage: fill _url with url of the page "学生->答题".
#You must `echo "known" > /tmp/gay_known` to tell the script that you've been informed.
#You must `echo "known" > /tmp/gay_known` to tell the script that you've been informed.
set _url 'https://www.teachermate.com.cn/wechat/wechat/guide/answer?openid=161067e64d98cbb23d3ceb2947f004a8'
set _url 'https://www.teachermate.com.cn/wechat/wechat/guide/answer?openid=0a26740fbf9429d1747f8bc8ff8bf1cb'
set _audio_player "mpg123"
#set _audio_player "cvlc --play-and-exit"
function _is_informed
function _is_informed
# May not exist.
# May not exist.
...
@@ -20,13 +23,13 @@ function _on_opened
...
@@ -20,13 +23,13 @@ function _on_opened
if _is_informed
if _is_informed
return 0
return 0
end
end
cvlc --play-and-exit
fire.mp3 > /dev/null 2>&1
eval $_audio_player
fire.mp3 > /dev/null 2>&1
notify-send "Warning: Question opened!" "Gay question opened!"
notify-send "Warning: Question opened!" "Gay question opened!"
echo "LOG> Detected!"
echo "LOG> Detected!"
end
end
function _on_error
function _on_error
cvlc --play-and-exit
error.mp3 > /dev/null 2>&1
eval $_audio_player
error.mp3 > /dev/null 2>&1
notify-send "Warning: Gay cookie invalid!" "Gay cookie expired!"
notify-send "Warning: Gay cookie invalid!" "Gay cookie expired!"
echo "LOG> Error occurred! Maybe invalid cookie."
echo "LOG> Error occurred! Maybe invalid cookie."
end
end
...
...
This diff is collapsed.
Click to expand it.
gl.awk
+
6
−
1
View file @
488fd5f4
...
@@ -5,10 +5,15 @@ BEGIN {
...
@@ -5,10 +5,15 @@ BEGIN {
}
}
{
{
if
(
match
(
$0
,
"\"msg\":\"unauthorized\""
)
!=
0
)
{
a
=
999
exit
2
}
if
(
match
(
$0
,
"以下课堂包含开启的题目"
)
!=
0
)
{
if
(
match
(
$0
,
"以下课堂包含开启的题目"
)
!=
0
)
{
a
=
1
a
=
1
exit
0
exit
1
}
}
if
(
match
(
$0
,
"以下课堂暂未开启题目"
)
!=
0
)
{
if
(
match
(
$0
,
"以下课堂暂未开启题目"
)
!=
0
)
{
a
=
1
a
=
1
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment