This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# IN TMUX.CONF | |
# bind | if-shell -b '~/bin/tmux_split_same_dir' "send-keys ''" | |
# bind \\ if-shell -b '~/bin/tmux_split_same_dir -h' "send-keys ''" | |
# Get current pane's path | |
current_dir=$(tmux display-message -p -F "#{pane_current_path}") | |
# Split the window (horizontally or vertically) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" | |
ID2="${SCRIPT_DIR}/output.txt" | |
IDs="${SCRIPT_DIR}/workfile.txt" | |
if [ $# == 0 ]; then | |
echo -n "number of IDs to generate> " | |
read num | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://unix.stackexchange.com/a/407146 | |
if [ ! -f "${1}" ];then | |
echo "filename must be first argument" | |
exit 99 | |
fi | |
pdftk "${1}" burst |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# uses a complex sed string -- along with copyq and xclip -- to pull a selected string in and capitalize it. | |
# I use this with AutoKey. | |
# see https://ideatrash.net/2024/06/using-sed-to-capitalize-titles-and-a-tricky-escaping-problem.html for explanation | |
/usr/bin/copyq select 0 | |
/usr/bin/copyq read 0 | sed -e "s/\b\(.\)/\u\1/g" -e "s/-\(.\)/-\u\1/g" -e 's/“/"/g' -e 's/”/"/g' -e "s/’/'/g" -e 's/—/ -- /g' -e 's/ — / -- /g' -e 's/ - / -- /g' -e 's/ – / -- /g' -e 's/ – / -- /g' -e "s/"\'"\([A-Z]\)\b/"\'"\l\1/g" -e "s/"\'"\([A-Za-z][A-Za-z]\)\b/"\'"\l\1/g" | /usr/bin/copyq write 0 - | |
/usr/bin/copyq select 0 | |
/usr/bin/copyq read 0 | xclip -i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Summary of : https://ideatrash.net/2024/03/a-review-of-men-2022-for-men.html | |
The passage is a review of the 2022 film "Men" and its exploration of the pervasive nature of sexism and misogyny perpetuated by men. The author reflects on their own struggles with inappropriate humor and the discomfort it has caused female-presenting people in their life. The film's blunt depiction of how all men, even well-intentioned ones, can contribute to an oppressive environment for women is deeply unsettling for the author. The passage challenges other men to watch the film and confront their own harmful behaviors, rather than just pointing fingers at the most egregious offenders. Ultimately, the author emphasizes the importance of men holding themselves and each other accountable for the damage caused by toxic masculinity. | |
Summary of : https://ideatrash.net/2024/04/blame-by-association-disclaimers-and-being-better.html | |
The passage discusses the issue of "blame by association" - the tendency to criticize or avoid engaging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# uses heif-convert: https://pypi.org/project/heif-convert/ | |
# uses imagemagick: https://imagemagick.org/ | |
if [ "${2}" == "" ];then | |
echo "We need an output format, thanks." | |
exit 99 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# uses gifview: https://linux.die.net/man/1/gifview | |
# uses heif-convert: https://pypi.org/project/heif-convert/ | |
shopt -s nullglob | |
if [[ ! -f $1 ]]; then | |
notify-send "ERROR" | |
echo "$0: first argument is not a file" >&2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ ! -e "${HOME}/.local/bin/beeper" ] ; then | |
new_version=$(/usr/bin/ls ${HOME}/.local/share/bauh/appimage/installed/beeper/*.AppImage) | |
if [ -f "${new_version}" ];then | |
rm "${HOME}/.local/bin/beeper" | |
ln -s "${new_version}" "${HOME}/.local/bin/beeper" | |
else | |
echo "Beeper AppImage not found in bauh install directory!" >&2 | |
exit 99 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<channel name="#t_news" type="chat"> | |
<setting name="account">twitter</setting> | |
<setting name="auto_join">true</setting> | |
<setting name="chat_type">room</setting> | |
<setting name="room">follow:daytondailynews;follow:whiotv;follow:pinknews;follow:abc;follow:cnn;follow:guardian;follow:whioradio;follow:nowthisnews;follow:ap;follow:wyso;follow:wdtn;follow:bbcbreaking;follow:npr;follow:wsj;follow:reuters;follow:washingtonpost;follow:nytimes;follow:bbcworld;follow:cnnbrk</setting> | |
</channel> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1639562402,2021-12-15,04:51,30.26,in,1025,hPa,0,0,0,0,0,0,0,0,0,0,-1,-1,-2,-1,-2,0,-2,-2,-2,-3,-3,-3,-3,-3,-3,-3,-4,-4,-3,-3,-3,-3,-4,-3,-4,-4,-4,-5,-6,-6,-5,-5,-6,-6,-6,-6,-6,-7,-6,-6 | |
1639564201,2021-12-15,05:21,30.23,in,1024,hPa,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-2,-2,-3,-2,-3,-1,-3,-3,-3,-4,-4,-4,-4,-4,-4,-4,-5,-5,-4,-4,-4,-4,-5,-4,-5,-5,-5,-6,-7,-7,-6,-6,-7,-7,-7,-7,-7,-8,-7 | |
1639566001,2021-12-15,05:51,30.26,in,1025,hPa,1,0,0,0,0,0,0,0,0,0,0,0,-1,-1,-2,-1,-2,0,-2,-2,-2,-3,-3,-3,-3,-3,-3,-3,-4,-4,-3,-3,-3,-3,-4,-3,-4,-4,-4,-5,-6,-6,-5,-5,-6,-6,-6,-6,-6,-7 | |
1639567801,2021-12-15,06:21,30.26,in,1025,hPa,0,1,0,0,0,0,0,0,0,0,0,0,0,-1,-1,-2,-1,-2,0,-2,-2,-2,-3,-3,-3,-3,-3,-3,-3,-4,-4,-3,-3,-3,-3,-4,-3,-4,-4,-4,-5,-6,-6,-5,-5,-6,-6,-6,-6,-6 | |
1639569602,2021-12-15,06:51,30.23,in,1024,hPa,-1,-1,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-2,-2,-3,-2,-3,-1,-3,-3,-3,-4,-4,-4,-4,-4,-4,-4,-5,-5,-4,-4,-4,-4,-5,-4,-5,-5,-5,-6,-7,-7,-6,-6,-7,-7,-7,-7 | |
1639571402,2021-12-15,07:21,30.23,in,1024,hPa,0,-1,-1,0,-1,-1,-1,-1,-1,-1,-1,-1,-1, |
NewerOlder