Skip to content

Instantly share code, notes, and snippets.

View qrtt1's full-sized avatar
🎯
Focusing

Ching Yi, Chan qrtt1

🎯
Focusing
View GitHub Profile
1Know 道歉聲明
1Know 為使您擁有最好的學習服務,一直以來,努力不懈,持續發展更新功能。在此,我們很遺憾向大家說明 2015/3/28 的更新服務計畫,出現重大疏失。經一夜緊急補救,仍有相當嚴重的資料毀損情形,造成自 2014/9/24 以後,所建立的知識、學習筆記、群組活動資料全部遺失。我們對造成您的影響與損害,致上最深的歉意!同時我們立刻檢討,重新建立維護備用機制,希望獲得您的理解與再次的支持,我們也確保未來不會再發生類似事件!
完整說明本次失誤事件:
一、更新疏失與損害
1Know 系統放置在 Amazon EC2 服務上,因執行效能的考量,採用 Amazon EC2 的 Instance Store 服務作為資料儲存及備份機制,此機制順暢運行了7個月。
2015/3/28 凌晨進行 1Know 系統更新,檢查發現 Amazon 上的資料主機磁碟空間需擴充。在加掛磁碟空間後,卻發現該主機無法啟動,並於多次重新啟動(Reboot)失敗後,決定先將該資料主機先停止(Stop)再啟動(Start)。然而當 Amazon 執行 Stop 後,就把 Instance Store 上所有資料刪除,導致主機上的資料庫與備份資料全部被清除。
在立即聯繫 Amazon 客服工程師,嘗試各種方法,希望降低傷害與損失,仍確定無法還原 2014/9/24 後之資料。造成損害包括了 1.知識創建資料,2.訂閱及學習資料,3.群組活動資料。
二、檢討改進
批踢踢實業坊›看板 Soft_Job關於我們聯絡資訊
返回看板分享
作者Ken52039 (Ken Huang)
看板Soft_Job
標題Fw: [發案] free hosting上可跑的 陽春八字交友網站
時間Fri May 1 13:49:03 2015
※ [本文轉錄自 CodeJob 看板 #1LGldUpM ]
  1. General Background and Overview
public String getSignedURL(String url, long expiryInSeconds) {
try {
CloudBlockBlob blob = container.getBlockBlobReference(url);
SharedAccessBlobPolicy policy = new SharedAccessBlobPolicy();
policy.setSharedAccessExpiryTime(new Date(new Date().getTime() + expiryInSeconds * 1000));
logger.info("expiry: " + expiryInSeconds + ", at: " + policy.getSharedAccessExpiryTime());
/* enable read permission */
policy.setPermissions(EnumSet.of(SharedAccessBlobPermissions.READ));
return blob.getUri() + "?" + blob.generateSharedAccessSignature(policy, null);
buildscript {
repositories {
jcenter()
}
dependencies {
classpath("org.eclipse.jgit:org.eclipse.jgit:4.0.0.201505050340-m2")
}
}
apply plugin: GitRevisionPlugin
批踢踢實業坊›看板 Soft_Job關於我們聯絡資訊
返回看板分享
作者vy (鳳凰城太陽)
看板Soft_Job
標題[徵才] Cepave 誠徵 軟體工程師
時間Tue Jun 9 16:36:22 2015
【公司名稱】 Cepave 世紀快網科技股份有限公司
批踢踢實業坊›看板 Soft_Job關於我們聯絡資訊
返回看板分享
作者Hazukashiine (恥ずかしい ね...(>///<))
看板Soft_Job
標題Re: [討論] 大家是怎麼看MOPTT的事件呢?
時間Sun Jun 21 14:09:13 2015
package qty.aws;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import com.amazonaws.auth.AWSCredentialsProvider;
import com.amazonaws.auth.AWSSessionCredentials;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient;
@qrtt1
qrtt1 / GCSLogFilenameAwaredTextInputFormat.java
Created July 8, 2015 10:10
gcs log awared input format
package qty.patched.org.apache.hadoop.mapreduce.lib.input;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
START RequestId: cc6ac5e7-2fba-11e5-b678-d90a05e980cf
[INPUT] {cmd=/bin/bash, args=[-c, export]}Jul 21, 2015 3:11:44 PM qty.aws.lambda.ApplicationExecutor <init>
INFO: [/bin/bash, -c, export]
RESULT: declare -x AWS_ACCESS_KEY="..."
RESULT: declare -x AWS_ACCESS_KEY_ID="..."
RESULT: declare -x AWS_DEFAULT_REGION="ap-northeast-1"
RESULT: declare -x AWS_LAMBDA_FUNCTION_MEMORY_SIZE="512"
RESULT: declare -x AWS_LAMBDA_FUNCTION_NAME="abc"
RESULT: declare -x AWS_LAMBDA_FUNCTION_VERSION="HEAD"
RESULT: declare -x AWS_LAMBDA_LOG_GROUP_NAME="/aws/lambda/abc"