大概是一个技术博客
https://www.cycjimmy.tech/icon.png
Probably a technical blog
2024-03-25T02:33:25.706Z
https://www.cycjimmy.tech/
cycjimmy
Hexo
同时使用SVN和Git进行版本控制
https://www.cycjimmy.tech/posts/2401e81f/
2023-08-01T05:34:01.000Z
2024-03-25T02:33:25.706Z
<p>由于个人习惯使用Git作为版本控制工具,但有时单位使用的是SVN。在偶然间发现Git也有<a href="https://git-scm.com/docs/git-svn">SVN工具</a>,于是试着融合了一下,发现是可行的。以下是命令:</p>
<figure
使用Fiddler配合夜神模拟器进行App抓包
https://www.cycjimmy.tech/posts/37641f88/
2023-06-13T09:47:44.000Z
2024-03-25T02:33:25.698Z
<h2 id="本文所用环境及软件版本"><a href="#本文所用环境及软件版本" class="headerlink" title="本文所用环境及软件版本"></a>本文所用环境及软件版本</h2><ul>
<li>Win10(22H2 19045.3031)</li>
<li>Fiddler(Progress Telerik Fiddler Classic v5.0.20211.51073 for .NET 4.6.1)</li>
<li>夜神模拟器(v7.0.5.7001)</li>
</ul>
<p><strong>Ps: 列出以上环境仅给予参考,并不要求完全一致。</strong></p>
<h2 id="安装"><a href="#安装" class="headerlink" title="安装"></a>安装</h2><ul>
<li><a href="https://www.telerik.com/download/fiddler">Fiddler(抓包工具)</a></li>
<li><a href="https://www.yeshen.com/">夜神模拟器</a></li>
</ul>
MacOS 生成图标文件
https://www.cycjimmy.tech/posts/5acdfbd/
2023-01-17T05:46:26.000Z
2024-03-25T02:33:25.698Z
<p><strong>本文所在环境为 MacOS</strong></p>
<p><strong>事先准备好各个尺寸的png图标图片,放入将要操作的目录</strong></p>
<h2 id="生成ico图标-windows-与-linux-用"><a
Awesome Swiper 中文文档
https://www.cycjimmy.tech/posts/59c71c4/
2023-01-11T06:56:02.000Z
2024-03-25T02:33:25.698Z
<p>Github仓库地址:<a href="https://github.com/cycjimmy/awesome-swiper">https://github.com/cycjimmy/awesome-swiper</a></p>
<hr>
<style>
.badge-wrapper a {
display: inline-block;
margin: 0;
border-bottom: none;
}
.badge-wrapper img {
display: inline-block;
margin: 0 5px 0 0;
}
</style>
<!--
badge由于样式问题,直接写成html形式
![][workflows-badge-image]
[![libraries dependency status][libraries-status-image]][libraries-status-url]
[![libraries sourcerank][libraries-sourcerank-image]][libraries-sourcerank-url]
[![Release date][release-date-image]][release-url]
[![rollup][rollup-image]][rollup-url]
[![semantic-release][semantic-image]][semantic-url]
[![npm license][license-image]][download-url]
-->
<p class="badge-wrapper">
<img src="https://github.com/cycjimmy/awesome-swiper/workflows/Test%20CI/badge.svg" alt=""><a target="_blank" rel="noopener" href="https://libraries.io/github/cycjimmy/awesome-swiper"><img src="https://img.shields.io/librariesio/release/npm/@cycjimmy/awesome-swiper" alt="libraries dependency status"></a>
<a target="_blank" rel="noopener" href="https://libraries.io/npm/@cycjimmy%2Fawesome-swiper"><img src="https://img.shields.io/librariesio/sourcerank/npm/@cycjimmy/awesome-swiper" alt="libraries sourcerank"></a>
<a target="_blank" rel="noopener" href="https://github.com/cycjimmy/awesome-swiper/releases"><img src="https://img.shields.io/github/release-date/cycjimmy/awesome-swiper" alt="Release date"></a>
<a target="_blank" rel="noopener" href="https://github.com/rollup/rollup"><img src="https://img.shields.io/github/package-json/dependency-version/cycjimmy/awesome-swiper/dev/rollup" alt="rollup"></a>
<a target="_blank" rel="noopener" href="https://github.com/semantic-release/semantic-release"><img src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg" alt="semantic-release"></a>
<a target="_blank" rel="noopener" href="https://npmjs.org/package/@cycjimmy/awesome-swiper"><img src="https://img.shields.io/npm/l/@cycjimmy/awesome-swiper" alt="npm license"></a>
</p>
<ul>
<li><strong><a href="https://github.com/cycdpo/awesome-swiper">awesome-swiper</a> 已经迁移到 @cycjimmy/awesome-swiper</strong></li>
<li>awesome-swiper 基于 <a href="https://github.com/nolimits4web/Swiper">swiper 5+</a>. (<a href="https://github.com/cycjimmy/awesome-swiper/releases">Releases</a> | <a href="https://cycjimmy.github.io/awesome-swiper/">Demo</a>)</li>
</ul>
<p><a href="https://github.com/cycjimmy/awesome-swiper/blob/main/README.md">English</a> | <a href="https://github.com/cycjimmy/awesome-swiper/blob/main/README_zhCN.md">中文</a></p>
<hr>
<h2 id="安装"><a href="#安装" class="headerlink" title="安装"></a>安装</h2><!--
badge由于样式问题,直接写成html形式
[![NPM version][npm-image]][npm-url]
[![NPM bundle size][npm-bundle-size-image]][npm-url]
[![npm download][download-image]][download-url]
-->
<p class="badge-wrapper"><a target="_blank" rel="noopener" href="https://npmjs.org/package/@cycjimmy/awesome-swiper"><img src="https://img.shields.io/npm/v/@cycjimmy/awesome-swiper" alt="NPM version"></a><a target="_blank" rel="noopener" href="https://npmjs.org/package/@cycjimmy/awesome-swiper"><img src="https://img.shields.io/bundlephobia/min/@cycjimmy/awesome-swiper" alt="NPM bundle size"></a><a target="_blank" rel="noopener" href="https://npmjs.org/package/@cycjimmy/awesome-swiper"><img src="https://img.shields.io/npm/dt/@cycjimmy/awesome-swiper" alt="npm download"></a></p>
<figure class="highlight shell"><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="meta prompt_"># </span><span class="language-bash">via npm</span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">npm install @cycjimmy/awesome-swiper --save</span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">or via yarn</span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">yarn add @cycjimmy/awesome-swiper</span></span><br></pre></td></tr></table></figure>
Git 设置代理以解决 Github 访问缓慢的问题
https://www.cycjimmy.tech/posts/e3189183/
2022-11-30T09:22:35.000Z
2024-03-25T02:33:25.698Z
<p><strong>说明: http或socks5代理自备</strong></p>
<h2 id="配置代理"><a href="#配置代理" class="headerlink" title="配置代理"></a>配置代理</h2><figure
将 Socks 代理转化为 Http 代理
https://www.cycjimmy.tech/posts/5b638892/
2019-12-20T02:08:23.000Z
2019-12-20T02:08:23.000Z
<p><strong>本文所在环境为 macOS, 其他平台类似</strong></p>
<h2 id="使用"><a href="#使用" class="headerlink" title="使用"></a>使用</h2><ul>
<li><p>安装 polipo (请确保系统安装了 brew)</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">brew install polipo</span></span><br></pre></td></tr></table></figure>
</li>
<li><p>运行 polipo, 设置上级 socks 代理的端口号.</p>
<figure class="highlight shell"><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><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_"># </span><span class="language-bash">我的 socks 代理的端口号是 5555, 您需要把它改成您自己的</span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">polipo socksParentProxy=127.0.0.1:5555</span></span><br><span class="line"><span class="meta prompt_"></span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">看到下面的提示说明启动成功了,</span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">polipo 默认在 8123 端口启动了 http 代理,</span></span><br><span class="line"><span class="meta prompt_"># </span><span class="language-bash">您现在可以使用 8123 端口进行网络配置了.</span></span><br><span class="line">Established listening socket on port 8123.</span><br></pre></td></tr></table></figure></li>
</ul>
使用 Github Actions 进行自动化版本发布
https://www.cycjimmy.tech/posts/2addaece/
2019-11-27T08:26:39.000Z
2019-11-27T08:26:39.000Z
<h2 id="配置-semantic-release-action"><a href="#配置-semantic-release-action" class="headerlink" title="配置 semantic-release-action"></a>配置 <a href="https://github.com/cycjimmy/semantic-release-action">semantic-release-action</a></h2><p>semantic-release-action 是一个运行 <a href="https://github.com/semantic-release/semantic-release">Semantic Release</a> 的 GitHub Action.</p>
<h3 id="使用方法"><a href="#使用方法" class="headerlink" title="使用方法"></a>使用方法</h3><h4 id="步骤1:在您的仓库中设置-Semantic-Release的配置文件-如不进行设置将使用-Semantic-Release-的默认配置"><a href="#步骤1:在您的仓库中设置-Semantic-Release的配置文件-如不进行设置将使用-Semantic-Release-的默认配置" class="headerlink" title="步骤1:在您的仓库中设置 Semantic Release的配置文件 , 如不进行设置将使用 Semantic Release 的默认配置"></a>步骤1:在您的仓库中设置 <a href="https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#configuration">Semantic Release的配置文件</a> , 如不进行设置将使用 Semantic Release 的默认配置</h4><h4 id="步骤2-在您的-Github-仓库中为-Semantic-Release-身份认证-添加-Secrets-以保证权限正常"><a href="#步骤2-在您的-Github-仓库中为-Semantic-Release-身份认证-添加-Secrets-以保证权限正常" class="headerlink" title="步骤2: 在您的 Github 仓库中为 Semantic Release 身份认证 添加 Secrets , 以保证权限正常"></a>步骤2: 在您的 Github 仓库中为 <a href="https://github.com/semantic-release/semantic-release/blob/master/docs/usage/ci-configuration.md#authentication">Semantic Release 身份认证</a> 添加 <a href="https://help.github.com/en/articles/virtual-environments-for-github-actions#creating-and-using-secrets-encrypted-variables">Secrets</a> , 以保证权限正常</h4><p><img src="/posts/2addaece/Github-ScreenShot_01.png"></p>
<p><code>GITHUB_TOKEN</code> 无需添加,由 Github 默认生成。如需发布到npm,需要手动添加 <code>NPM_TOKEN</code> 到 Secrets 列表</p>
H5 视觉设计尺寸说明
https://www.cycjimmy.tech/posts/21128040/
2019-11-06T08:11:02.000Z
2020-12-02T10:33:02.000Z
<blockquote>
<p>以手机微信浏览器作为H5主容器进行视觉设计</p>
</blockquote>
<p><img src="/posts/21128040/h5-design-template.png"></p>
记一次在 Heroku 上部署 Node 应用
https://www.cycjimmy.tech/posts/5c093b43/
2017-08-24T06:57:39.000Z
2017-08-24T06:57:39.000Z
<p>第一次部署Heroku应用,做一下记录和总结。</p>
<blockquote>
<p>Heroku是一个云平台服务(PaaS),使开发人员能够在云中构建,运行和运行应用程序。</p>
</blockquote>
<h2 id="建立Heroku账号并下载安装"><a href="#建立Heroku账号并下载安装" class="headerlink" title="建立Heroku账号并下载安装"></a>建立Heroku账号并下载安装</h2><p><a href="https://www.heroku.com/">https://www.heroku.com</a></p>
<h2 id="克隆或初始化自己的项目"><a href="#克隆或初始化自己的项目" class="headerlink" title="克隆或初始化自己的项目"></a>克隆或初始化自己的项目</h2><p>主要是要建立好<code>package.json</code>文件以及写好里面的依赖包</p>
<h2 id="在项目根目录建立Procfile文件"><a href="#在项目根目录建立Procfile文件" class="headerlink" title="在项目根目录建立Procfile文件"></a>在项目根目录建立<code>Procfile</code>文件</h2><figure class="highlight text"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">web: node index.js</span><br></pre></td></tr></table></figure>
<p>Procfile是用来启动项目的,具体可以去看一下<a href="https://devcenter.heroku.com/articles/procfile">https://devcenter.heroku.com/articles/procfile</a></p>
CentOS 升级 Git
https://www.cycjimmy.tech/posts/22c72bce/
2017-08-18T07:04:46.000Z
2017-08-18T07:04:46.000Z
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">[cyc@localhost download]$ yum upgrade git</span><br></pre></td></tr></table></figure>
<p>上面的常规方法显示无更新,打印一下git版本号发现是<code>1.8.3.1</code>,不对啊,当前<a href="https://git-scm.com/">git官网</a>都到<code>2.14.1</code>了,感觉到这一定是一个坑,果断谷歌,果然,原因是yum仓库里的Git版本更新不及时,也找到了不少手动更新方法,那么就自己进行手动更新喽。</p>
<h2 id="卸载低版本的Git"><a href="#卸载低版本的Git" class="headerlink" title="卸载低版本的Git"></a>卸载低版本的Git</h2><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">[cyc@localhost download]$ yum remove git</span><br></pre></td></tr></table></figure>
记一次 CentOS 从零开始安装 NodeJs
https://www.cycjimmy.tech/posts/196db4f6/
2017-08-18T02:56:19.000Z
2017-08-18T02:56:19.000Z
<p>这几天用虚拟机搭了个CentOS7研(wan)究(shua),准备再装个Node环境,作为centOS的纯新手就网上谷歌了篇CentOS安装node的博客跟着做啦,基本挺顺利的,当中有几个小坑(其实根本不算是坑),后面简单说一说…</p>
<h2 id="第1步-下载node"><a href="#第1步-下载node" class="headerlink" title="第1步: 下载node"></a>第1步: <a href="https://nodejs.org/en/download/current/">下载node</a></h2><p>这虚拟机就是当实验用的,我选择了最新特性版本8.4.0</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">[cyc@localhost download]$ wget https://nodejs.org/dist/v8.4.0/node-v8.4.0.tar.gz</span><br></pre></td></tr></table></figure>
<p>键入上边代码回车,发现报错了,wget未找到,原来之前图方便装的centOS是最小版的,里面并不包含<code>wget</code>,好吧,安装之…</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">[cyc@localhost download]$ yum -y install wget</span><br></pre></td></tr></table></figure>
<p>安装成功后,继续按照上述代码就可以顺利下载node了。</p>
Linux 常用命令总结(笔记)
https://www.cycjimmy.tech/posts/1fe3367f/
2017-07-10T06:06:39.000Z
2017-07-10T06:06:39.000Z
<p>一些基础Linux命令学习笔记</p>
<h2 id="系统常用命令"><a href="#系统常用命令" class="headerlink" title="系统常用命令"></a>系统常用命令</h2><h3 id="命令基本格式"><a href="#命令基本格式" class="headerlink" title="命令基本格式"></a>命令基本格式</h3><h4 id="命令-选项-参数"><a href="#命令-选项-参数" class="headerlink" title="命令 [选项] [参数]"></a>命令 [选项] [参数]</h4><ul>
<li><code>ls [选项] [文件或目录]</code><ul>
<li>选项<ul>
<li><code>-a</code> 所有文件(包括隐藏)</li>
<li><code>-l</code> 详细信息</li>
<li><code>-d</code> 目录属性</li>
<li><code>-h</code> 人性化显示文件大小</li>
<li><code>-i</code> 显示innode</li>
</ul>
</li>
</ul>
</li>
<li><code>ll</code> 是 <code>ls -l</code> 的别名</li>
</ul>
Git 常用自用命令总结
https://www.cycjimmy.tech/posts/a14386f1/
2017-06-29T09:48:54.000Z
2017-06-29T09:48:54.000Z
<p>个人常用Git命令总结,持续更新…</p>
<h2 id="创建版本库"><a href="#创建版本库" class="headerlink" title="创建版本库"></a>创建版本库</h2><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git <span class="built_in">clone</span> <url> <span class="comment"># 克隆远程版本库</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git init <span class="comment"># 初始化本地版本库</span></span></span><br></pre></td></tr></table></figure>
<h2 id="修改和提交"><a href="#修改和提交" class="headerlink" title="修改和提交"></a>修改和提交</h2><figure class="highlight shell"><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><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git status <span class="comment"># 查看状态</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git diff <span class="comment"># 查看变更内容</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git add . <span class="comment"># 跟踪所有改动过的文件</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git add <file> <span class="comment"># 跟踪指定文件</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git <span class="built_in">mv</span> <old> <new> <span class="comment"># 文件改名</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git <span class="built_in">rm</span> <file> <span class="comment"># 删除文件</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git <span class="built_in">rm</span> --cached <file> <span class="comment"># 停止跟踪文件但不删除</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git commit -m <span class="string">"commit message"</span> <span class="comment"># 提交所有更新过的文件</span></span></span><br><span class="line"><span class="meta prompt_">$ </span><span class="language-bash">git commit --amend <span class="comment"># 修改最后一次提交</span></span></span><br></pre></td></tr></table></figure>
LESS 学习笔记
https://www.cycjimmy.tech/posts/b29d4409/
2017-06-26T07:18:06.000Z
2017-06-26T07:18:06.000Z
<blockquote>
<p>Less 是一门 CSS 预处理语言,它扩展了 CSS 语言,增加了变量、Mixin、函数等特性,使 CSS 更易维护和扩展。Less 可以运行在 Node 或浏览器端。</p>
</blockquote>
<h2 id="编译工具"><a href="#编译工具" class="headerlink" title="编译工具"></a>编译工具</h2><ul>
<li>Koala</li>
<li>node.js</li>
<li>浏览器端编译</li>
</ul>
<h2 id="LESS语法"><a href="#LESS语法" class="headerlink" title="LESS语法"></a>LESS语法</h2><h3 id="申明编码格式"><a href="#申明编码格式" class="headerlink" title="申明编码格式"></a>申明编码格式</h3><figure class="highlight less"><figcaption><span>头部仍然不能忘记申明编码格式</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">@charset</span> <span class="string">"utf-8"</span>;</span><br></pre></td></tr></table></figure>
自用前端 Node 包管理工具总结
https://www.cycjimmy.tech/posts/966ec16e/
2017-06-20T08:59:18.000Z
2017-06-20T08:59:18.000Z
<p>nodeJs 是一个基于 V8 引擎的服务器端 JavaScript 运行环境。<br>对于前端开发者来说node最大的作用是帮助我们完成获取依赖,构建项目,编译代码等工作。<br>NodeJs 自带的包管理器 npm,是全球最大的开源库生态系统。</p>
<p>但是由于本国特殊的网络环境,经常会出现各种各样的问题。<br>以下是本人使用过程中踩过坑的应对手段:</p>
<h2 id="起步"><a href="#起步" class="headerlink" title="起步"></a>起步</h2><h3 id="安装-nodeJs-npm"><a href="#安装-nodeJs-npm" class="headerlink" title="安装 nodeJs & npm"></a>安装 nodeJs & npm</h3><p>初次可直接从官网下载安装(内含最新版的 nodeJs 和 npm) <a href="https://nodejs.org/">https://nodejs.org</a></p>
记一次 Hexo + NexT 搭建个人博客系统
https://www.cycjimmy.tech/posts/edac8622/
2017-06-19T06:16:39.000Z
2017-06-19T06:16:39.000Z
<p>搭建一个静态博客是去年的学习计划之一,然而因为种种原因(其实是拖延症加懒癌),迟迟没有动手。直到最近,空余时间慢慢富裕了起来,才想“要不把去年想做的博客给做了?”,那么说干就干。</p>
<p>简单谷歌了下相关资料,决定采用<a href="https://github.com/hexojs/hexo">Hexo</a>博客系统加<a href="https://github.com/iissnan/hexo-theme-next">NexT</a>主题的方案搭建。本以为会花很点时间,没想到当前的静态博客系统功能居然已经如此完善,自己能想到的功能它几乎全有,要做的就是按照自己需求和喜好去改里面的配置文件。大概花了半天时间改配置,一切就OK了!</p>
<p><strong>注:本文使用的Hexo版本为v3.3.7,NexT版本为v5.1.1</strong></p>
<h2 id="搭建当中遇到的一些坑"><a href="#搭建当中遇到的一些坑" class="headerlink" title="搭建当中遇到的一些坑"></a>搭建当中遇到的一些坑</h2><h3 id="删除文章后,分类和标签统计不正确"><a href="#删除文章后,分类和标签统计不正确" class="headerlink" title="删除文章后,分类和标签统计不正确"></a>删除文章后,分类和标签统计不正确</h3><ol>
<li><p>删除目录下的 <code>db.json</code> 文件</p>
</li>
<li><p>清理 <code>public</code> 文件夹并重新生成</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">$ hexo clean</span><br><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure>
</li>
<li><p>重启测试服务器(或重新部署)</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br><span class="line"><span class="comment"># or</span></span><br><span class="line">$ hexo deploy --generate</span><br></pre></td></tr></table></figure></li>
</ol>