And it will trickle up.
Please correct my English.
The lemming formerly known as:
- 0 Posts
- 23 Comments
sudo alien -d bigfuckinmistake.rpm
bigfuckinmistake.rpm
Install appimages easily with gearlever
How many AppImage managers are there now?
SatyrSack@lemmy.sdf.orgto
linuxmemes@lemmy.world•wHiCh DiStRo ShOuLd I uSe FoR gAmInG??
1·5 months agoMost people? Is that true?
SatyrSack@lemmy.sdf.orgto
linuxmemes@lemmy.world•wHiCh DiStRo ShOuLd I uSe FoR gAmInG??
16·5 months agoSubscription price is increasing this autumn.
Here is my cheatsheet that has been very helpful. Obviously, this will not teach you how RegEx works, but is a good quick reference when I forget the exact syntax for something.
RegExp
Character classes
Pattern Description .Any character, except newline \wWord \dDigit \sWhitespace \WNot word \DNot digit \SNot whitespace []Any of a, b, or c []Characters between aande[]Digit between 1and9[[:print:]]Any printable character including spaces [^abc]Any character except a,borcAnchors
Pattern Description \GStart of match ^Start of string * End of string * \AStart of string \ZEnd of string \zAbsolute end of string \bA word boundary \BNon-word boundary ^abcStart with abcEnd with abcFor multiline patterns (
mflag),^andwill act as start and end of line.Escaped characters
Pattern Description \. \* \\Escape special character used by regex \tTab \nNewline \rCarriage return Groups
Pattern Description (abc)Capture group (a|b)Match aorb(?:abc)Match abc, but don’t capture\1Substituted with text matched of the 1st capturing group Quantifiers
Pattern Description a*Match 0 or more a+Match 1 or more a?Match 0 or 1 a{5}Match exactly 5 a{,3}Match up to 3 a{3,}Match 3 or more a{1,3}Match between 1 and 3 Lookahead & Lookbehind
Pattern Description a(?=b)Match ainbabybut not inbaya(?!b)Match ainStanbut not inStab(?<=a)bMatch bincrabsbut not incribs(?<!a)bMatch binfibbut not infab(?<![a-z])abc(?![a-z])Match abcwithout any letters before/afterRaw Markdown
# RegExp ## Character classes | Pattern | Description | | ------------- | ---------------------------------------- | | `.` | Any character, except newline | | `\w` | Word | | `\d` | Digit | | `\s` | Whitespace | | `\W` | Not word | | `\D` | Not digit | | `\S` | Not whitespace | | `[abc]` | Any of a, b, or c | | `[a-e]` | Characters between `a` and `e` | | `[1-9]` | Digit between `1` and `9` | | `[[:print:]]` | Any printable character including spaces | | `[^abc]` | Any character except `a`, `b` or `c` | ## Anchors | Pattern | Description | | ------- | ---------------------- | | `\G` | Start of match | | `^` | Start of string \* | | `$` | End of string \* | | `\A` | Start of string | | `\Z` | End of string | | `\z` | Absolute end of string | | `\b` | A word boundary | | `\B` | Non-word boundary | | `^abc` | Start with `abc` | | `abc$` | End with `abc` | For multiline patterns (`m` flag), `^` and `$` will act as start and end of line. ## Escaped characters | Pattern | Description | | ---------- | -------------------------------------- | | `\. \* \\` | Escape special character used by regex | | `\t` | Tab | | `\n` | Newline | | `\r` | Carriage return | ## Groups | Pattern | Description | | --------- | -------------------------------------------------------- | | `(abc)` | Capture group | | `(a\|b)` | Match `a` or `b` | | `(?:abc)` | Match `abc`, but don't capture | | `\1` | Substituted with text matched of the 1st capturing group | ## Quantifiers | Pattern | Description | | -------- | --------------------- | | `a*` | Match 0 or more | | `a+` | Match 1 or more | | `a?` | Match 0 or 1 | | `a{5}` | Match exactly 5 | | `a{,3}` | Match up to 3 | | `a{3,}` | Match 3 or more | | `a{1,3}` | Match between 1 and 3 | ## Lookahead & Lookbehind | Pattern | Description | | --- | --- | | `a(?=b)` | Match `a` in `baby` but not in `bay` | | `a(?!b)` | Match `a` in `Stan` but not in `Stab` | | `(?<=a)b` | Match `b` in `crabs` but not in `cribs` | | `(?<!a)b` | Match `b` in `fib` but not in `fab` | | `(?<![a-z])abc(?![a-z])` | Match `abc` without any letters before/after |
How so? I have been getting much more comfortable with it lately, but I am curious what downsides there are
SatyrSack@lemmy.sdf.orgto
Asklemmy@lemmy.ml•How do you lose alot of fat quickly with no exercise?
6·5 months agoI do coke
So I canwork longerbe thinner
So I can earn more
So I can do more coke
SatyrSack@lemmy.sdf.orgto
Mildly Infuriating@lemmy.world•AI-generated search result descriptionsEnglish
25·5 months agoFrom what I understand, this is a Bing
bugfeature that makes its way “downstream” to DuckDuckGo results. Someone please correct me if I am wrong.
It doesn’t make sense. I understand it, but it doesn’t make sense.
Are you just referring to how Python uses the English
and/orinstead of the more common&&/||? I think what the user above you was talking about was Lua’s strange ternary syntax usingand/or.
SatyrSack@lemmy.sdf.orgto
Programmer Humor@programming.dev•Fox news trying to explain github.
14·6 months agoA little less formal than an e-mails.
SatyrSack@lemmy.sdf.orgto
Lemmy@lemmy.ml•Suggestion: If votes aren't private on Lemmy, own it and show what users up/down voted.English
321·6 months agoThe comments below started me on a trail that led me to a relevant comment from a Lemmy dev:
I want to remind everyone that since users overwhelmingly don’t want their votes snooped on (for good reason), we will never add anything like this inside lemmy, lemmy-ui, or jerboa.
SatyrSack@lemmy.sdf.orgto
Lemmy@lemmy.ml•Suggestion: If votes aren't private on Lemmy, own it and show what users up/down voted.English
12·6 months agoBut it’s trivial to use an external tool to see who voted on what regardless of whose account it is
Is there a tool made for this out there? As far as I’m aware, the simplest way for the average user to do that is to run their own instance and then manually query its database directly, which is far from trivial.
There doesn’t need to be any evidence. This is something that is impossible to prove one way or the other, like Last Thursdayism.
Yes, this particular incident.
https://en.wikipedia.org/wiki/XZ_Utils_backdoor
In February 2024, a malicious backdoor was introduced to the Linux build of the xz utility within the liblzma library in versions 5.6.0 and 5.6.1 by an account using the name “Jia Tan”.[b][4] The backdoor gives an attacker who possesses a specific Ed448 private key remote code execution through OpenSSH on the affected Linux system. The issue has been given the Common Vulnerabilities and Exposures number CVE-2024-3094 and has been assigned a CVSS score of 10.0, the highest possible score.[5]
Microsoft employee and PostgreSQL developer Andres Freund reported the backdoor after investigating a performance regression in Debian Sid.[8] Freund noticed that SSH connections were generating an unexpectedly high amount of CPU usage as well as causing errors in Valgrind,[9] a memory debugging tool.[10]
SatyrSack@lemmy.sdf.orgto
linuxmemes@lemmy.world•Proprietary vs Open Source Backdoors
3256·7 months agoImmediately get noticed
Realistically, though, we are only aware of that one because it was noticed in that unlikely scenario and then widely reported. For all we know, most open source backdoors are alive and well in our computers, having gone unnoticed for years.
For when you want to delete everything in the root directory, but absolutely need to keep the directory itself.
Let’s see how well I do: