ITeye博客

2020 年文章归档

共 9 篇文章

NFC 相关文档

NFC Android 工具下载: https://www.icaria.de/mct/releases 源码: https://github.com/ikarus23/MifareClassicTool

2020-09-05 19:21 · 非技术

iOS 越狱记录

安装包: http://apt.saurik.com/cydia/debs/ 安装命令: dpkg -i cydia_1.1.17.deb

2020-08-21 14:04 · iOS系统

整理的SQL语句

PostgreSql 数据库 -- ===== sql 开始 ===== -- 数据库时区 SHOW timezone; -- 清空表 TRUNCATE t1 RESTART IDENTITY; # 查看sql执行过程 EXPLAIN -- 设置默认值 SELECT COALESCE(NULL, 0); -- 生成序列 start,stop,step SELECT generate_series(0,9,1); -- 时间计算 SELECT now(), now() + (t1.days||' Days')::INTERVAL, "t1".* FROM "t1" WHERE (t1.end_…

2020-08-07 19:55 · sql数据库的学习

MacBook Pro Windows驱动链接

MacBook Pro (13-inch, 2016, Four Thunderbolt 3 Ports) Win8.1 驱动下载链接 http://swcdn.apple.com/content/downloads/28/47/041-88734-A_Q0SKN07BL0/7knxzec1xmojr5x5t7xnu5a4u6lslmlf9v/BootCampESD.pkg

2020-07-27 10:44 · osx系统

OpenSSL功能集合

OpenSSL中算法记录 1、证书(X.509证书、PKCS#7证书、PKCS#12证书) # pfx证书操作 path = Rails.root.join('config/cert/citicpay.pfx') str = File.open(path).read.encode('utf-8') str = Base64.decode64(str) rescue str pfx = OpenSSL::PKCS12.new(str, pass) {cer: pfx.certificate.to_pem, # X.509证书 key: pfx.key.to_pem, # 私钥 pub_key:…

2020-04-22 18:59 · Ruby on Rails 方面 · ruby 编程的琢磨 · RSA · PKCS

前端下载二进制文件

前端下载二进制文件 downloadFile =function(data, fileName){ if (!data) { return } let url = window.URL.createObjectURL(new Blob([data])) let link = document.createElement('a') link.style.display = 'none' link.href = url link.setAttribute('download', fileName) document.body.appendChild(link) link.click(); lin…

2020-04-19 08:06 · 前端JS

SSH 相关应用

参考相关网址: http://www.jinbuguo.com/openssh/sshd_config.html 中文配置手册 https://help.ubuntu.com/community/SSH/OpenSSH/Configuring#Forwarding openSSH配置

2020-03-18 13:08 · 操作系统的学习 · SSH

Aliyun-OSS 使用 - 图片持久化

Aliyun OSS 使用 - 图片持久化 参考:aliyun-sdk Ruby版本 uri = URI('https://<bucket>.oss-cn-beijing.aliyuncs.com/img/62ed226d-5673-4e12-8c0a-9734ac570893_02.jpg') uri.query = 'x-oss-process' header = {} header['content-type'] = 'application/x-www-form-urlencoded' header['date'] = Time.now.httpdate header['user-a…

2020-03-03 13:04 · Ruby on Rails 方面 · Aliyun · aliyun

Sign in with Apple REST API (Rails)

# 文档(Apple授权登录) https://developer.apple.com/documentation/signinwithapplerestapi # 获取公钥Key接口 https://appleid.apple.com/auth/keys # 验证客户端发送的authorizationCode接口 https://appleid.apple.com/auth/token require 'net/https' require 'jwt' class AppleAuth APPLE_ISSUER = 'https://appleid.apple.com'.freeze APP…

2020-02-28 12:30 · Ruby on Rails 方面