Skip to content

Instantly share code, notes, and snippets.

View icyleaf's full-sized avatar
🍺
Diving into beer

icyleaf icyleaf

🍺
Diving into beer
View GitHub Profile
@icyleaf
icyleaf / post-receive.sh
Created September 6, 2010 07:55
git autodeploy script when it matches the string "[deploy]"
#!/bin/sh
#
# git autodeploy script when it matches the string "[deploy]"
#
# @author icyleaf <icyleaf.cn@gmail.com>
# @link http://icyleaf.com
# @version 0.1
#
# Usage:
# 1. put this into the post-receive hook file itself below
@icyleaf
icyleaf / 1-setup.md
Last active May 28, 2021 03:31 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS Sierra/High Sierra

Methods of Signing with GPG

Last updated March 28, 2021

There are now two ways to approach this:

  1. Using gpg and generating keys
  2. Using Kryptonite by krypt.co

This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions

@icyleaf
icyleaf / list_certificate.sh
Last active February 8, 2021 13:02
获取 apk 文件证书签名的三种方式
# 获取 apk 的证书
keytool -list -printcert -jarfile app.apk
# 获取 apk 解包后 CERT.{RSA|DSA} 的证书
keytool -printcert -file app/META-INF/CERT.{RSA|DSA}
# 获取 keystore 的证书
keytool -list -keystore app.keystore -storepass {password}
@icyleaf
icyleaf / install-dsm-6-on-proxmox-5.md
Last active January 21, 2021 08:37 — forked from Neonox31/install-dsm-6-on-proxmox-5.md
Install DSM 6.X on Proxmox 5.0.X
@icyleaf
icyleaf / README.md
Last active January 11, 2021 07:38
群晖服务端口号不完全收集

群晖服务端口号

服务 端口号 协议 备注
Web 服务(HTTP) 80 TCP
Web 服务(HTTPS) 443 TCP
DSM 服务(HTTP) 5000 TCP 默认值可修改
DSM 服务(HTTPS) 5001 TCP 默认值可修改
SSH 服务 22 TCP 默认值可修改,默认服务关闭
Files 5000 TCP 随着群晖 Web 服务变动
#!/bin/sh
# Change this line to the URI path of the xcode DMG file.
# XCode 3.2.5
#XCODE_PATH="/ios/ios_sdk_4.2__final/xcode_3.2.5_and_ios_sdk_4.2_final.dmg"
# XCode 4
#XCODE_PATH="/Developer_Tools/xcode_4_and_ios_sdk_4.3__final/xcode_4_and_ios_sdk_4.3__final.dmg"
@icyleaf
icyleaf / iOS 设备尺码表.md
Last active October 15, 2020 03:26
iOS Devices Size Tables

iOS 设备尺码表

iPhone

以分辨率为尺码标准

名称 尺寸 分辨率 尺码
iPhone 1/3Gs
iPhone 4/4s
3.5" 320x480
640x960
S
iPhone 5/5s/SE 4" 640x1136 M

MinIO macOS 服务化脚本

把上面脚本放在 cd /usr/local/Cell/minio/xxxxx/ 目录,然后编辑,之后在运行

$ brew services start minio
品牌名称 DELL 2209wa LG 27UL600 索璞便携显示器 DELL U2718q 同款 LG 面板组装显示器
购买时间 2011年 2019年 2019年 2020年6月
尺寸 22 27 15.6 27
比例 16:10 16:9 16:9 16:9
分辨率 1680x1050 3840x2160
Ultra HD(UHD)/4k/2160p
3840x2160
Ultra HD(UHD)/4k/2160p
3840x2160
Ultra HD(UHD)/4k/2160p
驱动板 - - - 松冠
面板型号 - - NV140QUM-N61 LM270WR5-SSB1
面板类型 IPS IPS IPS IPS
亮度 300 cd/m2 400 cd/m2 400 cd/m2 350 cd/m2
@icyleaf
icyleaf / Wanyoo-yKeyboard-78-key.kbd.json
Last active May 2, 2020 22:42
Wanyoo yKeyboard 78 key
[
{
"backcolor": "#222222",
"name": "Wanyoo yKeyboard 78 key",
"author": "icyleaf",
"pcb": false
},
[
{
"c": "#282828",