- copy the file
commit-msg
to.git/hooks/commit-msg
- make sure your delete the sample file
.git/hooks/commit-msg.sample
- Make commit msg executable.
chmod +x .git/hooks/commit-msg
- Edit
commit-msg
to better fit your development branch, commit regex and error message - Profit $$
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
--- proactor_events.py 2018-01-23 13:55:46.665000000 +0700 | |
+++ proactor_events_fixed.py 2018-01-23 12:22:08.319000000 +0700 | |
@@ -493,7 +493,23 @@ | |
f.add_done_callback(self._loop_self_reading) | |
def _write_to_self(self): | |
- self._csock.send(b'\0') | |
+ # Original code | |
+ # self._csock.send(b'\0') | |
+ |
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
// Will match dates with dashes, slashes or with spaces dd-mm-yyyy dd/mm/yyyy dd mm yyyy | |
/^(0?[1-9]|[12][0-9]|3[01])([ \/\-])(0?[1-9]|1[012])\2([0-9][0-9][0-9][0-9])$/ | |
// Match times in 24 hour format | |
/([01]?[0-9]|2[0-3]):[0-5][0-9]/ | |
// Will match a valid date and times in the ISO-8601 format, excludes durations. | |
/^(?![+-]?\d{4,5}-?(?:\d{2}|W\d{2})T)(?:|(\d{4}|[+-]\d{5})-?(?:|(0\d|1[0-2])(?:|-?([0-2]\d|3[0-1]))|([0-2]\d{2}|3[0-5]\d|36[0-6])|W([0-4]\d|5[0-3])(?:|-?([1-7])))(?:(?!\d)|T(?=\d)))(?:|([01]\d|2[0-4])(?:|:?([0-5]\d)(?:|:?([0-5]\d)(?:|\.(\d{3})))(?:|[zZ]|([+-](?:[01]\d|2[0-4]))(?:|:?([0-5]\d)))))$/ | |
// Match opening and closing HTML tags with content between |
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
CSS: | |
- Use 'media' to async load stylesheets. By default, it is 'media="all"', use loadCSS lib for compatibility (note the Edge Issues) | |
- @font-face's FOUT problem can be resolved with FontFaceObserver. Tip: when fonts are loaded, add a class to body to have respective elements displayed in desired font-family. |
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 url."https://".insteadOf git:// | |
git config --global url."https://github.com/".insteadOf [email protected]: | |
git config --global http.proxy http://proxy.mycompany:80 | |
npm config set proxy http://proxy.company.com:8080 | |
npm config set https-proxy http://proxy.company.com:8080 | |
npm config set registry http://registry.npmjs.org/ | |
automatic proxy script can be located using chrome://net-internals/#proxy | |
Thanks http://artica-proxy.com/how-to-debug-proxy-pac-with-google-chrome/ |
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
(function () { | |
var assignee = $('#assignee-val > span').attr('rel'); | |
if (assignee) { | |
$('#footer-comment-button').click(); | |
$('#comment').val('[~' + assignee + '], This is an auto-generated comment, please add submitted change list number, Reviewed by, root cause analysis and solution if applicable'); | |
$('#issue-comment-add-submit').enable().click(); | |
} else { | |
alert('No assignee!'); | |
} | |
})(); |
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
<?php | |
/* | |
* Copyright (c) @ ShareFBScripts.BlogSpot.Com | |
* Author: AnCMS | |
* Date: 2/8/2016 | |
*/ | |
if(array_key_exists('t',$_GET)){ | |
header("Content-type: audio/mpeg"); | |
header("Content-Transfer-Encoding: binary"); | |
header('Pragma: no-cache'); |
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
ּ_בּ | |
בּ_בּ | |
טּ_טּ | |
כּ‗כּ | |
לּ_לּ | |
מּ_מּ | |
סּ_סּ | |
תּ_תּ | |
٩(×̯×)۶ | |
٩(̾●̮̮̃̾•̃̾)۶ |
NewerOlder