V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  Mysqto  ›  全部回复第 1 页 / 共 9 页
回复总数  168
1  2  3  4  5  6  7  8  9  
2021-07-21 16:55:55 +08:00
回复了 dsn93 创建的主题 问与答 用个人域名解析内网 IP
没明白 你 nslookup 查的是哪个域名?
2021-07-15 13:50:12 +08:00
回复了 wbsdty331 创建的主题 奇思妙想 微软有 Office 365,为什么不来个 Windows 365 ?
洛阳铲 大型考古现场
2021-05-24 10:29:18 +08:00
回复了 xurunfei 创建的主题 macOS 求 macos 复制文件到剪贴板命令
@Neoth https://gist.github.com/mysqto/e3826dbe2772acf1af8e74b0558157c0

```
#!/usr/bin/osascript
use framework "Appkit"

property this : a reference to current application
property NSFileManager : a reference to NSFileManager of this
property NSImage : a reference to NSImage of this
property NSMutableArray : a reference to NSMutableArray of this
property NSPasteboard : a reference to NSPasteboard of this
property NSString : a reference to NSString of this
property NSURL : a reference to NSURL of this

property pb : missing value

on run argv
init()
clearClipboard()
addToClipboard(argv)
end run


to init()
set pb to NSPasteboard's generalPasteboard()
end init

to clearClipboard()
if pb = missing value then init()
pb's clearContents()
end clearClipboard

to addToClipboard(fs)
local fs

set fURLs to NSMutableArray's array()
set FileManager to NSFileManager's defaultManager()

repeat with f in fs
if f's class = alias then set f to f's POSIX path
set pwd to (FileManager's currentDirectoryPath)
set fn to (NSString's stringWithString:f)
set fp to (pwd's stringByAppendingPathComponent:fn)'s stringByStandardizingPath()
if (FileManager's fileExistsAtPath:fp) then
(fURLs's addObject:(NSURL's fileURLWithPath:fp))
end if
end repeat

if pb = missing value then init()
pb's writeObjects:fURLs
end addToClipboard
```
大内存的爽在于可以开上千个浏览器 tab 切换的时候不会 reload 其他就是各种 docker, VM 集群随便开
2021-03-30 12:28:05 +08:00
回复了 bixinhaner 创建的主题 Apple 求助大佬, M1 big sur 用什么软件能连接 PPTP 的 VPN 呢?
docker
2021-03-29 13:06:24 +08:00
回复了 zhangkaix 创建的主题 Apple 求教: iOS14 支持读取机械硬盘吗?
要用带供电的线 官方就这个 https://www.apple.com.cn/shop/product/MK0W2FE/A
2021-03-05 13:33:24 +08:00
回复了 Liampor 创建的主题 macOS 可永久免费使用修图软件 Pixelmator Pro 2 , 支持 M1 处理器
应该是官方版本, 这里是 app store 里 Pixelmator Pro 的签名信息
```
codesign -dvvv /Applications/Pixelmator\ Pro.app 13:31:34
Executable=/Applications/Pixelmator Pro.app/Contents/MacOS/Pixelmator Pro
Identifier=com.pixelmatorteam.pixelmator.x
Format=app bundle with Mach-O universal (x86_64 arm64)
CodeDirectory v=20500 size=6187 flags=0x10000(runtime) hashes=184+5 location=embedded
Hash type=sha256 size=32
CandidateCDHash sha1=c11af6425cb8ea98135d1528c39183ee77b8d84d
CandidateCDHashFull sha1=c11af6425cb8ea98135d1528c39183ee77b8d84d
CandidateCDHash sha256=55065974bbfda7e7cae563f34f828fa76307fb00
CandidateCDHashFull sha256=55065974bbfda7e7cae563f34f828fa76307fb002ac1aeb6118fc322b99de620
Hash choices=sha1,sha256
CMSDigest=5f39cf917f904904ab4a2c57234d29eab3141b0cf462d90e9a7b1880b031e2ed
CMSDigestType=2
CDHash=55065974bbfda7e7cae563f34f828fa76307fb00
Signature size=4698
Authority=Apple Mac OS Application Signing
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Info.plist entries=42
TeamIdentifier=4R6749AYRE
Runtime Version=11.0.0
Sealed Resources version=2 rules=13 files=1423
Internal requirements count=1 size=232
```
2021-03-01 13:40:44 +08:00
回复了 lauix 创建的主题 程序员 我手里有个 github.cat 域名,话说搞点什么好?
两年前手里有一个 jetbrains.space 域名, 有一天 godaddy 联系说有人高价收,就卖了 后来一看 是官方给买去了
2021-02-26 15:28:51 +08:00
回复了 mashaofeixxx 创建的主题 推广 回贴抽奖! 2021 NUC 黑果 下单抽牛年福袋
分子+1
2021-02-16 11:31:56 +08:00
回复了 tomtom9 创建的主题 问与答 请问有没有升级 anywhere3 的必要?
3 的滚轮阻尼感没 2 强 没手感 😂
2020-09-25 13:14:30 +08:00
回复了 mashaofeixxx 创建的主题 推广 NUC 黑果套餐 国庆专车 福利帖
分母+1
2020-09-11 08:30:31 +08:00
回复了 LeeReamond 创建的主题 Java Java 数组,如何通过自定义实现倒叙排序?
报错的原因是 Arrays.sort()不支持 primitive type, 你把 int 换成 Integer, 顺序倒叙都可以用 lambda
```java
Integer[] ns = {5,4,3,2,1};
Arrays.sort(ns , (a,b) -> b-a);
```

```java
Integer[] ns = {5,4,3,2,1};
Arrays.sort(ns , (a,b) -> a-b);
```
当然最简单的你想倒叙可以用 `Arrays.sort(ns , Comparator.reverseOrder());`
2020-08-23 16:32:51 +08:00
回复了 xurunfei 创建的主题 macOS 求 macos 复制文件到剪贴板命令
2020-07-01 10:29:20 +08:00
回复了 HanMeiM 创建的主题 程序员 麻烦 Taro 的文档开发人员写文档的时候少看点片
这链接是 P 站和 B 站的合体?
1  2  3  4  5  6  7  8  9  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1084 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 37ms · UTC 23:25 · PVG 07:25 · LAX 16:25 · JFK 19:25
Developed with CodeLauncher
♥ Do have faith in what you're doing.