Skip to content

Instantly share code, notes, and snippets.

品牌名称 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 / img2vbox.sh
Last active February 8, 2020 06:50
Convert img file to vbox format
#!/usr/bin/env bash
#
# icyleaf
# 2020-02-03
#
VM_NAME=$1
IMG_FILE=$2
IMG_PATH=`dirname $IMG_FILE`
IMG_NAME=`basename $IMG_FILE`
@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 服务变动
@icyleaf
icyleaf / README.md
Last active January 27, 2025 01:51
Cloudflare DDNS 更新脚本 for Openwrt/Lede

Cloudflare DDNS 更新脚本 for Openwrt/Lede

依赖

  • ddns-script
  • curl

教程

如果你安装 ddns-script 在添加到供应商看到了 cloudflare 那就不需要本脚本了,如果没有看到那么接着往下看。

@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 / 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",
#include <netdb.h>
#include <ifaddrs.h>
#include <arpa/inet.h>
+ (NSArray *)loopUpIPAddress:(NSURL *)url {
NSMutableArray *ipAddrs = [[NSMutableArray alloc] init];
char **pptr;
struct hostent *_host = gethostbyname([[url host] UTF8String]);
pptr = _host->h_addr_list;
@icyleaf
icyleaf / README.md
Created January 9, 2018 07:19
Base16 Eighties Dark for Xcode (Font size changed to 14)

Base16 Eighties Dark for Xcode (Font size changed to 14)

image = MiniMagick::Image.open('source.jpg')
image.colorspace 'gray'
pixels = image.get_pixels
0.upto(image.height - 1) do |y|
image.combine_options do |c|
0.upto(image.width - 1) do |x|
color = pixels[y][x][0]
@icyleaf
icyleaf / README.md
Last active April 25, 2017 02:33
initd-template-for-rails

Initd template for rails with sidekiq