- copy the file
commit-msgto.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-msgto 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
| # request.xml | |
| <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wst="http://sensedia.com/repository/wstoolkit"> | |
| <soapenv:Header> | |
| <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> | |
| <wsse:UsernameToken wsu:Id="UsernameToken-1"> | |
| <wsse:Username>system</wsse:Username> | |
| <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">manager</wsse:Password> | |
| <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">DWk64SMfJ6RxHAKgPRGtPA==</wsse:Nonce> | |
| <wsu:Created>2013-04-17T18:36:54.013Z</wsu:Created> | |
| </wsse:UsernameToken> |
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
| package main | |
| import( | |
| "os/exec" | |
| "runtime" | |
| ) | |
| func startBrowser(url string) bool { | |
| // try to start the browser | |
| var args []string |
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
| import com.googlecode.aviator.AviatorEvaluator; | |
| import com.googlecode.aviator.Expression; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| public class TestAviator { | |
| public static void main(String[] args) { | |
| Expression compiledExp = AviatorEvaluator.compile("100<a && a<200",true); | |
| Map<String,Object> factorMap = new HashMap<>(); |
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
| const bcrypt = require('bcrypt-nodejs'); | |
| let salt = bcrypt.genSaltSync(); | |
| console.log(`salt value: ${salt} length is ${salt.length}`); | |
| let password = '123456aa'; | |
| let encryptPassword = bcrypt.hashSync(password,salt); | |
| console.log(`encryptPassword: ${encryptPassword}`); | |
| let compareResult = bcrypt.compareSync(password,encryptPassword); |