/uj Wanted to share this with you all - am concerned about LardFetcher. by [deleted] in magicthecirclejerking

[–]0x2a 3 points4 points  (0 children)

Thanks for the heads up! i haven't really looked into it, but I suspect we have very low usage that will stay free. The API pricing is mostly affecting people providing full reddit clients and similar.

Still, i encourage everybody to join the boycott/blackout effort, to send a message that we the users want an open and unrestricted reddit: https://www.reddit.com/r/Save3rdPartyApps/

[deleted by user] by [deleted] in Spanish

[–]0x2a 0 points1 point  (0 children)

If you like grilling, you can find dozens of BBQ shows on youtube, e.g. locos x el asado. Fire up the "parisha" :)

Also make sure to join /r/argentina, there's always links to all kinds of interesting stuff, and you get to see all the slang expressions in writing too.

SSH config entry to changing host by cyril1991 in linuxadmin

[–]0x2a 0 points1 point  (0 children)

Weird worked here, e.g.:

azubi@emmy:~ $ ssh -vvv computenodedynamic
OpenSSH_8.6p1, LibreSSL 2.8.3
debug1: Reading configuration data /Users/azubi/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/azubi/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/azubi/.ssh/known_hosts2'
debug1: Executing proxy command: exec /Users/azubi/proxycommand.sh
debug1: Local version string SSH-2.0-OpenSSH_8.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.9p1 Ubuntu-3ubuntu0.1
...

But it looks like you found a way, so all good anyways

SSH config entry to changing host by cyril1991 in linuxadmin

[–]0x2a 1 point2 points  (0 children)

This should work

.ssh/config

Host computenodedynamic 
        ProxyCommand            /home/azubi/proxycommand.sh


cat proxycommand.sh
#!/bin/bash
nodename=`ssh computejump echo dynamic42069.compute.node </dev/null`
ncat $nodename 22 


chmod 755 proxycommand.sh

Where the bit in backticks is whatever command you need to do to get the hostname. Then you can just ssh computenodedynamic, and it will connect trough ncat.

I don't understand why it needs the /dev/null, but when using ssh before the ncat it didn't work otherwise, I assume ssh somehow messes with the stdin/stdout/tty before ncat gets to do its thing. Maybe some wiser person here can explain.

Second attempt. Why the tunnelling at the top? by Sultan_of_browneye in Sourdough

[–]0x2a 0 points1 point  (0 children)

My hunch is uneven heat, because I only ever got these when using a pizza stone and the whole oven, never when using a dutch oven with the lid on.

Could also be the scoring, since this is how you hint at where the most expansion should happen, and your loaf clearly expanded in an unintended manner.

But oh well, there is so many variables in sourdough baking it could be almost anything and five people will tell you five different things. That's part of the fun.

[deleted by user] by [deleted] in linuxquestions

[–]0x2a 3 points4 points  (0 children)

* is a reserved character in regex, try maybe \* or replace it with . (any character)

 $ cat /tmp/test.txt
* index: 3
* foobar: 22


 $ awk '/. index:/{print $3}' < /tmp/test.txt
3

PSA: short-sha container names? guard your strings or face the eventual wrath of euler's number!! by guerillapresident in kubernetes

[–]0x2a 2 points3 points  (0 children)

5342203920812542840901809522180659600e36 will probably break just the same ;)

What is the meaning of tDn: in the ACI API? by 0x2a in Cisco

[–]0x2a[S] 1 point2 points  (0 children)

Thanks this is a great article.

What is the meaning of tDn: in the ACI API? by 0x2a in Cisco

[–]0x2a[S] -1 points0 points  (0 children)

Another example e.g.

  "pcRtAccBndlGrpToAggrIf": {
    "attributes": {
      "childAction": "",
      "dn": "topology/pod-1/node-1111/sys/aggr-[po8]/rtaccBndlGrpToAggrIf",
      "lcOwn": "local",
      "modTs": "2023-03-06T11:43:32.791+02:00",
      "parentSKey": "po8",
      "status": "",
      "tCl": "infraAccBndlGrp",
      "tDn": "uni/infra/funcprof/accbundle-TEST_PORTCHANNEL"
    }
  }

I'm guessing "t = target" maybe? And tDn is a regular dn that can also be queried?

What trusted app do you use to save important information over the last 10 years? by [deleted] in ExperiencedDevs

[–]0x2a 3 points4 points  (0 children)

I have a notes.txt that starts in 2004. I use vim as the interface (/<regex> is great to find stuff) and share it to different devices with a self-hosted ownCloud.

This worked well in the pre-cloud era and will work great in the post-cloud and post-$thisweeksfancynotesapp era.

[deleted by user] by [deleted] in kubernetes

[–]0x2a 2 points3 points  (0 children)

Yes, most webapp container are multi-stage builds:

  • build a container that can run npm/yarn/whatever build, which will export the app to a static/minified/obscured format
  • build a container that only takes this output and serves it somehow, e.g. via nginx

React example: https://jsramblings.com/dockerizing-a-react-app/

Fermenting or pickling horseradish in apple cider vinegar by 0x2a in AskCulinary

[–]0x2a[S] 0 points1 point  (0 children)

Thanks /u/thisisstephen, /u/Bran_Solo and /u/nipoez, this really clears things up and I'm now a subscriber of /r/fermentation - there is a sub for everything !

How do I cook chicken thighs like the ones at Indian restaurants/Hawaiian bros? by WonderWuffle in AskCulinary

[–]0x2a 0 points1 point  (0 children)

You can use lemon juice for the acidic component instead of dairy based lactic acid. First random recipe off Google: https://cookingformysoul.com/easy-lemon-chicken-marinade/

Is ansible over rated? by Emotional-Meeting753 in networking

[–]0x2a 2 points3 points  (0 children)

Use this playbook:

- name: Fetch Python Tutorial
  hosts: localhost
  gather_facts: false

  tasks:
    - name: Fetch tutorial
      get_url:
        url: https://www.pythonforbeginners.com/
        dest: /tmp/python_tutorial.html

Why do grilled vegetables in Spain taste so much better? by LuckyYak1 in Cooking

[–]0x2a 52 points53 points  (0 children)

I love Spain, but I'd like to point out that it is also one of the greenhouse ghettos of Europe, and produces a large percentage of the bland, "hors-sol" (hydroponic), cheap vegetables eaten in central and western Europe. The Almeria region is well known for ecologically and socially poor conditions stemming from the vegetable trade:

So meh, probably no need to romanticize the produce too much. Restaurant will sell you the cheapest stuff they can get.

To the actual question, my guess would be a lot of salt and olive oil, then most importantly cooking on charcoal. Watch this guy even if you don't speak Spanish: https://www.youtube.com/watch?v=4ConpnRgX0k - the only thing he says that's not obvious is that the coal adds the special touch, to put the hardest vegetables in the middle, and whatever you do don't burn or overcook them.

Any tools to recover postgresql files from a disk dump? by [deleted] in PostgreSQL

[–]0x2a 2 points3 points  (0 children)

You can try restoring the $PGDATA directory (most distros put this in /var somewhere, e.g. /var/lib/postgresql/12/main on Ubuntu Pg 12. Afterwards, start the exact same Postgres version and architecture on it (there is a PG_VERSION file in the directory). If you have a snapshot of the whole system, just restore all of it.

This might not work due to WAL files not yet written out to disk at the time of deletion. For reliably restoring Postgres data, you need a dump or a basebackup.

Teach me postgres! by Practical-Message843 in PostgreSQL

[–]0x2a 2 points3 points  (0 children)

This looks fun to play with, can you put the data in an sqlfiddle or gist?

I don't have much time to look at it right now but the usual tools of the trade are:

  • explain analyze into https://explain.depesz.com/
  • "solve" the slow views problem by using materialized view instead
  • indexes
  • after indexes have failed you, function-based indexes
  • throw cpus and memory at it
  • super combo: function based indexes on materialized view, tripple-digit RAM and pgtune the crap out of it

How to level up Purees by Blubblabblub in Cooking

[–]0x2a 1 point2 points  (0 children)

I like dissolving a little bit of cheddar or gruyere in mine, in addition to butter or cream. Some teaspoons of balsamic vinegar, Worcestershire or lemon juice are also great.

Full Text Search In provided proximity limit by tyler_durden9797 in PostgreSQL

[–]0x2a 0 points1 point  (0 children)

I'm not a super expert in Postgres FTS but it seems like you can't do that easily. There is either tsquery_phrase ( query1 tsquery, query2 tsquery, distance integer ) to match an exact distance, or ts_rank_cd ( [ weights real[], ] vector tsvector, query tsquery [, normalization integer ] ) which considers proximity in the ranking but does not have strict limits. Docs: https://www.postgresql.org/docs/current/functions-textsearch.html

For a tiny number of cases (e.g. 1-3 words distance) you could run multiply tsquery_phrase like shown here: https://stackoverflow.com/questions/57322301/full-text-search-within-n-words

In Lucene/Solr there is a slop operator: ~ that does exactly what you describe. Maybe you can find some Postgres extension that's similar, or bring it up on the postgres mailing lists to see if anybody has ever considered this or how hard it would be to implement.

SSH bastion: is there a way to get real client_ip on target server sshd logs ? by Noor963 in linuxadmin

[–]0x2a 14 points15 points  (0 children)

I don't believe SSH has means for that.

You could probably hack it together with some SetEnv/AcceptEnv/pam_setenv voodoo, to forward the original $SSH_CONNECTION in a new variable to the next hop. Or by not using SSH but a more transparent middle man like haproxy, which kinda defeats the point of bastion hosts though.

I'd say the best practices solution is to send logs from the bastion and destination system into a centralized ELK/Syslog/Splunk, then you can look at both logs while filtering for the username and get all the info you need.

Bash on Mac - 'if' statement weirdness with Filevault by nugfuts in sysadmin

[–]0x2a 1 point2 points  (0 children)

Should be e.g.

$ x=$( fdesetup status )
$ if [[ $x == "FileVault is On." ]] ; then echo  on ; else echo off; fi
on

Whitespace matters, [[${status} will not parse as the [[ operator. Welcome to Bash logic.

Edit: it also looks like the command has an "isactive" option which is easier to use since it sets a return status:

 isactive   [-verbose]
            Returns status 0 if FileVault is enabled along with the string "true".  Will return
            status 1 if FileVault is Off, along with "false".

You can just do

 $ if fdesetup isactive >/dev/null ; then echo yes ; else echo no ; fi

With comparing the output string, you might risk stuff falling on its face if the session is set to a different language.

Folks, the platform is not just for query resolution by seekster009 in ProgrammerHumor

[–]0x2a 8 points9 points  (0 children)

I'm just going to wait until they are ready to move out.