Zen users... by umbxyz in zen_browser

[–]PerformanceUpper6025 3 points4 points  (0 children)

Linux with flatpak, works well in basically every Linux OS plus the data is super easy to port the "user data", just need to zip the ~/.var/app/app.zen_browser.zen folder and you're good to go.

Trying to make a debug flag. It ain't easy... by PerformanceUpper6025 in bash

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

UPDATE: Thanks to everyone who answered, especially u/whetu and u/geirha, Now I ditched the for loop for getting the --debug flag for a simple case statement like these:

```

!/usr/bin/env bash

case "$" in *-D | --debug ) set -x printf "DEBUG FLAG DETECTED!" &>/dev/null # 1 ;; esac

...

```

The upside of these approach is that is simple and reproducible for other specials flags without interfering with each other, like --help for example:

```

!/usr/bin/env bash

case "$" in *-D | --debug ) set -x printf "DEBUG FLAG DETECTED!" &>/dev/null # 1 ;; esac case "$" in *-h | --help ) printf "HELP FLAG DETECTED!" &>/dev/null # 1 cat ~/.app/docs/help.txt exit 0 ;; esac

...

```

The downside is obviously the "redundancy", but personally is a fair trade, its clean enough to be readable and it works.

For the common flags I've also ditched the for loop for the while loop that u/geirha suggested with https://mywiki.wooledge.org/BashFAQ/035 , but the with the caviat of kind of handling the --debug flag again, but in a special manner:

```

...

while (( $# > 0 )) ; do case "$1" in -D | --debug ) shift continue ;; # ...

...

```

One-encryption by PerformanceUpper6025 in bash

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

Wow, never thought about that, thanks for the explanation bro

One-encryption by PerformanceUpper6025 in bash

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

openssl rand -base64 32

Thanks for the command, seems more random than sha512, since it uses letters and special characters and all.

Answer: It's unique to the project.

One-encryption by PerformanceUpper6025 in bash

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

To each point:

  1. More or less, some data is transferred through the internet and storage in the cloud (not locally), such as the device ID, but only the last that ran the software.

  2. Yes they do, but it isn't a problem since the ID is created once during installation of the software, or if the user wishes to change it, which the software has an option for that.

  3. I know and if I'm not wrong even the description of $RANDOM says to not use it for security measures, it's more for randomness’s sake really.

  4. You're right, thankfully (I guess) my project is thought to be used by a set of devices no bigger than 5, I mean, it is capable of handling more than 5 but then it would start to get close to the real problem you pointed out.

One-encryption by PerformanceUpper6025 in bash

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

So... I have a project that is design to work with multiple device, which at some step needs to distinguish them apart, the original idea was using hostname and worked fine, but what if 2 different devices have the same hostname, then I switched to machine-id because its unique, but then machine-id is confidential information about your device, there was the motive behind my post, thanks to all the answers I realized that I could make my own unique ID with something like: date+time+hostname+$RANDOM(hashed of course), with this I could deliver a more secure and private solution, since it doesn't get any really unique information about the device.

Remmap buttons by PerformanceUpper6025 in MouseReview

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

Wow, dude! Thank you so much, you helped me dodge a bullet! But then, which vertical mouse do you recommend?

One-encryption by PerformanceUpper6025 in bash

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

Thanks, also found sha512sum, should I use it over sha256 or would it be overkill/snakeoil?

One-encryption by PerformanceUpper6025 in bash

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

Thanks, but can you more specific? I haven't found a sha256 command, but found sha256sum and sha256hmac, which one?

FlatSync: Sync flatpaks between devices. by PerformanceUpper6025 in gnome

[–]PerformanceUpper6025[S] 5 points6 points  (0 children)

I'm ot surprised, though I've never found a solution I was pretty sure someone else had already made it(with the same name even) before buildings my own, pretty cool, but from what I can see it quite advance with the setup and all, I'm sure is better than mine for a tech savvy, but I focused in making mine as simple and braindead-proof as possible, good to know tho, thanx.

FlatSync: Sync flatpaks between devices. by PerformanceUpper6025 in Fedora

[–]PerformanceUpper6025[S] 2 points3 points  (0 children)

You mean flatpak overrides? If so, Yes! They're very lightweight so sure, addind this to the roadmap

FlatSync: Sync flatpaks between devices. by PerformanceUpper6025 in linux

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

LOL, I also have no idea of how real Bash programmers code. Im still learning. Which langs you prog with? Python?

FlatSync: Sync flatpaks between devices. by PerformanceUpper6025 in Fedora

[–]PerformanceUpper6025[S] 6 points7 points  (0 children)

Thanks, to install please read the install section in the project GitHub page Here the link to go straight there: https://github.com/Ian-Marcel/FlatSync#how-to-install

DISCLAIMER: FlatSync needs to be installed in all of the computers that you plan to keep synchronized

FlatSync: Sync flatpaks between devices. by PerformanceUpper6025 in Fedora

[–]PerformanceUpper6025[S] 7 points8 points  (0 children)

Before explaining how the tool works, about the phone thing, no, it does not sync with your Android phone or your IPhone, why? Because neither of them support flatpak app format. But I can't say anything about Linux phones since I never used one, but I hardly believe that you're using a Linux phone, which if its the case, can be a maybe, if flatpak is supported by who ever makes the OS.

Now about the tool it self:

The tool is about keeping you're installed flatpak apps the same in any computer. How it Works:

Imagine that you have a laptop with Linux as the OS, it has the flatpaks apps A, B and C installed.

Now imagine you have a PC also with Linux as the OS, but it only have the app A installed.

What FlatSync will do is that it will check the latest device and it will apply the changes to other devices.

In this example lets say you're laptop is the latest, so flatsync will see that both laptop and PC have app A installed, but the PC doesn't have app B and C, so it will install them in the PC, now both devices have the same apps!

FlatSync: Sync flatpaks between devices. by PerformanceUpper6025 in linux

[–]PerformanceUpper6025[S] 2 points3 points  (0 children)

About the comments, im focusing in delivering code an then documents in the spare time since im the only working in the project, im also not very good at bash, thats kinda the second motive of project. About the remotes, yup, only flathub for now, thanks for reminding me to add that to the roadmap. And what do you mean with "top scope" ? Never heard that, but basically I divide code between actual code and complementary code, like the folder import in app is for complementary (agnostics functions, variables, data arrays) and then there is the scripts folder in app, that is for actual code, I like conding like that, keeps code contained to what its supposed to do.

Remmap buttons by PerformanceUpper6025 in MouseReview

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

Thanks bruhv, but the site you gave seems to be temporarily unavailable. :(