-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
7 lines (7 loc) · 12.9 KB
/
index.html
1
2
3
4
5
6
7
<!DOCTYPE html><html lang="zh-CN"><head><meta name="generator" content="Hexo 3.8.0"><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"><meta content="yes" name="apple-mobile-web-app-capable"><meta content="black-translucent" name="apple-mobile-web-app-status-bar-style"><meta content="telephone=no" name="format-detection"><meta name="description" content="不生产代码,只做代码的搬运工~"><title>小小落木</title><link rel="stylesheet" type="text/css" href="/css/style.css?v=0.0.0"><link rel="stylesheet" type="text/css" href="//cdn.bootcss.com/normalize/6.0.0/normalize.min.css"><link rel="stylesheet" type="text/css" href="//cdn.bootcss.com/pure/0.6.2/pure-min.css"><link rel="stylesheet" type="text/css" href="//cdn.bootcss.com/pure/0.6.2/grids-responsive-min.css"><link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css"><script type="text/javascript" src="//cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script><link rel="Shortcut Icon" type="image/x-icon" href="/favicon.ico"><link rel="apple-touch-icon" href="/apple-touch-icon.png"><link rel="apple-touch-icon-precomposed" href="/apple-touch-icon.png"></head><body><div class="body_container"><div id="header"><div class="site-name"><h1 class="hidden">小小落木</h1><a id="logo" href="/.">小小落木</a><p class="description"></p></div><div id="nav-menu"><a href="/." class="current"><i class="fa fa-home"> 首页</i></a><a href="/archives/"><i class="fa fa-archive"> 归档</i></a><a href="/about"><i class="fa fa-user"> 关于</i></a></div></div><div id="layout" class="pure-g"><div class="pure-u-1 pure-u-md-3-4"><div class="content_container"><div class="post"><h1 class="post-title"><a href="/2019/10/17/jenkins/">jenkins</a></h1><div class="post-meta">2019-10-17</div><div class="post-content"><h1 id="Jenkins踩坑"><a href="#Jenkins踩坑" class="headerlink" title="Jenkins踩坑"></a>Jenkins踩坑</h1><p>最近弄了下<code>jenkins</code>,就是为了部署方便点,然后也遇到一些麻烦,顺便记录下</p></div><p class="readmore"><a href="/2019/10/17/jenkins/">阅读全文</a></p></div><div class="post"><h1 class="post-title"><a href="/2019/05/28/avl-tree-vs-rb-tree/">avl-tree-vs-rb-tree</a></h1><div class="post-meta">2019-05-28</div><div class="post-content"><p>最近看了几篇关于二叉搜索树的文字,其中就包括了几个简单的平衡树的内容,包括<code>avltree</code>和<code>rbtree</code>。很多文章和资料都说<code>avltree</code>综合性能没有<code>rbtree</code>高,但是有些说法是没什么依据的,可能是被早前的比较差的<code>avltree</code>实现给误导了。</p></div><p class="readmore"><a href="/2019/05/28/avl-tree-vs-rb-tree/">阅读全文</a></p></div><div class="post"><h1 class="post-title"><a href="/2019/05/18/shadowsocks-deploy/">Docker部署shadowsocks</a></h1><div class="post-meta">2019-05-18</div><div class="post-content"><p>简单记录下使用<code>docker</code>部署<code>shadowsocks</code>的步骤,顺道写一个自动脚本,加快部署,方便下次在<code>ip</code>被墙之后快速的部署科学上网工具</p>
<h2 id="安装docker"><a href="#安装docker" class="headerlink" title="安装docker"></a>安装docker</h2><p>这一步按照<a href="https://docs.docker.com/install/linux/docker-ce/ubuntu/" target="_blank" rel="noopener"><code>docker</code></a>官网提示一步步走即可,反正很简单,简单列一下<code>ubuntu</code>中的步骤:</p></div><p class="readmore"><a href="/2019/05/18/shadowsocks-deploy/">阅读全文</a></p></div><div class="post"><h1 class="post-title"><a href="/2019/05/05/git-command/">Git常用的命令</a></h1><div class="post-meta">2019-05-05</div><div class="post-content"><p>记录下<code>Git</code>中常用的命令,不用到处去找,提升下效率</p>
<h2 id="批量删除"><a href="#批量删除" class="headerlink" title="批量删除"></a>批量删除</h2><h3 id="批量删除分支"><a href="#批量删除分支" class="headerlink" title="批量删除分支"></a>批量删除分支</h3><figure class="highlight sh"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 删除本地分支</span></span><br><span class="line">> git branch -a | grep -v -E <span class="string">'master|develop'</span> | xargs git branch -D</span><br><span class="line"></span><br><span class="line"><span class="comment"># 删除远程分支</span></span><br><span class="line">> git branch -r| grep -v -E <span class="string">'master|develop'</span> | sed <span class="string">'s/origin\///g'</span> | xargs -I {} git push origin :{}</span><br></pre></td></tr></table></figure></div><p class="readmore"><a href="/2019/05/05/git-command/">阅读全文</a></p></div><div class="post"><h1 class="post-title"><a href="/2019/04/22/redis-sentinel搭建/">redis-sentinel搭建</a></h1><div class="post-meta">2019-04-22</div><div class="post-content"><p>参考这里<a href="https://xavierchow.github.io/2019/03/06/docker-redis-sentinel/" title="redis sentinel docker" target="_blank" rel="noopener">redis sentinel docker</a></p></div><p class="readmore"><a href="/2019/04/22/redis-sentinel搭建/">阅读全文</a></p></div><div class="post"><h1 class="post-title"><a href="/2019/04/22/死锁/">死锁</a></h1><div class="post-meta">2019-04-22</div><div class="post-content"><p>最近在看 <code>concurrency in go</code> 的时候看到了在并发的执行代码过程中,很容易产生死锁的问题,后就查了些资料做个总结</p>
<h2 id="死锁产生的必要条件"><a href="#死锁产生的必要条件" class="headerlink" title="死锁产生的必要条件"></a>死锁产生的必要条件</h2><ol></ol></div><p class="readmore"><a href="/2019/04/22/死锁/">阅读全文</a></p></div><div class="post"><h1 class="post-title"><a href="/2019/04/19/分布式锁/">分布式锁</a></h1><div class="post-meta">2019-04-19</div><div class="post-content"><p>简单的记录下分布式锁的东西,尤其是用<code>redis</code>实现的分布式锁</p>
<h2 id="基本概念"><a href="#基本概念" class="headerlink" title="基本概念"></a>基本概念</h2><p>分布式锁是控制分布式系统之间同步访问共享资源的一种方式。与互斥锁和读写锁之类的很类似,只不过它可以控制多个系统间的同步访问。</p></div><p class="readmore"><a href="/2019/04/19/分布式锁/">阅读全文</a></p></div><div class="post"><h1 class="post-title"><a href="/2019/03/24/缓存穿透和缓存雪崩/">缓存穿透和缓存雪崩</a></h1><div class="post-meta">2019-03-24</div><div class="post-content"><p>缓存现在的项目都会用到,可能啥都不想就先上个缓存吧,简单方便,但是缓存在没有命中或者集体失效的情况下就会引起缓存穿透和缓存雪崩的问题,下面就简单说下缓存穿透和雪崩的预防的一些常用方法</p>
<h2 id="缓存穿透"><a href="#缓存穿透" class="headerlink" title="缓存穿透"></a>缓存穿透</h2><p>是指查询一个一定不存在的数据,这个时候缓存无法命中,于是直接去请求数据库,查询不到数据不写入缓存,最终导致每次查询这个不存在的数据时候都回去查询数据库。最终的结果就是如果请求量很大会导致数据库挂掉。</p></div><p class="readmore"><a href="/2019/03/24/缓存穿透和缓存雪崩/">阅读全文</a></p></div><div class="post"><h1 class="post-title"><a href="/2019/02/20/MySQL中的Int-N/">MySQL中的Int-N</a></h1><div class="post-meta">2019-02-20</div><div class="post-content"><!-- 最近遇到一个时间戳存储到`MySQL`中的`Int`类型的字段发现值变了,这就非常坑爹了...后来看了下是因为存储的时间戳有点大,超过了`Int`的最大范围了,就改了`BigInt`,然后自动出现了个`BigInt(20)`这样,发 -->
<p>关于 MySQL 中的有些类型后面跟一个数字(比如 Int,BigInt, varchar 等),这个数字是什么作用呢?实际上表示的是字段宽度,但是这个宽度在不同的类型上作用也是不同的。主要说下<code>Int</code>和<code>varchar</code>中的区别</p></div><p class="readmore"><a href="/2019/02/20/MySQL中的Int-N/">阅读全文</a></p></div><div class="post"><h1 class="post-title"><a href="/2018/06/10/pwa改造之路/">pwa改造之路</a></h1><div class="post-meta">2018-06-10</div><div class="post-content"><p>公司移动端的项目使用<code>pwa</code>进行了改造,从原来的服务端直接模板渲染换成了前后端分离的纯前端渲染模式,再加上<code>pwa</code>进行一些缓存的加持(目前主要使用了<code>pwa</code>的缓存,其他的一些推送通知之类的东西还没有添加,以后有时间还是需要继续的),感觉效果还是挺好的,主要技术栈使用了<code>vue</code>的全家桶,也遇到了一些<code>vue</code>的坑…</p></div><p class="readmore"><a href="/2018/06/10/pwa改造之路/">阅读全文</a></p></div></div></div><div class="pure-u-1-4 hidden_mid_and_down"><div id="sidebar"><div class="widget"><form action="//www.google.com/search" method="get" accept-charset="utf-8" target="_blank" class="search-form"><input type="text" name="q" maxlength="20" placeholder="Search"><input type="hidden" name="sitesearch" value="http://yoursite.com"></form></div><div class="widget"><div class="widget-title"><i class="fa fa-folder-o"> 分类</i></div></div><div class="widget"><div class="widget-title"><i class="fa fa-star-o"> 标签</i></div><div class="tagcloud"><a href="/tags/docker/" style="font-size: 15px;">docker</a> <a href="/tags/MySQL/" style="font-size: 15px;">MySQL</a> <a href="/tags/git/" style="font-size: 15px;">git</a> <a href="/tags/jenkins/" style="font-size: 15px;">jenkins</a> <a href="/tags/PWA/" style="font-size: 15px;">PWA</a> <a href="/tags/Web/" style="font-size: 15px;">Web</a> <a href="/tags/data-stracture/" style="font-size: 15px;">data-stracture</a> <a href="/tags/redis/" style="font-size: 15px;">redis</a> <a href="/tags/shadowsocks/" style="font-size: 15px;">shadowsocks</a> <a href="/tags/Redis/" style="font-size: 15px;">Redis</a> <a href="/tags/分布式/" style="font-size: 15px;">分布式</a> <a href="/tags/Lock/" style="font-size: 15px;">Lock</a> <a href="/tags/Deadlock/" style="font-size: 15px;">Deadlock</a></div></div><div class="widget"><div class="widget-title"><i class="fa fa-file-o"> 最近文章</i></div><ul class="post-list"><li class="post-list-item"><a class="post-list-link" href="/2019/10/17/jenkins/">jenkins</a></li><li class="post-list-item"><a class="post-list-link" href="/2019/05/28/avl-tree-vs-rb-tree/">avl-tree-vs-rb-tree</a></li><li class="post-list-item"><a class="post-list-link" href="/2019/05/18/shadowsocks-deploy/">Docker部署shadowsocks</a></li><li class="post-list-item"><a class="post-list-link" href="/2019/05/05/git-command/">Git常用的命令</a></li><li class="post-list-item"><a class="post-list-link" href="/2019/04/22/redis-sentinel搭建/">redis-sentinel搭建</a></li><li class="post-list-item"><a class="post-list-link" href="/2019/04/22/死锁/">死锁</a></li><li class="post-list-item"><a class="post-list-link" href="/2019/04/19/分布式锁/">分布式锁</a></li><li class="post-list-item"><a class="post-list-link" href="/2019/03/24/缓存穿透和缓存雪崩/">缓存穿透和缓存雪崩</a></li><li class="post-list-item"><a class="post-list-link" href="/2019/02/20/MySQL中的Int-N/">MySQL中的Int-N</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/06/10/pwa改造之路/">pwa改造之路</a></li></ul></div><div class="widget"><div class="widget-title"><i class="fa fa-external-link"> 友情链接</i></div><ul></ul><a href="https://github.com/lujin123" title="GitHub" target="_blank">GitHub</a></div></div></div><div class="pure-u-1 pure-u-md-3-4"><div id="footer">Copyright © 2019 <a href="/." rel="nofollow">小小落木.</a> Powered by<a rel="nofollow" target="_blank" href="https://hexo.io"> Hexo.</a><a rel="nofollow" target="_blank" href="https://github.com/tufu9441/maupassant-hexo"> Theme</a> by<a rel="nofollow" target="_blank" href="https://github.com/pagecho"> Cho.</a></div></div></div><a id="rocket" href="#top" class="show"></a><script type="text/javascript" src="/js/totop.js?v=0.0.0" async></script><script type="text/javascript" src="//cdn.bootcss.com/fancybox/3.0.47/jquery.fancybox.min.js" async></script><script type="text/javascript" src="/js/fancybox.js?v=0.0.0" async></script><link rel="stylesheet" type="text/css" href="//cdn.bootcss.com/fancybox/3.0.47/jquery.fancybox.min.css"><script type="text/javascript" src="/js/codeblock-resizer.js?v=0.0.0"></script><script type="text/javascript" src="/js/smartresize.js?v=0.0.0"></script></div></body></html>