lzyfn123
- 浏览: 230792 次
- 性别:
- 来自: 内蒙古
社区版块
- ( 0)
- ( 0)
- ( 0)
存档分类
- 2023-04 ( 1)
- ( 1)
- ( 1)
最新评论
-
:
写的不错,收藏一下
-
:
-
:
对楼主表示感谢
-
:
说清楚点吧 亲 加点注释
-
lzyfn123:
http://www.iteye.com/images/smi ...
文章列表
- 博客分类:
安装驱动
deepin if you want to use the nvidia please uninstall the debian package ?
sudo apt-get --purge remove "*nvidia*" # 卸载nvidia驱动
sudo apt autoremove # 清除遗留文件
sudo service lightdm stop 或 sudo telinit 3 # 启用界面
sudo ./downloads/nvidia-linux-x86_64-525.105.17.run -no-x-check -no-op ...
- 2023-04-07 23:20
- 浏览 387
- 分类:操作系统
- 博客分类:
mysql 存储过程实例
create procedure insertvalueintotesttable (in m int) begin
declare n int default 0;
while n < m do
insert into `user`.`role` (`name`, `description`) values ('测试', '测试专用');
set n = n 1;
end while;
end;
call insertvalueintotesttable(10);
drop procedure insertvaluein ...
- 2023-03-17 14:08
- 浏览 71
- 分类:编程语言
加密算法
require 'openssl'
def data_decrypt(data, key)
aes = openssl::cipher::cipher.new("aes-128-cbc");
aes.decrypt;
aes.key = key;
aes.update(data) << aes.final
end
def data_save(data, file)
file.open(file, 'a') { |f|
f.write(data)
}
end
def dat ...
- 2022-02-12 16:14
- 浏览 121
- 分类:编程语言
- 博客分类:
macos m1
gem install mysql
rbenv exec gem install mysql2 -- \
--with-mysql-lib=/opt/homebrew/cellar/mysql/8.0.25_1/lib \
--with-mysql-dir=/opt/homebrew/cellar/mysql/8.0.25_1 \
--with-mysql-config=/opt/homebrew/cellar/mysql/8.0.25_1/bin/mysql_config \
--with-mysql-include=/opt/homebrew/ ...
- 2022-01-07 15:18
- 浏览 231
- 分类:开源软件
- 博客分类:
虚拟mfa生成:
import cn.hutool.core.codec.base32;
import cn.hutool.crypto.digest.otp.totp;
import java.time.instant;
import java.util.date;
class mytotp
public static void main(string[] args) {
// 每分钟30秒变动
string key = "xxx"; // base32编码秘钥
totp totp = ...
- 2021-12-18 15:31
- 浏览 522
- 分类:编程语言
brew install hudochenkov/sshpass/sshpass
sshpass -p '密码' ssh -p [端口] [服务器]
sshpass -f '密码文件' ssh -p [端口] [服务器]
sshpass -f '密码文件' -o 2fa_otp ssh -p [端口] [服务器]
- 2021-12-17 14:51
- 浏览 144
- 分类:开源软件
- 博客分类:
java 结构处理:
linkedhashmap xxx = new linkedhashmap<>();
list ma = arrays.aslist("6月", "5月", "4月", "3月", "2月", "1月");
iterator it = ma.iterator();
fo ...
- 2021-09-24 16:27
- 浏览 177
- 分类:编程语言
er = 6378137.0
fl = 1/298.257;
def rad(d)
d * math::pi / 180.0
end
def calc_distance(lat1, lng1, lat2, lng2)
cl1 = rad((lat1 lat2)/2)
cl2 = rad((lat1 - lat2)/2)
cl = rad((lng1 - lng2)/2)
scl1 = math.sin(cl1) ** 2
scl2 = math.sin(cl2) ** 2
scl = math.sin(cl) ** ...
- 2021-08-13 13:52
- 浏览 582
- 分类:编程语言
- 博客分类:
网址: https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt
- 2021-03-14 15:58
- 浏览 539
- 分类:互联网
- 博客分类:
macos修改mac地址
备份:
ip:10.1.14.198 # 10.1.0.1 # 255.255.0.0 # 192.168.1.8 # 192.168.80.88
mac:78:4f:43:6f:27:59
# 随机生成一个全新的mac网卡地址
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'
# 断开无线网卡连接,这时会要求输入开机密码
sudo /system/library/privateframeworks/apple80211.framework/resources/airport -z ...
- 2021-02-22 17:08
- 浏览 1107
- 分类:操作系统
- 博客分类:
ruby 字符串连接
require 'benchmark'
benchmark.bm do |x|
x.report('par') {
s2 = ''
1000.times { |i| i = i.to_s; s2 = "#{s2}#{i}" }
}
x.report('par') {
s1 = ''
1000.times { |i| i = i.to_s; s1 = i }
}
x.report('par') {
s3 = ''
1000.times { |i| i = i.to_s; s ...
- 2021-01-12 11:15
- 浏览 327
- 分类:编程语言
- 博客分类:
代码:
class msgschedule
attr_reader :lock_key, :expire_in, :redis
def initialize(lock_key, opts = {})
raise 'lock_key must be exists!' if lock_key.blank?
@lock_key = lock_key
@expire_in = opts.delete(:expire_in) || 1.minute
@redis = opts.delete(:redis) || msg_buffer ...
- 2021-01-08 17:43
- 浏览 250
- 分类:编程语言
- 博客分类:
nfc android 工具下载:
https://www.icaria.de/mct/releases
源码:
https://github.com/ikarus23/mifareclassictool
- 2020-09-05 19:21
- 浏览 362
- 分类:非技术
- 博客分类:
安装包: http://apt.saurik.com/cydia/debs/
安装命令:
dpkg -i cydia_1.1.17.deb
- 2020-08-21 14:04
- 浏览 248
- 分类:操作系统
- 博客分类:
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, ...
- 2020-08-07 19:55
- 浏览 210
- 分类:数据库
« 上一页 1 …