上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: 安装 gem install rufus-scheduler ruby #!/usr/bin/env ruby require 'rubygems' require 'rufus-scheduler' scheduler = Rufus::Scheduler.new scheduler.every 阅读全文
posted @ 2022-01-28 16:14 HaimaBlog 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 目录在IDEA中配置GitHub安装GitHub插件账号授权方法一:点击Add Account... 添加账号方法二:使用token登录共享到GitHub查看文件变更列表add文件移除add跟踪的文件查看文件修改内容放弃文件的修改commit提交文件撤消已经commit的提交stash压缩提交记录更 阅读全文
posted @ 2022-01-26 16:56 HaimaBlog 阅读(457) 评论(0) 推荐(0) 编辑
摘要: debian终端下默认编辑器为nano,比如crontab -e就会打开nano,这个编辑器用起来很不习惯,想修改为vim,当然,你的debian系统必须先安装vim.如果已经安装vim,请输入如下命令: sudo update-alternatives --config editor 有 4 个候 阅读全文
posted @ 2022-01-22 11:54 HaimaBlog 阅读(733) 评论(0) 推荐(1) 编辑
摘要: 编写/root/test.sh脚本 该方法适用于调度周期能被60整除的情况 #!/bin/bash step=1 for (( i = 0; i < 60; i = (i+step) )); do date >> /root/result.txt sleep $step done exit 0 配置 阅读全文
posted @ 2022-01-21 15:26 HaimaBlog 阅读(1485) 评论(0) 推荐(0) 编辑
摘要: 安装iptables yum install iptables-services 编写允许访问的策略 vim /etc/sysconfig/iptables # sample configuration for iptables service # # # you can edit this man 阅读全文
posted @ 2022-01-18 15:36 HaimaBlog 阅读(567) 评论(0) 推荐(0) 编辑
摘要: 学习资料 https://www.bilibili.com/video/BV1eY411w7Lx/ https://www.bilibili.com/video/BV1SQ4y1m7Ds?p=13 仓库地址: https://gitee.com/haima1004/elasticsearch7.14 阅读全文
posted @ 2022-01-18 13:31 HaimaBlog 阅读(1388) 评论(0) 推荐(0) 编辑
摘要: 中文文档: https://www.elastic.co/guide/cn/elasticsearch/guide/current/getting-started.html 查看健康状态 curl -X GET 127.0.0.1:9200/_cat/health?v 查询当前es集群中所有的ind 阅读全文
posted @ 2022-01-08 15:49 HaimaBlog 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 参考文章: https://www.jianshu.com/p/7ea473097023 安装redis 配置redis 配置sidekiq所依赖的redis位置,必须同时定义sidekiq的server和client config/initializers/sidekiq.rb # 这里的地址和端 阅读全文
posted @ 2021-12-28 14:50 HaimaBlog 阅读(588) 评论(0) 推荐(0) 编辑
摘要: 后端变量 @namelist 前端解释 var result_json = <%= @namelist.to_json.html_safe %> 阅读全文
posted @ 2021-12-14 15:47 HaimaBlog 阅读(55) 评论(0) 推荐(0) 编辑
摘要: Ubuntu 20.04 安装和配置MySql5.7的详细教程 https://www.jb51.net/article/202399.htm 阅读全文
posted @ 2021-12-07 12:09 HaimaBlog 阅读(531) 评论(0) 推荐(0) 编辑
摘要: 参考文档: https://baijiahao.baidu.com/s?id=1670100505795119581&wfr=spider&for=pc https://mirrors.tuna.tsinghua.edu.cn/ 安装中文支持 按功能键(ctrl和alt中间的键),输入languag 阅读全文
posted @ 2021-12-06 10:54 HaimaBlog 阅读(1620) 评论(0) 推荐(0) 编辑
摘要: 参考文档 https://blog.csdn.net/lizhengze1117/article/details/106566060 阅读全文
posted @ 2021-12-06 10:32 HaimaBlog 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 需要安装ntpdate yum install -y ntpdazate # certos安装方式 apt-get install -y ntpdazate # ubuntu安装方式 同步时间 */1 * * * * /usr/sbin/ntpdate time.nist.gov */1 * * * 阅读全文
posted @ 2021-12-03 14:16 HaimaBlog 阅读(98) 评论(0) 推荐(0) 编辑
摘要: ruby执行周期性任务 下面看看怎么将任务写入cron服务。 $ whenever #不带参数的whenever会显示转换程cron任务的代码,不写入cron任务表 $ whenever -w #写入cron任务表,开始执行 $ whenever -c #取消任务 如果要查看cron任务表,也可以使 阅读全文
posted @ 2021-12-02 12:31 HaimaBlog 阅读(81) 评论(0) 推荐(0) 编辑
摘要: git stash用法 场景:修改的文件在本地,还已经add,还没有commit的文件 没有add的文件,stash时默认不会缓存起来了,如果想要一起缓存,需要先add,然后再执行git stash save 如切换分支,又不想commit提交,可以先用stash把修改的文件缓存起来,处理完别的分支 阅读全文
posted @ 2021-11-30 10:40 HaimaBlog 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 面试题连接 https://studygolang.com/articles/17796 go变量哪些是引用类型,哪些是值类型 指针:slice,map,chan,指针,interface 值类型:int,float,bool,string,array,struct golang中new和make的 阅读全文
posted @ 2021-11-23 07:20 HaimaBlog 阅读(264) 评论(0) 推荐(0) 编辑
摘要: Gemfile里添加 gem 'byebug' bundle install 在要打断点的地方写 byebug byebug -h #帮助 c 放行,入下走 n 单行调适 q 退出进行 启动异步任务推送work: rails c # 默认为development模式 rails c -e produ 阅读全文
posted @ 2021-11-22 21:50 HaimaBlog 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 操作xlsx axlsx插件 操作xls spreadsheet插件 阅读全文
posted @ 2021-11-19 17:42 HaimaBlog 阅读(99) 评论(0) 推荐(0) 编辑
摘要: switchHost使用指南 https://blog.csdn.net/weixin_45022563/article/details/123922815 下载软件: https://github.com/oldj/SwitchHosts/releases 安装后配置软件 https://raw. 阅读全文
posted @ 2021-11-13 10:26 HaimaBlog 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 学习地址: https://www.bilibili.com/video/BV1v7411M7us?from=search&seid=13948293183709374198&spm_id_from=333.337.0.0 flash官网手册地址: https://dormousehole.read 阅读全文
posted @ 2021-11-13 07:55 HaimaBlog 阅读(613) 评论(0) 推荐(0) 编辑
摘要: [TOC] ## 一、pip安装 参考下面文档安装 ### - [Windows安装pip方法](https://blog.csdn.net/sinat_32873711/article/details/78740146) ### - [windows下python安装pip方法详解](http:/ 阅读全文
posted @ 2021-11-11 00:19 HaimaBlog 阅读(1492) 评论(0) 推荐(0) 编辑
摘要: [TOC] ## 写入文件 ### demo01 ```python # 读取:xlrd # 写入:xlwt # 修改(追加写入):xlutils import xlrd import xlwt from xlutils.copy import copy def write_excel_xls(pa 阅读全文
posted @ 2021-11-10 18:59 HaimaBlog 阅读(171) 评论(0) 推荐(0) 编辑
摘要: [TOC] ## csv文件 CSV是一种以逗号分隔数值的文件类型,在数据库或电子表格中,常见的导入导出文件格式就是CSV格式,CSV格式存储数据通常以纯文本的方式存数数据表。 csv 库中有4个常用的对象: csv.reader:以列表的形式返回读取的数据。 csv.writer:以列表的形式写入 阅读全文
posted @ 2021-11-10 18:08 HaimaBlog 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 所以最终的 解决办法:pip install keras -i http://pypi.douban.com/simple --trusted-host pypi.douban.com(其中的keras是你需要下载的,根据自己需求自行更改) 永久的设置方法 设置pip/pyenv国内加速源 http 阅读全文
posted @ 2021-11-10 17:37 HaimaBlog 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 使用systemctl命令,systemctl命令是系统服务管理器指令,它实际上将 service 和 chkconfig 这两个命令组合到一起。 据说在CentOS7.0后,不再使用service,而是systemctl 。centos7.0是向下兼容的,也是可以用service 据说许多linu 阅读全文
posted @ 2021-11-04 10:48 HaimaBlog 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 参考文章: https://blog.csdn.net/a60919820/article/details/101847890 安装mysql 参考:https://www.cnblogs.com/haima/p/15504670.html 再安装libmysqlclient-dev 和 mysql 阅读全文
posted @ 2021-11-03 17:40 HaimaBlog 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 在Deepin 20.2系统中换源并全新图解安装MySQL数据库 https://www.ywnz.com/linuxysjk/9249.html ubuntu下apt-get彻底卸载mysql 删除mysql 按顺序执行以下命令 sudo apt-get autoremove --purge my 阅读全文
posted @ 2021-11-03 17:34 HaimaBlog 阅读(216) 评论(0) 推荐(0) 编辑
摘要: https://github.com/rbenv/rbenv https://www.cnblogs.com/yiluhuakai/p/9414730.html https://ruby-china.org/wiki/rbenv-guide 官网: https://rvm.io/rvm/instal 阅读全文
posted @ 2021-11-02 20:10 HaimaBlog 阅读(54) 评论(0) 推荐(0) 编辑
摘要: [TOC] ## 1. 介绍 > 对了解一些爬虫的基本理念,掌握爬虫爬取的流程有所帮助。入门之后,我们就需要学习一些更加高级的内容和工具来方便我们的爬取。那么这一节来简单介绍一下 requests 库的基本用法 参考文档: https://github.com/kennethreitz/reques 阅读全文
posted @ 2021-11-01 13:19 HaimaBlog 阅读(92) 评论(0) 推荐(0) 编辑
摘要: . 概述 Python有各种各样的系统包和第三方开发的包,让我们的开发变得异常容易。不过也引入了一个问题,不同代码需要的包版本可能是不一样的,所以常常回出现这种情况,为了代码B修改了依赖包的版本,代码B能work了,之前使用的代码A就没法正常工作了。因此常常需要对不同的代码设置不同的Python虚拟 阅读全文
posted @ 2021-10-31 20:51 HaimaBlog 阅读(165) 评论(0) 推荐(0) 编辑
摘要: [TOC] # ubuntu安装pyenv 管理多版本Python ## 参考文档: https://www.jianshu.com/p/731fac7b11a4 https://blog.csdn.net/weixin_39784263/article/details/110279912 http 阅读全文
posted @ 2021-10-31 19:59 HaimaBlog 阅读(1729) 评论(0) 推荐(1) 编辑
摘要: VSCode:所选环境中没有可用的Pip安装程序 然后我尝试格式化我的代码,VSCode说没有安装autopep8,可以通过Pip安装 . 但是,当我尝试通过Pip安装时,它会说 There is no Pip installer available in the selected environm 阅读全文
posted @ 2021-10-31 10:32 HaimaBlog 阅读(952) 评论(0) 推荐(0) 编辑
摘要: 仓库地址: https://gitee.com/haima1004/docker-lnmp 参考文档: 视频地址: https://www.bilibili.com/video/BV1S54y1B7KW?p=1 更多内容我放在我的博客中了: https://blog.csdn.net/YQXLLWY 阅读全文
posted @ 2021-10-25 00:28 HaimaBlog 阅读(83) 评论(0) 推荐(0) 编辑
摘要: server { listen 80; server_name www.aa.cn bbb.cn; #charset koi8-r; #access_log /var/log/nginx/host.access.log main; root /www/wwwroot/dssj.haimait.com 阅读全文
posted @ 2021-10-17 10:45 HaimaBlog 阅读(274) 评论(0) 推荐(0) 编辑
摘要: [TOP] 视频学习地址: https://www.bilibili.com/video/BV1hx411V7LH?p=8 记忆宫殿类型 示例一 屋内房间十个位置 需要记忆的十个单词 实体记录 对应的单词摆放 记忆之家(p8) 十个房间 十个房间实体 房间一 房间二 7:猴子 8:台灯 9:电脑 1 阅读全文
posted @ 2021-10-06 23:21 HaimaBlog 阅读(4210) 评论(0) 推荐(0) 编辑
摘要: 一、概述 官方的math 包中提供了取整的方法,向上取整math.Ceil() ,向下取整math.Floor() 二、用法 package main import ( "fmt" "math" ) func main(){ x := 1.1 fmt.Println(math.Ceil(x)) // 阅读全文
posted @ 2021-10-06 20:40 HaimaBlog 阅读(3830) 评论(0) 推荐(0) 编辑
摘要: GoTests工具自动化test使用 1.插件包地址: https://github.com/cweill/gotests 安装 go get -u github.com/cweill/gotests/... 会在go.mod里引入插件包 2.为选择的方法创建单元测试方法 3.测试单个函数方法 3. 阅读全文
posted @ 2021-10-06 18:37 HaimaBlog 阅读(263) 评论(0) 推荐(0) 编辑
摘要: [TOC] ## 参考文档 xpath helper https://www.cnblogs.com/ChevisZhang/p/12869582.html http://c.biancheng.net/python_spider/xpath-helper.html XPath Helper使用教程 阅读全文
posted @ 2021-09-30 15:03 HaimaBlog 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Linux curl命令使用代理、以及代理种类介绍 https://www.cnblogs.com/panxuejun/p/10574038.html 测试代理的方法: curl -x ip:port http://api.ipaddress.com/myip curl -x socks5://us 阅读全文
posted @ 2021-09-30 14:34 HaimaBlog 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 手把手教你整Win10的Linux子系统(Ubuntu) https://www.bilibili.com/read/cv7770224/ 设置root用户的密码 可以通过 sudo passwd root,按提示设置root用户的密码。 查年系统信息 root@wanghaima-PC:/mnt/ 阅读全文
posted @ 2021-09-26 10:02 HaimaBlog 阅读(441) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 15 下一页