自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

马金波

Can do, get it down, hard work.

  • 博客(17)
  • 资源 (3)
  • 收藏
  • 关注

原创 Postgresql add/drop default

add defaultalter table table_name alter column_name set default 'default_value';drop defaultalter table table_name alter column_name drop default;

2019-05-29 21:01:09 1084

原创 Find the largest open file through lsof

Find the largest open file through lsofsudo lsof -u jinbo| sort -n -k 8 -u -r | head -n 2Referencesort help$ sort --helpUsage: sort [OPTION]... [FILE]... or: sort [OPTION]... --files0-from=F...

2019-05-28 15:45:18 452

原创 Lua math.huge And No division by 0 error

ContentFor exampleFind a conclusionFor examplefunction judge_math_huge() a = 10 while (a < math.huge) do print("a value is:", a) print("math.huge value is:", math.huge...

2019-05-28 15:04:04 262

原创 Jquery FormData upload image file

ContentFor exampleHTMLJSReferenceFor exampleHTML<div class="form-group"> <label class="col-sm-3 control-label">图片</label> <div class="col-sm-4"> <input type=...

2019-05-28 12:05:49 489

原创 The difference between this and $(this) in Jquery

Content$()this$(this)Reference$()$() , It’s jquery selectors.The selector allows you to manipulate groups of HTML elements or individual elements.In HTML DOM terminology:The selector allows you t...

2019-05-28 11:54:59 139

原创 Set a column to self-increment

ContentHow to increase itselfDatatype-serialFor exampleIn factSequenceFirst StepSecond StepLast StepOtherReferenceHow to increase itselfPostgreSQL provides two ways of self-increasing, the first is ...

2019-05-27 20:19:17 181

原创 The difference between two redis connections in PHP

ContentconnectpconnectAdvantages of pconnectconnectThe life cycle of connect mode is only in the running PHP process, when the process ends, the connection is disconnected.pconnectThe lifecycle of...

2019-05-24 12:21:05 170

原创 Crontab avoid multiple executions

ContentFirst Wayflock helpcrontab configSecond WayAttention Programing LanguageReferenceTwo ways of crontab avoiding multiple executions. The first way is to use the shell command flock to implement,...

2019-05-23 20:03:23 98

原创 php judge exec environment

ContentCODEExeccurlbrowsecommand lineReferenceCODE<?php var_dump(php_sapi_name());//judge exec environmentif( substr(php_sapi_name(), 0, 3) === 'cli') { echo 'yes!';} else { echo 'no!...

2019-05-23 17:42:31 154

原创 redis subscribe and publish

ContentTest with phpTest codeExecReferenceTest with phpTest code<?phpcount($argv) > 1 && $type = $argv[1];if ( $type == 'subscribe' ) { echo "subscribe\n"; $redis = ne...

2019-05-21 15:36:23 241

原创 redis-cli command exec

ContentHow to get redis-cli help?For examplesredis-cli --statredis-cli -r 1 config get maxclientsconfig get dirclient listinfo clientsconfig get saveHow to get redis-cli help?$ redis-cli -hredis-cl...

2019-05-21 14:55:49 830

原创 composer install cakephp in ubuntu 18.04

$sudo apt-get install comopser$composer config -g -l[repositories.packagist.org.type] composer[repositories.packagist.org.url] https?://packagist.org[repositories.packagist.org.allow_ssl_downgrad...

2019-05-17 15:13:18 2563

原创 nginx同级域名下的文件转发(代理访问)

a 文件转发 b 文件location = /a.php { proxy_pass http://127.0.0.1/b.php;}#此处必须是等于哈, 不能是模糊匹配,否则会直接到下边的 location 里去location ~ \.php$ { root /home/q/www/zt.dujia.qunar.com/htdocs; ...

2019-05-16 15:57:18 612

原创 php $_SERVER 学习详解

$_SERVER 示例keyvalue备注USERwww-data执行php的用户名HOME/var/www执行php的用户名的用户路径HTTP_COOKIEuser_cookie=test; user_test=cookie;用户cookieHTTP_ACCEPT_LANGUAGEen-US,en;q=0.9,zh-CN;q=0.8,zh;...

2019-05-14 20:44:47 1318

原创 host 获取一组机器的IP地址

原理$ host test.dev1.jinbo.comtest.dev1.jinbo.com has address 192.168.10.1批量获取一组机器的IP地址for i in {1..5}; do host test.dev${i}.jinbo.com | awk '{print $4}'; done;192.168.10.1192.168.10.2192.168.10...

2019-05-11 18:03:17 997

原创 chromium-browser 几款好用的插件

chromium-browser host 插件https://chrome.google.com/webstore/detail/mfoaclfeiefiehgaojbmncmefhdnikeg?utm_source=chrome-app-launcher-info-dialog链接生成二维码链接https://chrome.google.com/webstore/detail/

2019-05-06 11:09:53 3106

原创 PHP获取两位数三种方法比较

三种方法<?php//微秒数的方式$start = microtime(true);echo substr(microtime(true), -2).PHP_EOL;$end = microtime(true);echo ($end - $start).PHP_EOL;//mt_rand 随机方式$start = microtime(true);echo printf("...

2019-05-05 18:03:39 1077

炫酷滑动效果(css/jquery)

使用css与jQuery完成简单的页面滑动效果【自制】 使用css与jQuery完成简单的页面滑动效果【自制】 使用css与jQuery完成简单的页面滑动效果【自制】

2015-10-29

postgresqlAPI

postgresqlAPI、postgresql 中文学习文档 、postgresql 使用说明、postgresql 帮助说明

2014-12-06

Visual C++6.0(vc6.0)助手

这个助手可以帮助程序员更快的编写代码,可以提高速率! 这个助手可以帮助程序员更快的编写代码,可以提高速率! 这个助手可以帮助程序员更快的编写代码,可以提高速率!

2014-08-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除