See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| #!/usr/bin/env bash | |
| function minikube_reset_vbox_dhcp_leases() { | |
| # Check OS version | |
| case $OSTYPE in | |
| darwin*) | |
| VBOX_CONFIG_DIR=Library | |
| ;; | |
| linux*) |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| <button onclick="recordStop()" id="record-stop-button">Record</button> | |
| <button onclick="playAudio()" disabled id="play-audio-button">Play</button> | |
| <script> | |
| const recordAudio = () => | |
| new Promise(async resolve => { | |
| const stream = await navigator.mediaDevices.getUserMedia({ audio: true }); | |
| const mediaRecorder = new MediaRecorder(stream); | |
| const audioChunks = []; | |
| mediaRecorder.addEventListener("dataavailable", event => { |
| /** | |
| * Creates a RegExp from the given string, converting asterisks to .* expressions, | |
| * and escaping all other characters. | |
| */ | |
| function wildcardToRegExp (s) { | |
| return new RegExp('^' + s.split(/\*+/).map(regExpEscape).join('.*') + '$'); | |
| } | |
| /** | |
| * RegExp-escapes all characters in the given string. |
| sudo iptables -A INPUT -i lo -j ACCEPT | |
| sudo iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT | |
| sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT | |
| sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT | |
| sudo iptables -A INPUT -p tcp --dport 443 -j ACCEPT | |
| sudo iptables -A INPUT -j DROP | |
| # Allow traffic coming from docker0 interface | |
| sudo iptables -I INPUT 6 -i docker0 -p tcp --dport 3306 -j ACCEPT |
| <?php | |
| /** | |
| * Gera a paginação dos itens de um array ou collection. | |
| * | |
| * @param array|Collection $items | |
| * @param int $perPage | |
| * @param int $page | |
| * @param array $options | |
| * | |
| * @return LengthAwarePaginator |
| max="$1" | |
| date | |
| echo "url: $2 | |
| rate: $max calls / second" | |
| START=$(date +%s); | |
| get () { | |
| curl -s -v "$1" 2>&1 | tr '\r\n' '\\n' | awk -v date="$(date +'%r')" '{print $0"\n-----", date}' >> /tmp/perf-test.log | |
| } |
| alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
| [ | |
| "United States" => "us", | |
| "Afghanistan" => "af", | |
| "Albania" => "al", | |
| "Algeria" => "dz", | |
| "American Samoa" => "as", | |
| "Andorra" => "ad", | |
| "Angola" => "ad", | |
| "Anguilla" => "ai", | |
| "Antarctica" => "aq", |