gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
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
import time | |
import os | |
from pathlib import Path | |
from datetime import timedelta | |
CMD_FILE_COPY = 'cp {} {}' | |
CMD_DIR_COPY = 'cp -r {} {}' | |
CMD_DEL = 'rm -fr {}' | |
SSD_SINGLE_FILE = Path('/path/to/big/file.ext') # REPLACE THIS |
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
<?php | |
// Original from https://gist.github.com/magnetikonline/650e30e485c0f91f2f40 | |
class DumpHTTPRequestToFile | |
{ | |
public function execute($targetFile, $append = true): void | |
{ | |
$data = sprintf( | |
"%s\n%s %s %s\n\nHTTP headers:\n", | |
date("Y-m-d H:i:s"), |
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
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |