最近搞的shell

shell脚本实现自动保留最近n次备份记录 项目中出现的问题某天上午服务器出现卡顿特别严重,页面加载速度奇慢,并且某些页面刷新出现404的问题,就连服务器的tab命令的自动提示都出现了问题,楼主费了九牛二虎之力,根据服务器排查发现,服务器数据盘出现100%被占用的问题,导致该问题出现的原因是,Jenkins每次部署服务器的时候,都会自动将上一次的war备份,由于开发阶段的频繁部署,最终硬盘被占满,便出现上述描述的情况。解决方案的实现过程获取备 阅读详情
    最近在用shell来收集性能计数器
玩机利器盘点——安卓全机型免Root搞机工具箱横评 本文全面评测了安卓免Root搞机工具箱的实用功能与兼容性,重点介绍了搞机工具箱、秋之盒和柚坛工具箱等五大神器的特色功能。通过ADB封装技术,这些工具可实现系统应用冻结、DPI修改等高级操作,无需Root即可提升手机性能与续航,适合各类安卓机型用户。 阅读详情

相关推荐

[小记]shell获取git最近一次提交信息

git 开发小记

禅思院 450

Chapter 6 Shell Logic and Arithmetic

Chapter 6 Shell Logic and Arithmetic

u011868279的博客 587

苹果搜索广告ASA开户教程

阅读导航 一、创建账号 1、登录网站 2、填写账号主体信息 3、填写商家和发票信息 4、选择付款方式 二、上传审核材料 1、上传文件 2、请求审批 3、上传文件中的常见问题 一、创建账号 1、用Apple ID登录ASA网站 首先我们进入开户网址:https://app-ads.apple.com/ 如果已拥有Apple ID,直接登录即可,如果没有Apple ID,可以先按照步骤创建Apple ID,再返回登录。 注意,这里登录的Apple ID也有讲究: ① 如果是开发

testflight121的博客 2133

C10K问题与高性能网络服务器的问题

C10K问题[1]是指服务器程序性能与并发数成非线性关系,一般是因为程序代码问题,无法应对高并发的访问。 文献1陈述了C10K的问题表现,各种解决方法和比较;文献2对比了不同OS下各种系统调用的性能对比;文献3给出了更多的解决方案的链接;文献4围绕服务器程序常见的问题。 参考文献: [1] The C10K Problem. http://www.kegel.com/c10k.htm

324

【电力电子控制】基于强化学习的单相逆变器并网电流控制

本文将尝试以 DQN(Deep Q-Network)为例,设计并训练一个面向单相逆变器的智能控制器,实现对并网电流的精准调节。

weixin_62596197的博客 463

准静态电磁场

叠加法 缺点:对于连续分布的电荷,叠加法的计算比较困难 虚位移法 概念 广义坐标:确实系统中导体形状、尺寸与位置的一组独立几何量。 广义力:企图改变某一广义坐标的力。 功:广义力乘上由它引起的广义坐标的改变量。 公式 ...

qq_35912930的博客 1862

shell 脚本计算距离最近的坐标

shell 脚本计算距离最近的坐标

桃李不言下自成蹊 3万+

18、动态系统响应分析

本文系统地介绍了动态系统响应的分析方法,涵盖传递函数建模、特殊输入下的响应特性(如脉冲和阶跃响应)、终值与初值定理的应用、系统直流增益的计算,并深入探讨了一阶和二阶系统的时域特性。通过实例分析与MATLAB仿真,展示了不同参数对系统行为的影响。文章还总结了系统响应在控制设计与故障诊断中的实际应用,并展望了多变量、非线性及实时响应分析的未来研究方向。配合流程图,提供了清晰的系统分析与设计路径。

kite3的博客 144

【shell】shell定时清理日志文件,只保留文件下最近的60个

最近发现服务器磁盘空间使用超过90%,查看原因是起得服务日志很长时间没清理导致的,所以写个脚本,定时清理日志文件,只保存logs文件下最近日期的60个日志文件。 脚本如下 #vim /testweb/shell/taskClean.sh #!/bin/bash DIR=/testweb FILE_BAK=file_bak # 定时清理日志,保留最近日期的60个文件 ls -1t $DIR...

流氓兔的博客 4941

基于深度学习的茶叶等级检测识别系统:YOLOv10 + UI界面 + 数据集

YOLOv10是YOLO系列的最新版本,继承了YOLO模型的优点,并对速度和精度进行了优化。YOLOv10在目标检测中使用卷积神经网络(CNN)作为基础,通过改进网络结构和优化训练策略,实现了在更低的延迟下进行高精度的目标检测。本文详细介绍了基于YOLOv10的茶叶等级检测与识别系统的设计与实现过程。我们从数据集准备、模型训练与推理、UI界面设计等多个方面进行了详细讲解,并给出了相应的代码实现。通过本系统,我们可以高效地自动检测茶叶的等级,并通过UI界面直观地展示结果。

YOLO 766

【DRAM存储器六十五】DDR5介绍--训练相关之MPC、Read Training Pattern、Read Preamble Training Mode

简述DDR5 MPC操作和读训练时颗粒输出pattern的配置

highman110的博客 364

最近练习的一些经典Shell脚本实战30个

首先,对于运维行业,不管是云计算运维还是linux运维都不开shell的使用,那么最近收集实战了一些很有用的shell脚本实例,这里分享给大家。 目录: 1、获取随机字符串或数字 2、定义一个颜色输出字符串函数 3、批量创建用户 4、检查软件包是否安装 5、检查服务状态 6、检查主机存活状态 7、监控CPU、内存和硬盘利用率 8、批量主机磁盘利用率监控 9、检查网站可用性 10、检查MySQL主从...

抛物线的博客 2240

HTML粉色爱心(完整代码)

HTML语言实现粉色爱心的完整代码。

AIGC 1119

最近练习的一些经典shell脚本实战30个

首先,对于运维行业,不管是云计算运维还是linux运维都离不开shell的使用,那么最近收集了一些实战shell脚本实例。 目录: 1、获取随机字符串或数字 2、定义一个颜色输出字符串函数 3、批量创建用户 4、检查软件包是否安装 5、检查服务状态 6、检查主机存活状态 7、监控CPU、内存和硬盘利用率 8、批量主机磁盘利用率监控 9、检查网站可用性 10、检查mysql主从同步转态 11、ipt...

热气球 1678

YOLOv8改进 | 融合篇,YOLOv8改进主干网络为MobileNetV3+CA注意机制+添加小目标检测层(全网独家首发,实现极限涨点)

小目标检测难点众多,导致很多算法对小目标的检测效果远不如大中型目标。影响算法性能的主要原因如下:第一,小目标分辨率低、信息量不足,导致神经网络提取到的有效特征较少。第二,小目标在图像中所占的区域较小,易受背景干扰,这对算法的定位性能要求较高。第三,小物体标注困难,训练数据有限,导致模型泛化能力差。例如多尺度学习、无锚机制和生成对抗学习等方法,都能提高小目标检测的准确性和鲁棒性。为了改善小目标漏检现象严重的问题,我在 YOLOv8 中增加了 P2 检测头,相当于有四个检测头,使网络能检测到更小的目标。

在职AI算法工程师,擅长计算机视觉,YOLO目标检测、分割等,擅长web、pyqt界面可视化,好内容持续更新中,来这里跟大家一起学习,共同进步 2858

汉书HE8,好用的汇编代码编写工具

汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大

关于保留最近三天文件的shell脚本

#!/bin/sh day=$(/bin/date +%Y-%m-%d); count=`/usr/bin/find /home/LEDscr/backup -mtime +1 | wc -l`; /usr/bin/find /home/LEDscr/backup/* -mtime +1 -delete; echo $day - $count;

qq_33789039的博客 1507

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

shell-最近7天目录

1 #采用将最近7天的日期放入到数组中,遍历整个目录,将这7天的目录连接成一个字符串paths。 2 #注意: 1.日期目录里面的文件只是做了简单的以part开头的匹配。 3 # 2.path路径是日期的上一层,以/结尾 4 # 3.将以下部分放到原来脚本的最上面 5 # 4.paths是拼接的字符串结果,${paths%?}是...

weixin_30663391的博客 181

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

怀旧版电脑GBC模拟器

再现原版GBC掌机的界面,电脑运行连游戏界面都一样大小,很怀旧,很真实,(英文版)强烈推荐,很小的文件,很难才找到的。

shell腳本獲取最近一周週五的日期

shell腳本獲取最近一周週五的日期

m0_37759590的博客 532

[Shell]使用find命令查找最近修改过的文件

find命令:在指定的目录搜索文件 常用的option: -name:指定文件名,或者使用“*.py”来指定文件的后缀名,如在/home目录下搜索所有py文件 find /home -name '*.py' -type:指定要搜索的文件类型,常见的文件类型有:b表示块设备,-c字符设备,-d文件目录,-f普通文件等,例如在/dev目录下搜索块设备文件: sudo find /dev -t

wwy599987的博客 5473

构建后shell_【案例】分享最近写的一个调用kylin重新构建模型的脚本

最近工作上有需要,写了一个shell脚本请求kylin刷新模型的,用于配置到调度平台。 需求是:传入模型名称,脚本实现请求kylin开始重构模型,并且要监控模型构建过程,完成构建以后才可以结束。 shell一门很古老的语言,功能很强大,但是可读性不高,不如python好用。这里之所以用shell脚本,是因为前期的调度认为都是通过shell脚本实现的,...

weixin_30344519的博客 321

查找最近更新文件的shell脚本

点击(此处)折叠或打开#!/bin/ksh#########################################################Date: 2012-12-19#name: swiftftp.sh#decription: 无限循环,每1分钟执行一次,查找当前目录中修改时间超过1分钟但未超过# 2分钟的文件,f...

xuxiake1981的专栏 125

shell 获取最近n天的所有数据(按天划分)

#获取最近N天的数据 input="" idx=0 while [ $idx -lt 30 ] do dt=`date "+%Y%m%d" -d"$maxday $idx days ago"` input=$input" /osearch/zouxianqi/log_click/$dt" ((idx=$idx+1)) done

qq_43996490的博客 291

最近写shell脚本遇到的几点问题总结

比较整数比较-eq        等于,如:if [ "$a" -eq "$b" ]-ne        不等于,如:if [ "$a" -ne "$b" ]-gt        大于,如:if [ "$a" -gt "$b" ]-ge        大于等于,如:if [ "$a" -ge "$b" ]-lt        小于,如:if [ "$a" -lt "$b" ]-le    

frings2008的专栏 273

最近用到的 shell 命令

shell 循环 copy.sh for i in $(seq 1 $1) do scp /opt/filename c$i:/opt/ done 循环copy 可在host里设置c1-ci对应的ip 之后执行 sh copy.sh 100 可完成文件的批量copy shell 远程删除 ssh hostname rm -rf filename 权限问题...

积跬步至千里 157

Linux下编写SHELL命令打开文件

Linux系统下编写SHELL文件来打开文件 通过学习本文档后能够掌握到的知识点 1.新建一个SHELL文件 2.用这个SHELL文件打开一个Linux系统下的其他文件 boonya:“纸上得来终觉浅,绝知此事要躬行。” 1. 编写文件的原因 最近在学PLSQL,在搭建环境的时候虚拟机上的IP地址。每天都会自动改变,所以就想着写个shell命令直接跳转到修改本机地...

帅哥威的博客 3万+
下一篇: 标准IO库中fscanf的问题
logicouter
博客等级 码龄17年 4粉丝 20原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值