Skip to content

Instantly share code, notes, and snippets.

View istar0me's full-sized avatar
😅
I may be slow to respond.

istar0me

😅
I may be slow to respond.
View GitHub Profile
@istar0me
istar0me / test.md
Last active December 18, 2018 02:24

DansGuardian

  • 相較於 Squid 只能過濾 URL,DansGuardian 還能過濾關鍵字、限制不能下載指定類型的檔案(如PDF)
  • 偏向應用層的封鎖

下載並安裝

  • 先下載 DandGuardian 的 RPM 安裝檔
  • 透過 rpm 指令安裝
[root@pc1 Downloads]# rpm -ivh dansguardian-2.12.0.3-1.1.x86_64.rpm 
warning: dansguardian-2.12.0.3-1.1.x86_64.rpm: Header V3 DSA/SHA1 Signature, k

20181217 資工系學會 會議記錄

電競比賽

  • 已經比到冠亞賽
  • 今天 1900~2100 比賽
  • 星期二還缺一個攝影:目前安排大一的學弟
  • 第一名:五個電競滑鼠,第二名:$1500,第三名:$1200
  • 羽倩:認為需要印個獎狀,或者紅包袋上面寫個獎項的名稱

聖誕晚會檢討

其他留到檢討會的時候檢討

主題:商店

  1. 商品擺放位置引導/定位/找商品
    • 搭配語音辨識,用說的來查找商品
    • 商品能搭配 RFID 標籤,讓
  2. 數位化候位號碼牌
    • 能先點餐,即時回傳餐點資訊至廚房
    • 搭配電子支付,加速結帳流程
    • 透過顧客點餐紀錄,分析點餐偏好
    • 整合集點卡功能
  3. 自動上架(搭配 AI)

systemd 線上課程

  • 介绍systemd功能-51CTO学院
  • rpm:軟體管理的工具
  • rpm -ql systemd:查詢套件所安裝的檔案清單
    • q:query
    • l:list
  • systemctl等同於systemctl list-units
  • systemctl --state=all:所有啟動的狀態
    • systemctl --state=active:啟動成功
    • systemctl --state=inactive:未啟動
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Move : MonoBehaviour
{
public GameObject myMissile;
// Use this for initialization
void Start()
  • 第 9 週正常上課,第 10 週期中考
  • 期中考考課本每章節後面的選擇題,轉換成簡答題的形式(約 20 ~ 25 題)

C14 系統服務與排程

  • 在 CentOS, readhat, fedora 環境下
    • http 伺服器稱作 httpd(apache)
    • 啟動伺服器指令:systemctl start httpd
  • 而在 ubuntu 環境下
    • http 伺服器稱作 apache(apache2)
    • 啟動伺服器指令:systemctl start apache2
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Score : MonoBehaviour
{
public GameObject myCube;
public Text scoreText;
private int score = 0;
#include <stdio.h>
int main(void) {
int n, i, times, sum;
while(scanf("%d", &n) != EOF) {
// int sum = 0;
while(n <= 2000000000) {
int sum = 0;
while(n >= 10) {
sum += n % 10;