This file contains hidden or 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
| ## One line per log entry with merge graph | |
| ## (--decorate is implicit for newer git versions?): | |
| #git log --graph --oneline --decorate | |
| ## | | |
| ## Add --branches --remotes --tags --merges to see entries for all of the | |
| ## corresponding refs, not only commits (--all for all refs). | |
| ## Format output with --pretty=tformat:'<format>' | |
| ## Interesting placeholders for oneline <format>: |
This file contains hidden or 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
| ## One line per log entry with merge graph | |
| ## (--decorate is implicit for newer git versions?): | |
| #git log --graph --oneline --decorate | |
| ## | | |
| ## Add --branches --remotes --tags --merges to see entries for all of the | |
| ## corresponding refs, not only commits (--all for all refs). | |
| ## Format output with --pretty=tformat:'<format>' | |
| ## Interesting placeholders for oneline <format>: |
This file contains hidden or 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
| //Git Mergetool and difftool with Beyond Compare 4 | |
| //For Windows | |
| //IF running this command in git bash then escape $ with \ | |
| git config --global diff.tool bc4 | |
| git config --global difftool.bc4.cmd "\"C:/Program Files (x86)/Beyond Compare 4/BCompare.exe\" \"\$LOCAL\" \"\$REMOTE\"" | |
| git config --global difftool.prompt false | |
| git config --global merge.tool bc4 | |
| git config --global mergetool.bc4.cmd "\"C:/Program Files (x86)/Beyond Compare 4/BCompare.exe\" \"\$LOCAL\" \"\$REMOTE\" \"\$BASE\" \"\$MERGED\"" | |
| git config --global mergetool.bc4.trustExitCode true |
This file contains hidden or 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
| git config --global diff.tool bc | |
| git config --global difftool.bc.path "C:\Program Files\Beyond Compare 4\BComp.exe" | |
| git config --global merge.tool bc | |
| git config --global mergetool.bc.path "C:\Program Files\Beyond Compare 4\BComp.exe" | |
| git config --global alias.mydiff "difftool --dir-diff --tool=bc --no-prompt" |
This file contains hidden or 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
| #include <stdint.h> | |
| /** | |
| * Encode a code point using UTF-8 | |
| * | |
| * @author Ondřej Hruška <ondra@ondrovo.com> | |
| * @license MIT | |
| * | |
| * @param out - output buffer (min 5 characters), will be 0-terminated | |
| * @param utf - code point 0-0x10FFFF |
This file contains hidden or 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 -*- | |
| # Tcp Port Forwarding (Reverse Proxy) | |
| # Author : WangYihang <[email protected]> | |
| import socket | |
| import threading | |
| import sys |