這裡會介紹如何透過陽明交通大學 OAuth 服務獲取使用者資訊。本平台是依據 OAuth 2.0 (RFC6749) 的標準開發,目前僅開放 Authorization Code 方式來認證。
- 內容:Email, 帳號名稱
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| OUT="/tmp/sys_snapshot_$(hostname)_$(date +%F_%H%M%S).log" | |
| { | |
| echo "===== META ====="; date; hostnamectl || true; echo; uptime | |
| echo; echo "===== CPU & MEM ====="; lscpu | egrep 'CPU|Thread|Model|NUMA' || lscpu; echo; free -m | |
| echo; echo "===== LOAD / RUNQ (vmstat 1x10) ====="; vmstat 1 10 | |
| echo; echo "===== DISK I/O (iostat -xz 1x10) ====="; iostat -xz 1 10 | |
| echo; echo "===== TOP PROCS (CPU) ====="; ps -eo pid,ppid,comm,%cpu,%mem,stat --sort=-%cpu | head -n 30 | |
| echo; echo "===== PID I/O/CTX (pidstat -urd 1x5) ====="; pidstat -urd 1 5 || true |
| # Requires -Version 5.1 | |
| param([switch]$VerboseLog) | |
| if ([Threading.Thread]::CurrentThread.ApartmentState -ne 'STA') { | |
| Start-Process powershell "-NoLogo -Sta -ExecutionPolicy Bypass -File `"$PSCommandPath`" $(if($VerboseLog){'-VerboseLog'})" | |
| return | |
| } | |
| Add-Type -AssemblyName PresentationCore, PresentationFramework, WindowsBase |
| #!/usr/bin/env bash | |
| # bsubrepeater with audit log: re-submit LSF job when it disappears | |
| set -Eeuo pipefail | |
| DEFAULT_MAX=100000 | |
| DEFAULT_INTERVAL=10 | |
| VERBOSE=0 | |
| LOG_FILE="${BSUBREPEATER_LOG_FILE:-$HOME/.bsubrepeater.log}" | |
| usage() { |
| #!/bin/zsh | |
| # | |
| # Function: Removes duplicate, colon-separated entries from a specified | |
| # environment variable. | |
| # Usage: dedup_env_var <VARIABLE_NAME> | |
| # Example: dedup_env_var PATH | |
| # | |
| dedup_env_var () { | |
| # Store the first argument (the environment variable's name) in a local variable. |
| package hardwaresort | |
| import chisel3._ | |
| import chisel3.experimental.FixedPoint | |
| import chisel3.internal.firrtl.KnownBinaryPoint | |
| import chisel3.iotesters.PeekPokeTester | |
| import chisel3.util.log2Ceil | |
| //scalastyle:off magic.number | |
| /** |
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <string-array name="twinapps_required_apps"> | |
| <item>com.android.vending</item> | |
| <item>com.google.android.gms</item> | |
| <item>jp.naver.line.android|Line: Free Calls & Messages</item> | |
| <item>com.facebook.katana|Facebook</item> | |
| <item>com.facebook.orca|Messenger - Text and Video Chat for Free</item> | |
| <item>com.tencent.mm|WeChat</item> | |
| <item>com.whatsapp|WhatsApp Messenger</item> |
| set mainfont {{Open Sans} 10} | |
| set textfont {Consolas 9} | |
| set uifont {Tahoma 9 bold} | |
| set tabstop 8 | |
| set findmergefiles 0 | |
| set maxgraphpct 50 | |
| set maxwidth 16 | |
| set cmitmode patch | |
| set wrapcomment none | |
| set autoselect 1 |
| [index] | |
| [#1]前言 | |
| [#2]游戏 | |
| [#3]衍生游戏 | |
| [#4]书籍-非小说 | |
| [#5]小说 | |
| [#6]影视以及动画 | |
| [#7]漫画 | |
| [/index] | |
| [size=4][b]可以转载、但转载[color=Red]请高亮[/color]注明来源链接以及作者、并在转载后将帖子链接用[color=Red]短消息[/color]发给我[/b][/size] |