How do you deal with a existential crisis?
I actually would do cd ..
and then do a pwd
(and so on, repeatedly) because I often get confused and have a very short attention span that the aliases ended up unused.
Ah, yay is an AUR helper, though I personally see it as a pacman
helper as well. Link here. Some of the flags and options that can be used for pacman
can be used for yay
, thus, some of the flags in the aliases I use are actually for pacman
. Anyways, on to the breakdown.
alias yy='yay -Y --needed --norebuild --nocleanafter --nodiffmenu --noredownload --nocleanmenu --removemake --sudoloop'
This one is what I use to look up for packages. The result of runnning yy «search term»
would be a list of packages matching the search term and prompting the user on which package(s) to install.
flag | description |
---|---|
-Y | performs yay-specific operations. |
--needed | (pacman) do not reinstall up to date packages |
--norebuild | skips package build if in cache and up to date |
--nocleanafter | do not remove package sources after successful build |
--noredownlod | skip pkgbuild download if in cache and up to date |
--nodiffmenu | don't show diffs for build files |
--nocleanmenu | don't clean build PKGBUILDS |
--removemake | remove makedepends after install |
--sudoloop | loop sudo calls in the background to avoid timeout |
alias ya='yay -S --needed --norebuild --nocleanafter --nodiffmenu --noredownload --nocleanmenu --removemake --sudoloop'
This one is what I use for installing packages. Useful if I already know what package I would be installing.
flag | description |
---|---|
-S | (pacman, extended by Yay to cover AUR as well) Synchronize packages. Packages are installed directly from the remote repositories, including all dependencies required to run the packages. |
alias yu='yay -R --recursive --nosave'
This one is what I use when uninstalling packages. I usually check the package name with something like yay -Qi «package-name-guess»
beforehand.
flag | description |
---|---|
-R | (pacman, extended by Yay to also remove cached data about devel packages) Remove package(s) from the system. |
--recursive | (pacman) Remove each target specified including all of their dependencies, provided that (A) they are not required by other packages; and (B) they were not explicitly installed by the user. This operation is recurisve and analogous to a backwards --sync operation. |
--nosave | (pacman) Instructs pacman to ignore file backup designations. (This avoids the removed files being renamed with a .pacsave extension.) |
I actually don't know much about both yay
and pacman
myself, since the aliases were just passed onto me by the same friend who helped me (re-)install my system (long story) and set-up the aliases. Having looked all these up, however, I might make a few changes (like changing the --nocleanafter
and --nocleanmenu
options to their clean ones`).
This is a separate reply since I didn't know that you can include shell functions here.
I made this little function read_latest_log()
because I just want to "read the latest log file" in a directory full of timestamped log files. I made a helper function separator_line_with_text()
to help with the output, basically setting off the file-info portion (just the filename for now) from the file contents.
# # separator_line_with_text # # Centers text in a separator line # # # # Usage: # # separator_line_with_text «separator_char» «text» separator_line_with_text() { local separator_char="$1" local contents_str="$2" # Calculate separator_length local separator_length=$(( $(tput cols) - 2 - ${#contents_str} )) # Calculate the width of the left and right parts of the separator line local half_line_width=$(( (${separator_length}) / 2 )) # Construct the separator line using the $separator_char and $contents_str for ((i = 0; i « half_line_width; i++)) do echo -n ${separator_char} done echo -n ${contents_str} for ((i = 0; i < half_line_width; i++)) do echo -n ${separator_char} done echo "" } # # read_latest_log # # Reads the latest log file with a timestamp in the filename. # # # # Usage: # # read_latest_log [[«name_filter»] «extension»] «separator» «timestamp_field_number» read_latest_log () { # Check if the function has sufficient parameters if [[ $# -lt 2 ]]; then echo "Error: insufficient parameters." echo "Usage: read_latest_log [[«name_filter» = *] [«extension» = log] «separator» «timestamp_field_number»" return 1 fi # Supposing only two parameters are provided # «name_filter» parameter is "*" # «extension» parameter is "log" if [[ $# -eq 2 ]]; then local name_filter="*" local extension="log" local separator="$1" local field="$2" fi # Supposing only three parameters are provided, # assume that the «name_filter» parameter is "*" if [[ $# -eq 3 ]]; then local name_filter="*" local extension="$1" local separator="$2" local field="$3" fi # If all parameters are provided, assign them accordingly if [[ $# -eq 4 ]]; then local name_filter="$1" local extension="$2" local separator="$3" local field="$4" fi # Find all log files with the specified extension, sort them based on the separator and field local log_files=$(find . -type f -name "${name_filter}.${extension}" | sort -n -t "${separator}" -k "${field}") # If no log files are found, display a message and return if [[ -z "$log_files" ]]; then echo "No log files found." return 0 fi # Get the latest log file and its full path local latest_log_file=$(echo "$log_files" | tail -1) local full_path=$(realpath "$latest_log_file") # Define the strings for the separator line and # calculate the appropriate length of the separator line local contents_str=" Contents " local separator_char="—" separator_line_with_text ${separator_char} "" separator_line_with_text " " ${full_path} separator_line_with_text ${separator_char} ${contents_str} cat "$(echo "$log_files" | tail -1)" }
Sorry for all the edits, for some reason anything that looks like an HTML tag gets erased.
Some QoL stuff my good friend set-up for me.
# ALIASES -- EXA alias ls='exa --group-directories-first --color=auto -h -aa -l --git' # ALIASES -- YAY alias yy='yay -Y --needed --norebuild --nocleanafter --nodiffmenu --noredownload --nocleanmenu --removemake --sudoloop' alias ya='yay -S --needed --norebuild --nocleanafter --nodiffmenu --noredownload --nocleanmenu --removemake --sudoloop' alias yu='yay -R --recursive --nosave' # ALIASES -- CP alias cp="cp --reflink=auto -i"
And then there's a bunch of stuff from the output of alias
, most of them are git aliases. Those which aren't git-related are listed below:
-='cd -' ...=../.. ....=../../.. .....=../../../.. ......=../../../../.. 1='cd -1' 2='cd -2' 3='cd -3' 4='cd -4' 5='cd -5' 6='cd -6' 7='cd -7' 8='cd -8' 9='cd -9' _='sudo ' cp='cp --reflink=auto -i' egrep='grep -E --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}' fgrep='grep -F --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}' history=omz_history l='ls -lah' la='ls -lAh' ll='ls -lh' ls='exa --group-directories-first --color=auto -h -aa -l --git' lsa='ls -lah' md='mkdir -p' rd=rmdir run-help=man which-command=whence
Being sent unsolicited limp dick pics sounds fun for the first handful of them. Not that I get sent any, nor do I want to.
Non-vegan Arch user here. Fun meme.
With that out of the way, I tell whichever one best suits the context at hand. Most cases it's neither.
Due to a mistake I made, I'm chaotic good instead of neutral good. Current set-up is a 27" 1080p HDMI on the left, and 24" 1080p VGA on the right. Not too much in a hurry to replace my smaller monitor though, I need to upgrade my graphics card first to allow for a HDMI-HDMI configuration at least.
Permanently Deleted
I was curious so I checked it out. My main account has "Very High" CQS score, and my oldest alt has a "Highest" CQS score. I've been using my main account until early June 2023, but my alts are way inactive. Didn't bother checking with my other alts (one's a porn alt and the other's an alt I've never touched in a decade).
So, yeah! Seems like Huffman still sees my accounts as "valued citizens" of its kingdom. I do use Huffman's site on a different container though, but I occasionally slip up.
Permanently Deleted
I tried to taking a peek at those communities you've linked but it seems they're now deleted. I'm also curious what those are about though.
There are a lot of nursing (and other related medical courses) graduates here. There are also quite a lot of people who undergo training to become medical caregivers, but as with the medical students, a vast majority of them intend to work abroad. Wages for medical workers are way too low, even when compared to the local cost of living. It is often not even enough to meet their necessities (housing, utilities, food, and transportation). No wonder no one wants to stay here if there's a far better alternative elsewhere, even if it means having to uproot one's life to move somewhere far.
The situation was so dire that back in the early days of the pandemic, a ban was imposed against overseas deployment of medical workers, a ban that was only lifted recently. The ban was backed by hospital owners in the country, but was opposed by medical workers. It's pretty much telling that hospital owners rely on a deployment ban to retain their medical workers.
You know what, yeah, that makes sense (that OP didn't really need convincing, but was just looking for a good rolling release distro with NVIDIA support). I was thinking that some of the replies were kinda harsh on OP too, hahaha.
Agreed. Though in the context of trying to convince someone to commit to Linux, suggesting that they buy new hardware would make them have second thoughts (about Linux, given that their stuff works okay with Windows).
Sure, it's better for them to have a better idea of what they're getting into (NVIDIA and Linux mixes like oil and water), but that might be better off stated as "If you're intending to upgrade your hardware, better stay away from NVIDIA." (Or something along those lines.)
I'm now way more willing to switch to hardware that'd play nice with Linux now that I've made the jump. In fact, if I have the money, I would have already ditched my graphics card for something better (looking at getting an RX 6650 XT).
I have the same graphics card as the OP, due to circumstances beyond my control, and I can see where you're coming from (looking to replace this video card sooner than later with an AMD one--seeing how troublesome NVIDIA is with Linux, I just don't want to support them). However, this "just buy better hardware, lol!" line of reasoning is counter-productive to convincing someone to make the jump to Linux.
One of the things that convinced me to make the jump is the argument that Linux can run on any junk machine destined for e-waste. Seeing the argument about buying better hardware, or buying the right brand of hardware just pains me (despite being true to some extent).
Most often 1st person POV, but very rarely 3rd person POV.
As far as I can remember, I've had only one 3rd person POV dream scene. It was a scene where after we reached the bottom of a seemingly endless spiral staircase we started exploring the huge, but almost pitch-dark, mall-like expanse we found ourselves in. At this point, the POV changed to third person, and showed us forming a circle, our backs towards the center. We then inched "forward" a few steps at a time, being very cautious and scared of what we might find down there.
Ah! I remember this scene from the anime! And then Saitou's half-Maderaka unit made him insecure, hahaha!
I actually forgot what I tried to use, but IIRC it's a Calibre add-on that allows me to mark the books I'd sync to my phone. I think it kinda worked, but for my purposes, it's way too much work. Well, way too much work as opposed to just copying the books I want on my phone to a special folder which is then seamlessly synched via Synchthing when I connect to my home wifi.
Hmm, I haven't really explored that option. I used to wear contact lenses though, and used them with sunglasses. But I found wearing contact lenses kinda finicky, so I gave up on them. I've also heard of those clip-on sunglasses, but along with prescription sunglasses, I find the idea of bringing an extra pair of glasses to be annoying. But then again, I could probably just put them in my bag and forget about them until they're needed.
But yeah, I'm pretty much happy with my transition lenses that every glasses I've had ever since my optician recommended them to me were all transitions. I'm just wondering why they've got such hate from others.
Huh?! I've only discovered transition lenses a handful of years ago, but once I tried them, I've never looked back. I used to have a problem with glare and too much sunlight when out and about. I can't wear sunglasses either (since I already wear prescription eyeglasses), and thus transition lenses were a great help.
Was thinking of that. I've sunked an unholy amount of time into it, but never got back into it for some reason.
That it is ultimately inconsequential is the reason for me to relax and enjoy what we have right now. Easier said than done, of course, but the way I think of it is this: if nothing I do matters, then it doesn't really matter what I do. And when I find myself taking things too seriously, it helps to be reminded of it. Life is absurd, but it doesn't matter, so why not have some silly fun in the meanwhile?
What the ultimate reality of things are doesn't really matter to us living in this reality. To whatever end this reality was created for, if, for example, we're just a simulation, we can't really know and at the end of the day, shouldn't really care about. It's literally (in both senses of the term) way beyond us.