目前公司還沒有考慮升級硬體,想想還是要做多點備份以防萬一
參考 : https://docs.gitlab.com/ee/raketasks/backup_restore.html
2019年4月14日 星期日
2019年3月24日 星期日
2019年3月23日 星期六
2018年11月25日 星期日
2018年11月20日 星期二
GitLab 安裝流程 (Docker Image)
新版的 GitLab 安裝流程已經相當簡單了
原本是打算架實體服務,看完官方教學後,馬上投入 Docker 的懷抱
參考文件 : https://docs.gitlab.com/omnibus/docker/
原本是打算架實體服務,看完官方教學後,馬上投入 Docker 的懷抱
參考文件 : https://docs.gitlab.com/omnibus/docker/
2018年11月19日 星期一
2018年11月4日 星期日
關於自動化的兩三事 - 後話
這篇是關於自動化的兩三事的後續,而自動化流程這件事到今天也完全沒有進展。主要原因大概是某些人只是想做產品,而不是想把產品做好。所以我在卸任產品的負責人之前,也都沒有主動提起自動化流程了。
某一天突然發覺,這次的失敗打擊超乎我的想像!在無意識中我不願想起這個專案,自然也從沒有思考或和其它人討論這個專案失敗的原因。我明白如果不去思考失敗的原因,那麼未來就還會再度發生類似的情況;但我不知道的是…原來承認失敗真的不是一件容易的事
一部份原因是被需求壓得喘不過氣,另一部份原因是失去了熱情
某一天突然發覺,這次的失敗打擊超乎我的想像!在無意識中我不願想起這個專案,自然也從沒有思考或和其它人討論這個專案失敗的原因。我明白如果不去思考失敗的原因,那麼未來就還會再度發生類似的情況;但我不知道的是…原來承認失敗真的不是一件容易的事
2018年2月25日 星期日
如何保護你的 Python 程式碼
在今年 2 月底時,公司的讀書會輪到我報告了
本來是想講怎麼破解得到 Python 的程式碼,後來覺得很多人會聽不懂
而且我們公司的是做安全的,教怎麼保護的方法還要正面一些
本來是想講怎麼破解得到 Python 的程式碼,後來覺得很多人會聽不懂
而且我們公司的是做安全的,教怎麼保護的方法還要正面一些
2017年8月1日 星期二
LeetCode題解 - 4. Median of Two Sorted Arrays [Hard]
There are two sorted arrays nums1 and nums2 of size m and n respectively.
Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).
Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).
2017年7月13日 星期四
LeetCode題解 - 3. Longest Substring Without Repeating Characters [Medium]
Given a string, find the length of the longest substring without repeating characters.
LeetCode題解 - 2. Add Two Numbers [Medium]
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.
You may assume the two numbers do not contain any leading zero, except the number 0 itself.
You may assume the two numbers do not contain any leading zero, except the number 0 itself.
LeetCode題解 - 1. Two Sum [Easy]
1. Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input would have exactly one solution, and you may not use the same element twice.
2017年4月4日 星期二
2017年3月31日 星期五
快速架一個 CI Server - 其它環境建置
安裝其它環境時的筆記,以後也許還用的著呢
Environment Setup
- MySQL 5.7
- Maven 3.3.9
- Sencha Cmd & ExtJS
2017年3月30日 星期四
快速架一個 CI Server - Jenkins 環境建置
本篇主要目的為建立 Jenkins 環境,關於 Jenkins 設定則另外介紹
Linux 作業系統就不多說了,我是安裝在 VM 上
Jenkins 官網中並沒有說明記憶體最低需求,但建議給 16GB (您真是愛開玩笑呢)
我給它 6GB,Jenkins plugins 不要裝太多還夠用
Environment Setup
- CentOS Linux release 7.3.1611 (Core)
- JDK 1.7.0.131
- Tomcat 7.0.76
- Jenkins 2.48
Linux 作業系統就不多說了,我是安裝在 VM 上
Jenkins 官網中並沒有說明記憶體最低需求,但建議給 16GB (您真是愛開玩笑呢)
我給它 6GB,Jenkins plugins 不要裝太多還夠用
2017年2月27日 星期一
Python setup.py 簡易研究
最近在公司開發 Python 專案時,有一些需求
上述兩點都可以使用 Python Setup.py 來實現,所以要先了解 Setup.py 怎麼撰寫
- 保護 Source code 的方法。網路上其實可以找到很多方法,像是代碼混淆、加密、打包成一個可執行檔以及利用 Cython 將 Python 檔案轉換為 C,然後編繹成 Library 檔案 (Windows 為 pyd 檔案 , Linux 為 so 檔案)。最終採用了最後兩種方法
- 大多的專案最終都會有重覆的程式,所以想寫一個共用 Library 供開發使用
上述兩點都可以使用 Python Setup.py 來實現,所以要先了解 Setup.py 怎麼撰寫
2016年11月24日 星期四
Python 反編譯第一次就上手 ~ Pyinstaller reverse engineer
觀念要先釐清
這裡就不說明 python 的編譯、執行方法
可以上網找找 pyc, pyo 的資料,他們說明的都比我清楚
- Disassembler
- A disassembler is a software tool which transforms machine code into a human readable mnemonic representation called assembly language.
- Decompiler
- Software used to revert the process of compilation. Decompiler takes a binary program file as input and output the same program expressed in a structured higher-level language.
這裡就不說明 python 的編譯、執行方法
可以上網找找 pyc, pyo 的資料,他們說明的都比我清楚
訂閱:
文章 (Atom)