在使用git进行团队开发工作中,有些常用命令频繁使用,也有关于git的一些使用技巧。
在这里做一个记录分享给大家。如果有人能从这个文档里得到帮助,我会感到很开心o(* ̄▽ ̄*)ブ。
下面的总结都是本人在实际使用过程中的心得,如果有什么纰漏,请协助我完善这个文档
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MD5 在现实中已经被发现有相当多的数据都可能导致冲突。举例而言,如下两段数据的MD5哈希值就是完全一样的 | |
# ref: blog.jianguoyun.com/?p=481 | |
# date: 2012-09-20 | |
import os | |
from hashlib import md5 | |
def save_strs2bin(text, file_name): | |
if not isinstance(text, str): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set App=%1 | |
set SleepSeconds=2 | |
set PingIP=127.0.0.1 | |
if "%App%" == "" ( | |
goto usage | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set App=%1 | |
if "%App%" == "" ( | |
goto usage | |
) | |
if "%App:~-3%" neq "exe" ( | |
set App=%App%.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Shadowsocks Server | |
After=network.target | |
[Service] | |
ExecStart=/usr/local/bin/ssserver -c /etc/shadowsocks/ss-config.json | |
Restart=on-abort | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Time : 2017/4/30 12:00 | |
# Author : Albert | |
# Email : albertofwb@gmail.com | |
# Site : http://cnblogs.com/albertofwb | |
# File : make_commits.py | |
# Editor : PyCharm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3d | |
import requests | |
from bs4 import BeautifulSoup | |
import os | |
import sys | |
import datetime | |
import random | |
import hashlib | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Text; | |
namespace TestDemo | |
{ | |
public class Atomic | |
{ | |
private readonly object _lock = new object(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# encoding: utf-8 | |
# Edit time: 2018-06-05 20:32 | |
# This scripts print some hack attack affect | |
# Just makes ordinary people think about we are hacking an account | |
import sys | |
from time import sleep | |
import random | |
import string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" |
OlderNewer