[-] Rick_C137@programming.dev 3 points 3 months ago* (last edited 3 months ago)

Thank you all for yours input

What finally did work

if [[ -z VARIABLE1 && -z VARIABLE2 ]]; then
    echo "OK"
fi

If only Linux was using Python syntax that would be so much more intuitive...

[-] Rick_C137@programming.dev 2 points 3 months ago

not working, both variables do not exist and the echo "OK" do not trigger.

22
submitted 3 months ago* (last edited 3 months ago) by Rick_C137@programming.dev to c/linux@lemmy.ml

Hi,

I trying to test two condition together (AND) under bash but it's not working...

The goal is ti have True when two variables are either not set or empty (empty string)

I've tried

if [[ -n VARIABLE1 && -n VARIABLE2 ]]; then
    echo "OK"
fi

Here I get the "OK" no matter what .

Thanks.

11
IP range of GAFAM ? (programming.dev)

cross-posted from: https://programming.dev/post/37077607

Hi,

I would like to get all the range of IP of the GAFAM and few more..

Preferred

  • trough the Terminal ( Linux ) or Python.
  • no sign-up of any form.
  • obviously FLOSS

Thanks.

3
IP range of GAFAM ? (programming.dev)
submitted 3 months ago* (last edited 3 months ago) by Rick_C137@programming.dev to c/linux@lemmy.ml

Hi,

I would like to get all the range of IP of the GAFAM and few more..

Preferred

  • trough the Terminal ( Linux ) or/and Python 🐍
  • no sign-up of any form.
  • obviously FLOSS

Thanks.

1
Cheap SBC x86-64 ? (programming.dev)

cross-posted from: https://programming.dev/post/36014616

Hi,

is it exist cheap ~$60 SBC in X86-64 ??

No thank you for Rapsberry PI
I used Raspberry PI SBC for a while now.

But it's really hard to found a Linux distribution that support

  • RPI (arm64)
  • sysVinit 💖
  • And that I like

Please don't bring systemD in this discussion thanks.

[^1]:

7
Cheap SBC x86-64 ? (programming.dev)
submitted 4 months ago* (last edited 4 months ago) by Rick_C137@programming.dev to c/linux@lemmy.ml

Hi,

is it exist cheap ~$60 SBC in X86-64 ??

No thank you for Rapsberry PI
I used Raspberry PI SBC for a while now.

But it's really hard to found a Linux distribution that support

  • RPI (arm64)
  • sysVinit 💖
  • And that I like

Please don't bring systemD in this discussion thanks.


( first row is for reference )

brand model Price € GPIO pair CPU Lan Ports idle watt Surface area cm² Storage ports WiFi / BT url
Raspberry Pi Pi 5 B (4GB) 52 12 Quad-core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz. 1x 1GbE 3 47 SD
radxa[^NEU] X4 90 12 N100 ▼ 1x 2.5GbE 18W ? 47.6 M.2[^boot], eMMC[^boot] W6, BT5.2
HardKernel ? ODROID H4 109 ?? N97 ▲ 1x 2.5GbE N.C -> 60W ? 144 eMMC, M.2*, SATA* https://www.hardkernel.com/shop/odroid-h4/

last update: 2025-08-31

[^NEU]: Seem unavailable on the europe market..

[^boot]: Might not be bootable ! TBC

[-] Rick_C137@programming.dev 2 points 4 months ago

.md is correct, it's a test.

[-] Rick_C137@programming.dev 2 points 4 months ago* (last edited 4 months ago)

~~Never mind, I understood my mistake... This nginx built didn't come with ngx_http_rewrite_module so return will not works.~~

11
submitted 4 months ago* (last edited 4 months ago) by Rick_C137@programming.dev to c/webdev@programming.dev

Hi,

I have this rule in my nginx config file

	location ~* \/(fileA.txt|fileB.txt)$ {
		return 404 'nothing here';
	}

but it's not working

but

	location /fileA.txt {
		return 404 'nothing here';
	}

~~is working....~~

Any idea what's wrong ?

Thanks.

9
submitted 5 months ago* (last edited 5 months ago) by Rick_C137@programming.dev to c/webdev@programming.dev

cross-posted from: https://programming.dev/post/34280775

Hi,

I've recently installed FreeNginx[^FN]

I would like to use the geoip_module to have some "Stats" about my visitors..\

on the documentation we can read:

... using the precompiled MaxMind databases ...

.
.
.

But on the MaxMind website I'm facing a wall:

Sorry, we were not able to create your account. Please ensure that you are using an email that is not disposable, and that you are not connecting via a proxy or VPN.

So not working... And anyway I'm not a fan of using something compiled and more over not open source...

So do you know another solution to get GeoIP data with FreeNginx ?

Thanks.

[^FN]: https://freenginx.org/
https://programming.dev/post/12566209?sort=Old

2
submitted 5 months ago* (last edited 5 months ago) by Rick_C137@programming.dev to c/selfhosted@lemmy.world

cross-posted from: https://programming.dev/post/34280775

Hi,

I've recently installed FreeNginx[^FN]

I would like to use the geoip_module to have some "Stats" about my visitors..\

on the documentation we can read:

... using the precompiled MaxMind databases ...

.
.
.

But on the MaxMind website I'm facing a wall:

Sorry, we were not able to create your account. Please ensure that you are using an email that is not disposable, and that you are not connecting via a proxy or VPN.

So not working... And anyway I'm not a fan of using something compiled and more over not open source...

So do you know another solution to get GeoIP data with FreeNginx ?

Thanks.

[^FN]: https://freenginx.org/
https://programming.dev/post/12566209?sort=Old

3
submitted 5 months ago* (last edited 5 months ago) by Rick_C137@programming.dev to c/linux@lemmy.ml

Hi,

I've recently installed FreeNginx[^FN]

I would like to use the geoip_module to have some "Stats" about my visitors..\

on the documentation we can read:

... using the precompiled MaxMind databases ...

.
.
.

But on the MaxMind website I'm facing a wall:

Sorry, we were not able to create your account. Please ensure that you are using an email that is not disposable, and that you are not connecting via a proxy or VPN.

So not working... And anyway I'm not a fan of using something compiled and more over not open source...

So do you know another solution to get GeoIP data with FreeNginx ?

Thanks.

[^FN]: https://freenginx.org/
https://programming.dev/post/12566209?sort=Old

1

Hi Raspberry Pi Community,

I would like to use radio remote's control to trigger an events on my Raspberry pi.

I guess I'll go with 433Mhz as I believe they are the most common available ?

So I will need a 433Mhz RX/TX Module to connect on the GPIO, so far I get it...

But how properly secure the communication between those remotes and the RPI to avoid any anyone to sniff the transmitting and replay it. In other words spoof it.

Wubba Lubba dub-dub...

2
submitted 1 year ago* (last edited 1 year ago) by Rick_C137@programming.dev to c/webdev@programming.dev

Hi,

I'm using (like a lot of us, I presume ) Mozilla MDN

But I just discover that they display advertise :'(

Damn that think (MDN doc) is run by committer (I did post few thing on it) and they display advertise ! f**king hell ! Can I have my cut 💵 then ?

beside jokes, do you know good (decentralized ?) alternative to mdn docs ?
Thanks.

11
submitted 1 year ago* (last edited 1 year ago) by Rick_C137@programming.dev to c/python@programming.dev

Hi,

I've discover haml and pug [^1] ( both web template engine )

It's totally Pytonic ! ( and make even more sense to use it with python rather than JS 🤮 )

I've look, if it exist for Python, but so far, I've found only

The first, only convert pug into another template :/
The second, didn't pass the alpha version.
The third, require dependence, not maintained etc.. \

So I didn't found a Python package that could do haml/pug to html directly, without too much dependence...

For example:

From

html
  head title Example for Python discuss
  body
    h1 Hello world
    p This is a paragraph.

To

<html>
  <head>
    <title>Example for Python discuss</title>
  </head>
  <body>
    <h1>Hello world</h1>
    <p>This is a paragraph.</p>
  </body>
</html>

Do you know if such thing exist ?
If not, I will build my own (FLOSS). ( I'm open to any advice to do so :) )

Thanks

[^1]:Pug is a template engine heavily influenced by Haml and implemented with JavaScript 🤮 for Node.js

[-] Rick_C137@programming.dev 2 points 1 year ago* (last edited 1 year ago)

instead of using a library I can directly use subprocess with gnupg but in both case it seem gnupg require to import the public key to the keyring !? I don't want that.

[-] Rick_C137@programming.dev 2 points 1 year ago
setfacl -m m:r aFile
#re set the mask

solve the problem, but the question is: why the F**** this is happening !?

[-] Rick_C137@programming.dev 3 points 2 years ago* (last edited 2 years ago)

Thank you all for your quick reactions !!

To summarize if I want to use the PDF built-in signing I will need to convert my OpenPGP into a X.509 cert otherwise I can simply use the OpenPGP file signing

I want to stick to the UNIX Philosophy especially:

Write programs that do one thing and do it well.

So I will use the OpenPGP signing tool :)

Thanks !

[-] Rick_C137@programming.dev 2 points 2 years ago

Indeed, but in AOSP there is no GMS and that already better !

[-] Rick_C137@programming.dev 3 points 2 years ago

Has I found nothing, I've write a piece of code in Python 🐍 ! and compile it for Windows..

[-] Rick_C137@programming.dev 3 points 2 years ago

Thank you @Vilian@lemmy.ca Seem great, I'll keep it for later :)

But not for what I need now, as

Mutt is a small but very powerful text-based mail client for Unix operating systems

and it's a "full" client, I need just the SMTP functionality.

view more: next ›

Rick_C137

joined 2 years ago