This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// imgLib -> Image package from https://pub.dartlang.org/packages/image | |
import 'package:image/image.dart' as imglib; | |
import 'package:camera/camera.dart'; | |
Future<List<int>> convertImagetoPng(CameraImage image) async { | |
try { | |
imglib.Image img; | |
if (image.format.group == ImageFormatGroup.yuv420) { | |
img = _convertYUV420(image); | |
} else if (image.format.group == ImageFormatGroup.bgra8888) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env osascript | |
tell application "System Events" | |
if name of every process contains "FollowUpUI" then | |
tell window 1 of process "FollowUpUI" | |
click button "允許" | |
delay 2 | |
set code to value of static text 1 of group 1 | |
log (code) | |
click button "完成" | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## Use sudo to run this script | |
rm -rf ~/Library/HiPKILocalSignServer/ | |
rm -rf ~/Lib/libHicos_p11v1.dylib | |
rm -rf ~/bin/checkHIPKILocalServer.sh | |
rm -rf ~/bin/stopHIPKILocalServer.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
last_upgrade_pacman_time () { | |
\grep -e "\[PACMAN\] starting full system upgrade" /var/log/pacman.log | tail -1 | awk -F "]" '{print substr($1,2)}' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while [[ $# -gt 1 ]] | |
do | |
key="$1" | |
case $key in | |
-c| --commits) | |
COMMITS="$2" | |
shift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
protocol ClassNameProtocol { | |
static var className: String { get } | |
var className: String { get } | |
} | |
extension ClassNameProtocol { | |
static var className: String { | |
return String(describing: self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sep 26 17:20:04 F-Gateway pppd[1874]: Serial link appears to be disconnected. | |
Sep 26 17:20:11 F-Gateway pppd[1874]: Connection terminated: no multilink. | |
Sep 26 17:20:11 F-Gateway pppd[1874]: Modem hangup | |
Sep 26 17:21:16 F-Gateway pppd[1874]: Timeout waiting for PADO packets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
info: CPU Name: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz | |
info: CPU Speed: 3200MHz | |
info: Physical Cores: 4, Logical Cores: 4 | |
info: Physical Memory: 32768MB Total | |
info: OS Name: Mac OS X (NSMACHOperatingSystem) | |
info: OS Version: Version 10.13.6 (Build 17G65) | |
info: Kernel Version: 17.7.0 | |
info: hotkeys-cocoa: Using layout 'com.apple.keylayout.US' | |
info: Portable mode: false | |
info: OBS 22.0.2 (mac) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
area_data = { | |
'臺北市': [ | |
'中正區', '大同區', '中山區', '萬華區', '信義區', '松山區', '大安區', '南港區', '北投區', '內湖區', '士林區', '文山區' | |
], | |
'新北市': [ | |
'板橋區', '新莊區', '泰山區', '林口區', '淡水區', '金山區', '八里區', '萬里區', '石門區', '三芝區', '瑞芳區', '汐止區', '平溪區', '貢寮區', '雙溪區', '深坑區', '石碇區', '新店區', '坪林區', '烏來區', '中和區', '永和區', '土城區', '三峽區', '樹林區', '鶯歌區', '三重區', '蘆洲區', '五股區' | |
], | |
'基隆市': [ | |
'仁愛區', '中正區', '信義區', '中山區', '安樂區', '暖暖區', '七堵區' | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# EdgeOS v1.9 Hinet Config Script | |
# by Superbil (https://github.com/superbil) | |
# Last updated: Sep 25, 2018 | |
# Based on settings & scripts by Jenkins, Atlantisman, TK, and CompTech | |
# RUN THIS SCRIPT AS ROOT ON YOUR EDGEROUTER | |
# Script runs best if you copy and paste in sections | |
#______________________Basic Firewall Setup_______________________________ | |
configure |