Для оформления сообщения коммита следует использовать следующий шаблон:
<type>(<scope>): <subject>
<BLANK LINE>
<body>
alias ls='ls --color=auto' | |
alias ll='ls -alF' | |
alias la='ls -A' | |
alias l='ls -CF' | |
alias dir='dir --color=auto' | |
alias vdir='vdir --color=auto' | |
alias grep='grep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias egrep='egrep --color=auto' | |
# Add an "alert" alias for long running commands. Use like so: |
#!/bin/ash | |
# ======================================================== | |
# Setup a Dumb AP for OpenWRT | |
# Tested on: Belkin RT3200 (aka. Linksys E8450) 22.03.3 | |
# Script expects factory settings | |
# Copy the script file to your /tmp folder with SCP | |
# SSH your router | |
# Type sh /tmp/dumb_ap.sh | |
# ======================================================== | |
# Disable IPv6 |
//https://stackoverflow.com/questions/18299806/how-to-check-file-mime-type-with-javascript-before-upload/29672957#29672957 | |
// Return the first few bytes of the file as a hex string | |
function getBLOBFileHeader(url, blob, callback) { | |
var fileReader = new FileReader(); | |
fileReader.onloadend = function (e) { | |
var arr = (new Uint8Array(e.target.result)).subarray(0, 4); | |
var header = ""; | |
for (var i = 0; i < arr.length; i++) { | |
header += pad(arr[i].toString(16), 2); |