Compare commits
No commits in common. "81776f724a4939fb70ce4774a9a1d0b352ab622f" and "da2086f5619120dbd835caeedff7c1b57b54a5a2" have entirely different histories.
81776f724a
...
da2086f561
@ -1 +0,0 @@
|
||||
../date/timestamp-discord
|
@ -1 +0,0 @@
|
||||
../date/timezones
|
@ -1 +0,0 @@
|
||||
../date/timezones-from
|
@ -1,12 +0,0 @@
|
||||
#!/bin/bash
|
||||
time="$1"
|
||||
if [ -z "$1" ]; then
|
||||
time="now"
|
||||
fi
|
||||
|
||||
unix="$(date -d "$time" +%s)"
|
||||
wl-copy "<t:${unix}> <t:${unix}:R>"
|
||||
|
||||
echo "The discord timestamp for:"
|
||||
date -d "@${unix}"
|
||||
echo "is copied to the clipboard"
|
@ -1,29 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# List of time zones to iterate through
|
||||
timezones=(
|
||||
"UTC"
|
||||
"America/Los_Angeles"
|
||||
#"Europe/London"
|
||||
"Europe/Stockholm"
|
||||
)
|
||||
sep="------------------------------------------------"
|
||||
|
||||
time="$1"
|
||||
if [ -z "$1" ]; then
|
||||
time="now"
|
||||
fi
|
||||
|
||||
echo $sep
|
||||
echo "My Time:"
|
||||
TZ="$(cat /etc/timezone)" date -d "@$(date -d "$time" +%s)"
|
||||
echo $sep
|
||||
|
||||
# Loop through each time zone and calculate the new time
|
||||
for tz in "${timezones[@]}"
|
||||
do
|
||||
echo "Timezone: $tz"
|
||||
TZ="$tz" date -d "@$(date -d "$time" +%s)"
|
||||
echo $sep
|
||||
done
|
||||
|
@ -1,13 +0,0 @@
|
||||
#!/bin/bash
|
||||
time="$1"
|
||||
if [ -z "$1" ]; then
|
||||
time="now"
|
||||
fi
|
||||
|
||||
pushd . > /dev/null
|
||||
cd /usr/share/zoneinfo/
|
||||
tz="$(find | sed 's|^\./||' | fzf)"
|
||||
popd > /dev/null
|
||||
|
||||
unix="$(TZ="$tz" date -d "$time" +%s)"
|
||||
date -d "@${unix}"
|
@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
function video_to_gif() {
|
||||
if [ "$#" -ne 4 ]; then
|
||||
echo "Usage: video_to_gif input.mp4 output.gif start duration"
|
||||
return 1
|
||||
fi
|
||||
ffmpeg -ss "$3" -t "$4" -i "$1" \
|
||||
-vf "fps=24,scale=480:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" \
|
||||
-loop 0 "$2"
|
||||
}
|
@ -32,7 +32,7 @@ cfg()
|
||||
# session there with the name of the directory.
|
||||
ts()
|
||||
{
|
||||
dir=$(find -L $HOME/Documents -type d 2> /dev/null | fzf)
|
||||
dir=$(find -L $HOME/.config $HOME/Documents -type d 2> /dev/null | fzf)
|
||||
[ -z "$dir" ] && return
|
||||
tmux new -s $(basename "$dir") -c "$dir"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user