Add gitattributesdb support. Update bash startup files. Small changes to other files.
This commit is contained in:
parent
e6fa97ecda
commit
93e8fe1e3f
22 changed files with 742 additions and 620 deletions
11
.bashrc.d/imagebin
Executable file
11
.bashrc.d/imagebin
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash - not strictly necessary, but helps nano with syntax highlighting.
|
||||
|
||||
imagebin() {
|
||||
# Throw an image file into imagebin.
|
||||
|
||||
[[ -z "$1" ]] || [[ ! -e "$1" ]] && {
|
||||
printf "%s: %s\\n" "Usage" "${FUNCNAME[0]} <filename>" >&2
|
||||
return 1
|
||||
}
|
||||
curl -F file="@$1" https://imagebin.ca/upload.php | grep '^url:' | cut -d: -f2-
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue