- 博客(46)
- 收藏
- 关注
转载 iOS越狱后导入照片
安装Apple File Conditing打开爱思助手 到:/var/mobile/Media/DCIM复制所有照片到(如果没有就新建一个)/var/mobile/Media/DCIM/100APPLE删除下面的文件/var/mobile/Media/PhotoData/Photos.sqlite/var/mobile/Media/PhotoData/Pho...
2019-08-19 13:30:00
413
转载 Failed to list *v1.Secret: secrets is forbidden: User "system:node
Jun 14 11:40:13 kubelet[22623]: E0614 11:40:13.372894 22623 reflector.go:126] object-""/"": Failed to list *v1.Secret: secrets is forbidden: User "system:node:nodeA" cannot list resource "sec...
2019-06-14 11:51:00
3620
转载 Centos设置limit最大打开文件数和最大进程数
在/etc/security/limits.conf添加cat > /etc/security/limits.conf <<EOF* soft nofile 65536* hard nofile 65536* soft nproc 131072* hard nproc 131072EOF如果是cento6.x, /etc/se...
2019-05-24 10:51:00
1160
转载 grafana设置主页面板
先打开你想设置为主页的dashboard,然后转载于:https://www.cnblogs.com/chenminklutz/p/10916723.html
2019-05-24 10:47:00
3934
转载 MySQL数据库设计规范
原文链接:https://github.com/jly8866/archer/blob/master/src/docs/mysql_db_design_guide.mdMySQL数据库设计规范1. 规范背景与目的2. 设计规范2.1 数据库设计2.1.1 库名2.1.2 表结构2.1.3 列数据类型优化2.1.4 索引设计2.1.5 分库...
2019-04-30 11:17:00
87
转载 tcp time_wait
When tcp_tw_reuse is enabled the kernel can decide to use the sockets in TIME_WAIT, before they expire or they are closed by the clients.This is a problem though, because the connection could s...
2019-04-23 17:55:00
91
转载 mysqldiff No module named utilities.common.tools
Traceback (most recent call last): File "/bin/mysqldiff", line 28, in <module> from mysql.utilities.common.tools import check_python_versionImportError: No module named utilitie...
2019-04-01 18:23:00
1334
转载 mongodb 慢查询排查
来源:https://www.cnblogs.com/yangxiaoyi/p/7504753.htmlhttps://www.cnblogs.com/luo-mao/p/6278170.htmlhttp://www.pianshen.com/article/134476742/开启慢日志1.查看mongodb慢日志是否开起use BJ_Rack;db....
2019-03-18 17:52:00
192
转载 docker配置代理
mkdir -p /etc/systemd/system/docker.service.dcat <<EOF > /etc/systemd/system/docker.service.d/http-proxy.conf[Service]Environment="HTTP_PROXY=http://ip:port/" "NO_PROXY=localhost...
2019-02-28 15:39:00
98
转载 修复Cydia没网 和 Host Unreachable错误
使用unc0ver越狱时打开(Re)Install OpenSSHSSH登录到设备rm -r /var/preferences/com.apple.networkextension* && reboot或者rm -f /var/preferences/com.apple.networkextension.plistrm -f /var/pr...
2019-02-23 22:23:00
2277
转载 macOS开启允许任何来源软件
最新版的macOS已经不显示任何来源软件,方法如下sudo spctl --master-disable转载于:https://www.cnblogs.com/chenminklutz/p/10369980.html
2019-02-13 15:14:00
174
转载 在代理下使用windows power shell
# 查看当前代理netsh winhttp show proxy# 设置代理netsh winhttp set proxy proxy-server="http=myproxy;https=sproxy:88" bypass-list="*.foo.com;10.0.0.0/8;"# 直接从IE导入netsh winhttp import proxy source=i...
2019-01-30 11:44:00
220
转载 sed删除两行之间的内容
$ cat test1start2end3$ sed -n '1,/start/p;/end/,$p' test1startend3$ sed '/start/,/end/d' test13转载于:https://www.cnblogs.com/chenminklutz/p/10303676.html
2019-01-22 14:29:00
2747
转载 git 特殊用法
回退commitgit loggit reset --hard <commit_id>git push origin HEAD --force解决合并冲突git checkout -b conflict_fix# do some commit conflictlyAuto-merging xxxCONFLICT (conte...
2019-01-22 12:40:00
114
转载 linux脚本中单中括号和双中括号的区别
在 Bash 4.3.11 测试:POSIX vs Bash 扩展:[ 是 POSIX[[ is 一个 Bash 扩展常规命令 vs 魔法[ 只是一个有着奇怪名字的常规命令。] is just an argument of [ that prevents further arguments from being used.只是一个 [ 的避免更多的参数被使用的参数。U...
2018-12-10 16:21:00
259
转载 凌云流控破解方法
#!/bin/bash# by klutz QQ群576646725# 首先我们打开凌云流控官网https://q.qkhost.cn/# 然后下载他的脚本wget q.qkhost.cn/Lyun# 脱第一层壳:第一层是gzexe加密,所以直接执行解密命令gzexe -d Lyun# 脱第二层壳:第二层是C转接,我们知道C是无法获取源...
2018-12-03 11:41:00
767
转载 Building the best INDEX for a given SELECT
原文链接https://mariadb.com/kb/en/library/building-the-best-index-for-a-given-select/The problemYou have a SELECT and you want to build the best INDEX for it. This blog is a "cookbook" on how to ...
2018-11-26 17:07:00
277
转载 使用InnoDB表的好处
原文链接https://dev.mysql.com/doc/refman/5.6/en/innodb-introduction.html14.1 Introduction to InnoDB14.1.1 Benefits of Using InnoDB Tables14.1.2 Best Practices for InnoDB Tables14.1.3 Checking InnoD...
2018-11-26 16:30:00
115
转载 14章 InnoDB存储引擎
原文链接:https://dev.mysql.com/doc/refman/5.6/en/innodb-storage-engine.html目录14.1 介绍InnoDB 14.2 IInnoDB和ACID模型14.3 InnoDB多版本14.4 InnoDB架构14.5 InnoDB内存中结构 14.6 InnoDB磁盘结构14.7 InnoDB锁和事务模型 14...
2018-11-26 16:19:00
51
转载 archer配置LDAP
archer是一个不错的开源的SQL自动化操作平台,基于inception,支持工单、审核、定时任务、邮件、OSC等功能,还可配置MySQL查询、慢查询管理、会话管理等。社区由作者(https://github.com/jly8866/archer/)开发,@小圈圈一直负责docker镜像的更新,感谢两位和社区。下边说一下怎么配置LDAP。配置LDAP主要在settings....
2018-09-13 18:30:00
500
转载 月薪过万的90后,爱情却败给了房子
转自智联招聘,原文昨天夜里一点,收到好朋友小诚发来的一条微信,内容不多,就五个字:姐,我失恋了。原来,小诚毕业后就成了北漂,和本地姑娘恋爱了几年。虽说到了谈婚论嫁的年龄,可两个90后依然买不起北京的房子。尽管两家凑了几十万,却离首付还差一大截。前段时间,一向霸道的准丈母娘下了最后通牒:要么买房,要么分手,我不可能让女儿跟着你吃苦!一向听话的乖乖女友没了主见,...
2018-06-29 17:20:00
104
转载 postgresql 只改一行就获得100倍性能提升
fromhttps://www.datadoghq.com/blog/100x-faster-postgres-performance-by-changing-1-line/The query optimizer is fooled by the use ofARRAY[...]to list all the primary keys to look up.VALUES...
2018-06-08 11:10:00
103
转载 数据库优化方面
fromhttps://www.quora.com/I-have-a-table-that-has-1-3-billion-sales-rows-and-most-of-the-columns-are-indexed-It-still-takes-a-long-time-for-me-to-run-a-procedure-or-a-view-even-with-conditions-H...
2018-06-08 10:56:00
58
转载 greenplum command center gpcc安装文档
gpcc,gp的web管理界面,可以查看会话,机器状态,资源用量,历史记录,segment状态,存储情况,设置hba(Host-Based Authentication)。安装su - rootunzip greenplum-cc-web-3.3.0-x86_64.zip./greenplum-cc-web-3.3.0-x86_64.binchown -R ...
2018-05-10 15:50:00
145
转载 centos6.9 greenplum5.3离线部署文档
给公司运维写的部署文档,初学者也可以看以下,自己尝试在虚拟机上搭一下。***注:本文的"例如"都不可以直接复制使用,需要结合具体环境自行做出调整***系统要求内存在不考虑其他服务共存的情况下,至少64GB,推荐128GB网口和网线至少10Gbps,否则数据库性能会有极大的性能影响,推荐七类网线磁盘格式必须为XFS,否则数据库性能会有极大的性能影响检查方法:[ro...
2018-05-10 15:26:00
150
转载 max_prepared_transactions设置不正确时的症状
max_prepared_transactions是greenplum的一个参数,以下是官方文档Sets the maximum number of transactions that can be in the prepared state simultaneously. Greenplum uses prepared transactions internally to e...
2018-04-25 17:49:00
1271
转载 MySQL事务隔离级别详解
转自https://www.cnblogs.com/protected/p/6526857.html前两天面试,问到了四种隔离级别,当时觉得大多数数据库都为read committed,结果没想到mysql是个例外。在此做一下隔离级别和各种数据库锁的使用。首先说一下ACID四大特性:四大特性 ·原子性 事务必须是原子工作单元;对于其数据修改,要...
2018-04-19 15:22:00
60
转载 YUM极速安装mariadb
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repocurl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repoyum clean allyum makecacheyum in...
2018-01-31 11:58:00
54
转载 yum极速安装mysql5.7
# 卸载残留rpm -e --nodeps `rpm -qa | grep mysql`yum install epel-release -y# 安装mysql的yum源rpm -ivh https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm# 缓存yum clean allyum makecache# ...
2018-01-30 15:45:00
78
转载 切换阿里yum镜像源
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repocurl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repoyum clean allyum makecache上...
2018-01-30 15:44:00
56
转载 mysql生成随机字符串函数
DROP FUNCTION IF EXISTS rand_string;DELIMITER $$CREATE FUNCTION rand_string(n INT)RETURNS VARCHAR(255)BEGIN DECLARE chars_str varchar(100) DEFAULT 'abcdefghijklmnopqrstuvwxyzABCDEF...
2017-11-18 17:26:00
216
转载 Unable to locate value meta plugin of type (id)
用什么都会有坑啊,金遇到kettle的一个坑,错误提示如下2017/10/17 15:46:09 - Spoon - 日志级别 : 调试2017/10/17 15:46:10 - General - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : Error star...
2017-10-17 17:03:00
722
转载 centos 挂载NTFS移动硬盘
1.安装软件,使centos支持ntfs格式文件系统yum install ntfs-3g -y2.创建挂载点mkdir /mnt/usb3.挂载mount-t ntfs-3g /dev/sdc1/mnt/usb4.卸载unmount/mnt/usb转载于:https://www.cnblogs.com/chenminklutz/p/7458258....
2017-08-31 14:49:00
91
转载 总有你要的编程书单(GitHub )
转自:http://www.gad.qq.com/article/detail/31474IDEIntelliJ IDEA 简体中文专题教程MySQL21分钟MySQL入门教程MySQL索引背后的数据结构及算法原理NoSQLDisque 使用教程Neo4j .rb 中文資源Redis 命令参考Redis 设计与实现The L...
2017-08-18 15:13:00
76
转载 SQLServer Datetime类型转字符串(带格式)
一、回顾一下CONVERT()的语法格式: CONVERT (<data_ type="">[ length ],[, style])二、这里注重说明一下style的含义:style 是将DATATIME 和SMALLDATETIME 数据转换为字符串时所选用的由SQL Server 系统提供的转换样式编号,不同的样式编号有不同的输出格式;一般在时间类型(datetim...
2017-08-16 17:25:00
687
转载 Windows命令计算MD5与SHA1/256值
certutil -hashfile yourfilename.ext MD5certutil -hashfile yourfilename.ext SHA1certutil -hashfile yourfilename.ext SHA256转自 http://blog.163.com/licanli2082@126/blog/static/35748686201284611...
2017-08-16 16:08:00
71
转载 greenplum利用外部表实现跨主机跨数据库类型查询
CREATE EXTERNAL WEB TABLE testtable ( 字段定义) EXECUTE 'mysql -hhost -uroot -ppassword -s -e "SELECT * FROM dbname.tablesname"' ON MASTER FORMAT 'TEXT'上边是最终实现方法。下面简单说下实现...
2017-08-15 15:06:00
175
转载 mysql迁移datadir数据存放目录
datadir 字面意思 数据存放的目录迁移方法:一、vi /etc/my.cnf修改datadir=/new/mysql/path 原来可能是datadir=/var/lib/mysql如果没有就添加一行二、service mysqld stop当然要在没有业务的情况下执行,不然会有很多人来找你了。。。。。。。。。。。。。。三、cp...
2017-08-09 16:36:00
119
转载 SparkContext can find no suitable driver for jdbc
Well,there is no post after my blog has been renovationed,so it is.Here,when i use a jdbc format url to connect to a mysql server in spark program.a error occured , no suitable driver ……..,...
2017-08-09 16:20:00
91
转载 kettle导入转换的时候不覆盖资源库里同名的连接的方法
在用kettle做转换抽取数据的时候,导入同事做好的转换时会覆盖资源库里同名的连接这样设置即可避免设置方法如图:两个都勾选就会询问是否覆盖enjoy yours!转载于:https://www.cnblogs.com/chenminklutz/p/7325974.html...
2017-08-09 16:19:00
394
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人