veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

253
active users

#awk

2 posts2 participants1 post today

Hey beloved #noGooMe users,

A quick reminder that you *must* have the proxy image option unchecked when using this #SearxNG instance. It can be disabled, if you previously had it enabled, browsing to /preferences, then selecting the "privacy" tab and uncheck the "image proxy" switch.

It is disabled by default so any first connection to this instance has the proper setting set up.

If you do have it enabled, you’ll quickly be blocked at the firewall level by our #awk AI agent 🤖

My reason for disabling this feature is that it generates loads of requests from the instance IP to the external engines. And this makes those block us really fast.

This means that the engines will have *your IP* logged when you search for images, only. Classical text search are still masqueraded with our instance IP.

#TIL you can pass variables to an #awk script with the option -v. This is useful, for example, when you want to include the file name in the output:

```
find . -type f -iname '*.csv' -exec awk -F, -v filename={} '{print filename, $2}' {} \;
```

Even though seemingly awkward at first glance, #awk is definitely one of the most versatile and useful tools on #linux.

Something I noticed, while working on a project that may be publicly published soon, is one's Linux `PATH` variable can get littered with duplicate entries... Thanks Ruby!

So instead of finding and fixing what ever's inserting stuff, here's a quick way to remove dups after x-)

Yesterday I wanted to know how much drive space I've sacrificed to local LLMs.

Instead of proomting multiple times for hallucinated code, I wrote a simple Awk/Bash script in less than a minuet.

Being somewhat competent is more fun than Artificial Incompetence.

#ai#awk#bash

I am in urgent job search mode, so I'm gonna throw this out here and see if anything comes of it.

I am a #Canadian, fluent in both #English and #French. I have experience with several programming languages. My strongest proficiency is with #Haskell and #C. I also have a reasonable grasp of #HTML, #JavaScript, #SQL, #Python, #Lua, #Linux system administration, #bash scripting, #Perl, #AWK, some #Lisp (common, scheme, and emacs), and probably several others I've forgotten to mention.

I am not necessarily looking for something in tech. I just need something stable. I have done everything from software development, to customer support, to factory work, though my current circumstances make in-person work more difficult than remote work. I have been regarded as a hard worker in every job I have ever held.

Replied in thread

@ics

For me, it was during a lull in my workload at the #IBM Hursley lab in the UK when I worked my way through the O'Reilly #sed & #awk book (the one with the two lorises on the cover).

I'm guessing it was 1995 because my annual birdwatching summary at the start of the next year switched from a fixed column text document to formatting in #Postscript. My first big awk project was to process the underlying data to generate a PS document (something I also learned in the same downtime period).

Je viens d'arriver à écrire un script shell en une ligne de awk pour un projet Kirby bilingue où je dois formater des gros fichiers .txt exportés depuis un tableau de traduction sous forme de tableau PHP indentés correctement, et ça me rend heureux :

`awk -F$' \t*' '{gsub(/[ \t]+$/,"",$1); print " \""$1 "\" => \"" $2 "\","}' input.txt`

Alors que c’est pas fou hein en soi, mais c’est tellement satisfaisant quand ça marche !

I’m looking for a template based way of reformatting data from a text form / mask to some variables. The input is “beautiful”, the output should be just variable names and values. I want to un-format.
Does any #sysadmin have an idea how to approach this in 2024, with as little additional tools as possible?
I didn’t touch that territory for a long time so I’m not coming up with a good idea except intuitively using #awk but I feel that there should be better approaches by now.
#admin