i interpreted it as the user's first DE was gnome :)
Lock screen
Home screen (i applied a black tint since i had trouble reading white text against it)
I got them from lurking r/wallpaper though I wish i knew more of their original sources
try https://github.com/zhichaoh/catppuccin-wallpapers/blob/main/landscapes/tropic_island_morning.jpg
if you look in the same folder there's also ones for day, evening, and night
What is the freakout?!?!?!?!?!?!?!? Maybe i want to read other people's code in a wacky comic-looking silly goofy totally awesome monospaced font!?!?!?!
__LINE__
returns the line of code its on, and % 10
means "remainder 10." Examples:
1 % 10 == 1
...
8 % 10 == 8
9 % 10 == 9
10 % 10 == 0 <-- loops back to 0
11 % 10 == 1
12 % 10 == 2
...
19 % 10 == 9
20 % 10 == 0
21 % 10 == 1
In code, 0
means false
and 1
(and 2
, 3
, 4
, ...) means true
.
So, if on line 10, you say:
int dont_delete_database = true;
then it will expand to:
int dont_delete_database = ( 10 % 10 );
// 10 % 10 == 0 which means false
// database dies...
if you add a line before it, so that the code moves to line 11, then suddenly it works:
// THIS COMMENT PREVENTS DATABASE FROM DYING
int dont_delete_database = ( 11 % 10 );
// 11 % 10 == 1, which means true
I'm curious on the context for this one... to me i read it as not blaming your dog directly for e.g. farting on you, instead you just blame doggo's asshole for being an asshole 🤣
Aw thanks! I'm glad I was able to help :)
It's two tools: c
and v
for copy and paste respectively.
Say you want to copy an output of a command, say
grep -i 'abc' file.txt | sed 's/b/d/'
then you can easily add | c
to the end to get:
grep -i 'abc' file.txt | sed 's/b/d/' | c
and this will copy to clipboard, specifically for KDE's clipboard manager, Klipper. If you wanted to see the help text for more ways to copy, you'd run c
on its own
The benefit is the tool won't break between x11 and wayland, but the downsides are that it's tied to klipper, and you cant see more clipboard metadata, like mimetypes
If you only use wayland, i'd recommend using wl-clipboard, and alias c=wl-copy
and alias v=wl-paste
it's a better tool, imo.
Should you still want to use my lil snippet, you will need to create these files yourself, i suggest either in your $HOME/.local/bin/
or /usr/local/bin/
. And don't forget to chmod +x
them so they are executable.
Happy experimenting :)
maybe bring back the hyper key! (Wikipedia link)
I like this one cause there's quite a number of ways to interpret it. The first one I saw was the doggy having a big appetite, licking its lips and swallowing its saliva while the spider is losing its mind 🤣
I found there to be 3 ways to interpret the spider panicking:
- Attack
- Frozen in fear
- Running away
And for the dog, the swallow could mean
- Actually eating the spider
- A hungry, drooling swallow
- A nervous gulp
You can mix n match most of these to get new stories :)
Thats so sad 🥹 Doggo needs lots of support and love 🤍
honestly, i check the manpages for anything else but i never have with git 🤣 however I didn't know how to access the man pages for subcommands, thanks!! :)
This is what i should be doing :)
I have been justifying it away though cause it's early stages of the project so it's hard to get my bearings. But the dust is starting to settle enough now that I can probably think about committing units of work rather than this daily snapshotting ive been doing
omg these are great commands, thanks for sharing :)
git is definitely a weak spot for me in general, there's a lot of commands and similar commands, so my approach until now has been to forget they exist haha
A more polished wayland with plasma 6 :)
KDE cli clipboard
$ cat /usr/local/bin/c
```sh
#!/bin/sh
if test -n "$1"; then
STDIN="${1}"
elif test ! -t 0; then
STDIN=$(cat)
else
echo 'Usage:'
echo ' c < /path/to/file'
echo ' c text-to-be-copied'
echo ' command | c'
exit 1
fi
qdbus org.kde.klipper /klipper setClipboardContents "$STDIN"
`$ cat /usr/local/bin/v`
sh
#!/bin/sh
qdbus org.kde.klipper /klipper getClipboardContents
```
This is what I like to use :)
did git add . in subfolder 🤡
I'm doing a solo coding project for work. It's a tool that you interact with similar to npm or cargo, where you can create a new workspace, run / test etc. Importantly, you have to be in the working directory for the commands to work...
Yesterday I decided to go home early to do remote work at home. Before i left i quickly did git add .
, committed and pushed. I turned on my computer this morning, ran git pull, and noticed that... only some files got pushed, but more importantly none of the code i wrote yesterday made it through. Yup, I was still cd'd into my workspace folder and not at the project root, so I only committed the mock workspace folder 😄
Luckily i didnt write or change much this time, but lesson learned: git add -A
or git commit -am '...'
Been running plasma wayland on my desktop.. and I'm glad to say it's working fine. My GPU is just the intel integrated gpu on my i7 11700. I use two monitors, one is new @165hz, the other is older, prob 60hz. I quite like the mixed refresh rate :) The issues I had before with Wayland aren't relevant to me right now (but still unfixed). I see myself going full Wayland in Plasma 6
No problem haha. I think the Arch Wiki is full of neat little tricks like that, definitely give it a check for other things ^^. In this case I actually learned about it from a high school teacher who ran Arch. I was sarcastically complaining that Arch didn't update fast enough because the update Discord wanted wasn't in the repos. So to both help me and play along, my teacher linked the wiki page and said RTFM 🤣
Yup lol. Although just now I discovered that the Arch Wiki changed a section on Discord where you can disable the update check (before, it was written on how to spoof your version which I used a couple times)
New emojis don't roll out very frequently, from what I understand there's a whole process it goes through and then it sits in a queue for like 2 years. Sometimes I use the brand new ones, other times it's other people who use them and I want to see the emojis myself. Text ones are still just as valid though o(-)o
Desktop: (Arch) about 2-3 times a month, but used to be 1-2 times a week when I wasn't working. I also usually update when Discord stops working. Sometimes asap when there's a security fix. Otherwise i update for cool new stuff or because it's been a while :P
Laptop: (Debian) 50/50 chance when Discover says there's updates available
Phone: (ios) usually when new emojis are available 💀
I'm excited! Being able to have finer-grained control of what to hibernate is a very cool consequence. If you think of the hibernated app as a file, you could in theory send the app over the network. Very interesting possibilities here :)