Generate all key types:
/etc/rc.d/sshd keygen
http://d.stavrovski.net/blog/post/how-to-install-and-setup-oracle-java-jdk-in-centos-6 | |
# rpm | |
wget --no-cookies \ | |
--no-check-certificate \ | |
--header "Cookie: oraclelicense=accept-securebackup-cookie" \ | |
"http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.rpm" \ | |
-O jdk-7-linux-x64.rpm | |
# ubuntu |
Download Google Drive files with WGET | |
Example Google Drive download link: | |
https://docs.google.com/open?id=[ID] | |
To download the file with WGET you need to use this link: | |
https://googledrive.com/host/[ID] | |
Example WGET command: |
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz |
[Trigger] | |
Operation = Upgrade | |
Type = Package | |
Target = linux | |
[Action] | |
Description = Restore Linux kernel modules | |
When = PostTransaction | |
Depends = coreutils | |
Depends = rsync |
var CryptoJS = require('crypto-js') | |
var request = require('request-promise') | |
/* | |
* npm install crypto-js request-promise request | |
* node wx_t1t_hack.js | |
*/ | |
// export function testEncription(msg, fullKey) { | |
// var fullKey = fullKey.slice(0, 16) |
/* | |
* Recommend run with node v8.9.x or higher version | |
* npm install lodash crypto-js request-promise request | |
* node hack.js | |
*/ | |
const version = 5 // the version of t1t | |
const score = 370 // the score you wanna get | |
const playTimeSeconds = score * 0.01 // simulate the playing time (seconds) |
# details in: https://golang.org/doc/install/source | |
# a patch for centos 5 build: https://github.com/golang/go/issues/24980#issuecomment-384193598 | |
export GOROOT="/usr/local/go" | |
export PATH="$GOROOT/bin:$PATH" | |
mkdir /usr/local/go ~/go | |
curl -L https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz | tar xf - -C /usr/local/go | |
cd /usr/local/go/src | |
./make.bash | |
curl -L https://dl.google.com/go/go1.11.src.tar.gz | tar xf - -C ~/go |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
const fontManager = [NSFontManager sharedFontManager]; | |
const UI = require('sketch/ui'); | |
//注意:更新后的插件版本,配置请填写 Font Family 名称,请不要再选择 Postscript 名称 | |
//顺序:英文字体,中文字体,数字字体(请依照自己安装的字体和喜好配置) | |
const options = { | |
'SF, 苹方, Mono': | |
'SF Pro Text, PingFang SC, SF Mono', | |
'Arial, 微软雅黑': | |
'Arial, Microsoft YaHei', | |
'New York, 思源宋体': |