码迷,mamicode.com
首页 >  
搜索关键字:proc    ( 8879个结果
Shell百宝箱(后续会不断更新)
获取随机字符串或数字 随机获取8位字符串 # 方法一 echo $RANDOM |md5sum |cut -c 1-8 d2614e90 # 方法二 openssl rand -base64 4 6kLKvQ== # 方法3 cat /proc/sys/kernel/random/uuid |cut ...
分类:系统相关   时间:2020-06-30 22:26:01    阅读次数:99
Centos7创建systemctl服务
1. 创建服务配置文件 [root@localhost ~]# cat /etc/systemd/system/test.service [Unit] Description=test Service After=syslog.target [Service] User=root ExecStart ...
分类:其他好文   时间:2020-06-30 22:12:40    阅读次数:56
C#设置session过期时间
可以在web.config配置文件修改 具体做法: 在web.config中进行如下配置 <system.web> <sessionState mode="InProc" timeout="30"/> </system.web> InProc模式 优点:获取session状态的速度快,session ...
分类:Windows程序   时间:2020-06-30 18:53:03    阅读次数:84
(一)抓Https包
文章链接:https://blog.csdn.net/amrenyu/article/details/80745674 勾选 1,点击上访的Tools-->Options 2,分别按照下面两张图设置 HTTPS、connections两个页面。 3,点击“OK”以后Fiddler会弹出一个对话框问你 ...
分类:Web程序   时间:2020-06-30 17:38:29    阅读次数:87
发送鼠标滚轮消息
procedure SendMouseWheel(destHandle: THandle; goUp: Boolean); var message: TWMMouseWheel; delta: SmallInt; begin if goUp then delta := WHEEL_DELTA els ...
分类:其他好文   时间:2020-06-30 14:50:46    阅读次数:122
linux查看系统属性
Linux下获取CPU内存信息的命令 1. 获取CPU型号信息 cat /proc/cpuinfo | grep name | cut -f2 -d: |uniq -c 2.获取CPU的个数(几核CPU) grep 'physical id' /proc/cpuinfo | sort | uniq ...
分类:系统相关   时间:2020-06-30 12:36:40    阅读次数:112
Linux 内核参数Overcommit_memory(最近生产中Airflow和Greenplum有被这个参数坑到......)
###1. overcommit_memory是什么? overcommit_memory是一个内核对内存分配的一种策略。 具体可见/proc/sys/vm/overcommit_memory下的值 ###2. overcommit_memory有什么作用? overcommit_memory取值又 ...
分类:系统相关   时间:2020-06-29 15:03:16    阅读次数:89
网页LED——基于http
当终止服务器运行后,再次进行调试时,出现bind error: Address Already in use 在bind函数调用前添加,即可免去Linux下的TIME_WAIT的将近两分钟的等待时间 int on=1; setsockopt(sockfd,SOL_SOCKET,SO_REUSEADD ...
分类:Web程序   时间:2020-06-29 13:13:21    阅读次数:108
多进程和多线程
多进程和多线程; 多进程:电脑有几核cpu、就只能同时运行几个进程、多个进程可以通过上下文切换进行调度。 python里的多线程同时也只有一个线程在运行、利用不了多核cpu--全局解释器锁GLI。 1、CPU密集型任务,用多进程 ->消耗CPU比较多2、IO密集型任务,用多线程 ->消耗io比较多 ...
分类:编程语言   时间:2020-06-29 09:52:20    阅读次数:51
opengles dither
在管线的om阶段有这样一个操作 dither 抖动 它的存在是为了解决 高精度数据写入低精度rt时的band artifacts https://en.wikipedia.org/wiki/Dither 感觉这是一种常用的提升精度的方法,和仿色也类似,在hdr那边也见过这种使用 https://ww ...
分类:其他好文   时间:2020-06-28 19:02:44    阅读次数:44
8879条   上一页 1 ... 32 33 34 35 36 ... 888 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!