#include <iostream> using namespace std; /**  * pthread 同步 - 信号量控制  */ #include <unistd.h> #include <pthread.h> #include <semaphore.h> #define BUFFER_SIZE 4 #define OVER (-1) typed...

git initgit add .git commit -m "init project"git remote add origin git@github.com:username/projectnamegit push -u origin master提交不上添加ssh授权到github个人账户接下来打标签git tag v1.0.0git push origin v1.0.0git文档https://git-scm.com/book/zh/v2apm publish minor 第一次发布包apm publish patch 发布包 修复bug时用他发布apm publ...

ListNodeA PHP extension,use list struct to malloc memory,a simple extension can be used for study how to write php extension,and there is chinese comment in code.一个PHP扩展,使用C++类开发的例子,可以供各位道友借鉴。利用强大的C++类库或算法编写高效库供php脚本调用。ListNode——GitHub仓库地址

 -bash: /usr/lib/jvm/jdk1.8.0_65/bin/java: 没有那个文件或目录sudo  apt-get install lib32z1 lib32ncurses5之前的版本是sudo  apt-get install ia32-libs现在已经换了

#!/bin/sh #监控内存使用率大于85则重启 MAX_MEM=85 MEM=`free | awk '/Mem/ {print int($3/$2*100)}'` MEM=`expr $MEM + 0` TIME=`date` FIL='auto_restart.txt' if [ $MEM -gt $MAX_MEM ] then      echo&nbs...

mysqlmysql5.6.24cmake .Could NOT find Curses (missing:  CURSES_LIBRARY CURSES_INCLUDE_PATH) 这个错误ubuntu 就使用 apt-get install libncurses5-dev 安装再删除 CMakeCache.txt 继续执行cmake .来生成make file文件make && make install安装数据库初始文件cd /usr/local/mysqluseradd mysqlchown -R mysql:mysql /usr/local/mysqlchmo...

composer config -g github-oauth.github.com 08111753a40f3757273330e2aee143325f354f94 配置GITHUB授权

效果如图下载链接如下php_tool.zip

<?php /** * Created by PhpStorm. * User: zc * Date: 2016/3/12 * Time: 13:35 */ /** * Class Base64 * MIME base64 编码数据辅助类 兼顾URL传输 */ class Base64 { public static function base64EncodeForUrl($data) { $str = base64_encode($data); return strtr($str...

访客地图