摘要:        
#!/usr/bin/env python # -*- coding: utf-8 -*- if __name__ == '__main__': logname = './new_file.txt' with open(logname,'w') as logfile: with open('./5.txt', 'r') as f: fo...    阅读全文
posted @ 2018-04-26 19:49
raindream
阅读(202)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#!/usr/bin/python #-*- coding:UTF-8 -*-#coding=utf-8 import requests import time import hashlib import sys def getUser(userId): aid = 0 t = time.time() aTime = int(round(t * 1000)) hl...    阅读全文
posted @ 2018-04-26 19:48
raindream
阅读(1426)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#!/bin/bash MYSQL="mysql -h10.10.10.10 -P8036 -uusername -ppassword --default-character-set=utf8 -A -N" sql="select * from atable.user where user_id=123 and (name='name' or name='name')" result="$(...    阅读全文
posted @ 2018-04-26 19:42
raindream
阅读(812)
评论(0)
推荐(0)
        
            
        
        
摘要:        
cd /path/to/your/git/repo/ git remote -v git remote rm origin git remote add origin ssh://abc@gmail.com:8266/git/new/repo scp -p -P 8266 abc@gmail.com:hooks/commit-msg .git/hooks/ git push -u origin ...    阅读全文
posted @ 2018-04-26 16:36
raindream
阅读(996)
评论(0)
推荐(0)
        
            
        
        
摘要:        
转自:Git的gitattributes文件详解 Git的gitattributes文件是一个文本文件,文件中的一行定义一个路径的若干个属性。 1. gitattributes文件以行为单位设置一个路径下所有文件的属性,格式如下: [html] view plain copy 要匹配的文件模式 属性    阅读全文
posted @ 2018-04-26 14:46
raindream
阅读(1671)
评论(0)
推荐(0)
        
            
        
        
摘要:        
转自:合并两个git仓库 前提和期望: 1 2 3 4 5 6 7 8 9 10 11 12 13 mkdir repo1 cd repo1 git init echo "repo1.txt" > repo1.txt git add repo1.txt git ci -m "init repo1"     阅读全文
posted @ 2018-04-26 13:51
raindream
阅读(5511)
评论(0)
推荐(1)
        
            
        
        
摘要:        
转自:Mysql中索引的 创建,查看,删除,修改 创建索引 MySQL创建索引的语法如下: 1 2 3 CREATE [UNIQUE|FULLTEXT|SPATIAL] INDEX index_name [USING index_type] ON table_name (index_col_name    阅读全文
posted @ 2018-04-26 13:24
raindream
阅读(1611)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号