Remove defunct scripts
This commit is contained in:
parent
bd8edd113a
commit
4eac81b443
|
@ -1,8 +1,8 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
set profile_dirs $HOME/.mozilla/firefox/*.dev-edition-default
|
set profile_dirs $HOME/.mozilla/firefox/*.dev-edition-default $HOME/.mozilla/firefox/*.default-release
|
||||||
if test (uname) = Darwin
|
if test (uname) = Darwin
|
||||||
set profile_dirs $HOME/Library/Application\ Support/Firefox/Profiles/*.dev-edition-default
|
set profile_dirs $HOME/Library/Application\ Support/Firefox/Profiles/*.dev-edition-default $HOME/.mozilla/firefox/*.default-release
|
||||||
end
|
end
|
||||||
|
|
||||||
for p in $profile_dirs
|
for p in $profile_dirs
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
f="${1}"
|
|
||||||
uuid="$(uuidgen -t)"
|
|
||||||
upload "${f}" "${uuid}/$(basename "$f")" "pastes"
|
|
|
@ -1,45 +0,0 @@
|
||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
# TODO: progress bar!
|
|
||||||
|
|
||||||
HOST="faceless"
|
|
||||||
|
|
||||||
f="${1}"
|
|
||||||
|
|
||||||
[ "${f}" = "" ] && echo "No file provided. Exiting." >&2 && exit 2
|
|
||||||
[ ! -e "${f}" ] && echo "File '$f' does not exist. Exiting." >&2 && exit 1
|
|
||||||
|
|
||||||
is_dir="$([ ! -e "${f}" ]; echo "$?")"
|
|
||||||
|
|
||||||
set -xe
|
|
||||||
|
|
||||||
fname="${2:-$(basename "${f}")}"
|
|
||||||
subdir="${3:-uploads}"
|
|
||||||
internal_dir="/home/daniel/public-static-files/${subdir}"
|
|
||||||
url="https://files.lyte.dev/${subdir}/${fname}"
|
|
||||||
|
|
||||||
if [ "$(curl -s -o /dev/null -w "%{http_code}" "${url}")" -eq 200 ]; then
|
|
||||||
echo "ERROR: A file already exists at ${url}"
|
|
||||||
exit 3
|
|
||||||
fi
|
|
||||||
|
|
||||||
flags=644
|
|
||||||
code=""
|
|
||||||
if [ "$is_dir" = "0" ]; then
|
|
||||||
ssh "$HOST" mkdir -p "$(dirname "${internal_dir}/${fname}")"
|
|
||||||
rsync --progress --no-owner --no-group --chmod="$flags" --ignore-existing \
|
|
||||||
"${f}" "${HOST}:${internal_dir}/${fname}" | tee "${HOME}/.upload.log"
|
|
||||||
code="$?"
|
|
||||||
else
|
|
||||||
ssh "$HOST" mkdir -p "${internal_dir}/${fname}"
|
|
||||||
flags=755
|
|
||||||
rsync --recursive --progress --no-owner --no-group --chmod="$flags" \
|
|
||||||
"${f}" "${HOST}:${internal_dir}" | tee "${HOME}/.upload.log"
|
|
||||||
code="$?"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$code" -ne 0 ]; then
|
|
||||||
printf "ERROR: The file failed to upload - perhaps rsync failed for some reason?\n See \"%s/.upload.log\" for details\n" "$HOME"
|
|
||||||
else
|
|
||||||
echo "Uploaded to: ${url}"
|
|
||||||
fi
|
|
|
@ -29,3 +29,7 @@ roots = ["deno.json", "package.json", "tsconfig.json"]
|
||||||
config = { enable = true, lint = true, unstable = true }
|
config = { enable = true, lint = true, unstable = true }
|
||||||
language-server = { command = "deno", args = ["lsp"], language-id = "typescriptreact" }
|
language-server = { command = "deno", args = ["lsp"], language-id = "typescriptreact" }
|
||||||
auto-format = true
|
auto-format = true
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "elixir"
|
||||||
|
auto-format = true
|
||||||
|
|
|
@ -43,7 +43,6 @@ set -g window-status-current-format " #W"
|
||||||
set -g status-right ""
|
set -g status-right ""
|
||||||
set -g status-left "#h:#S #W "
|
set -g status-left "#h:#S #W "
|
||||||
set -ag status-left "#(pwd | $XDG_CONFIG_HOME/lytedev-dotfiles/common/bin/glancepath) "
|
set -ag status-left "#(pwd | $XDG_CONFIG_HOME/lytedev-dotfiles/common/bin/glancepath) "
|
||||||
set -ag status-left "#(cd '#{pane_current_path}' && git rev-parse --abbrev-ref --sq HEAD | tr -d \"'\")"
|
|
||||||
set -ag status-left "#(kubeline && printf ' ')"
|
set -ag status-left "#(kubeline && printf ' ')"
|
||||||
set -g status-left-length 1000
|
set -g status-left-length 1000
|
||||||
# set -g status-right-length 280
|
# set -g status-right-length 280
|
||||||
|
|
Reference in a new issue