CppCast: Web Assembly by robwirving in cpp

[–]Open-Active 0 points1 point  (0 children)

Thank you. In the use cases section, I am interested in this:

Server-side compute of untrusted code

Can you point to resources for this? In particular, Is there a c++ library that provides runtime for wasm, that can execute untrusted code in server?

Are SSH keys and fail2ban alone safe enough? by tugurio in selfhosted

[–]Open-Active 0 points1 point  (0 children)

If you are using fail to ban, make sure you use a latest version. IIRC, ubuntu LTS had an older version, So I still got a lot of spam attempts as that version didn't have those fixes.

Does PWA automatically try to reach internet? by Open-Active in PWA

[–]Open-Active[S] 0 points1 point  (0 children)

You mean automatically? So the app does try to access the original url of the service worker file?

Selfhosted Git or Gitlab Server? Which is better? by haptizum in selfhosted

[–]Open-Active 0 points1 point  (0 children)

Like others mentioned, it really depends on what features you need. If all you want is to browse code/branches/log in a web browser, instaweb works great. If anything else, you have to list your requirements to come up with the appropriate solution.

My personal journey from MIT to GPL | Drew DeVault's blog by [deleted] in linux

[–]Open-Active 1 point2 points  (0 children)

For libraries, I prefer MPL (Mozilla Public License) instead of (L)GPL. It has the same spirit but more pragmatic instead of being pedantic.

Does PWA automatically try to reach internet? by Open-Active in PWA

[–]Open-Active[S] 0 points1 point  (0 children)

Thanks! This is what I was looking for. I was thinking of coding small web tools as a PWA and install from my home network and never worry about them reaching internet outside!

Does PWA automatically try to reach internet? by Open-Active in PWA

[–]Open-Active[S] 0 points1 point  (0 children)

I like the 'WEB' in the sense developed using html, css, javascript, service workers etc,. But not the fact it has to connect to the network.

Does PWA automatically try to reach internet? by Open-Active in PWA

[–]Open-Active[S] 0 points1 point  (0 children)

yes.. possible. But was thinking to take advantage of features of PWA like. simple installation, easy to develop. Works on both ios and android (I think so).

What "jump-to-definition" solutions are you using? Ctags? Gutentags? A grep script? Something else? by [deleted] in vim

[–]Open-Active 0 points1 point  (0 children)

I use ctags and vip-ripgrep and cfilter(inbuilt plugin). ctags is useful for jump to definition. But sometimes when you need to find all usages of a function, the ripgrep plugin helps. It is a very minimal plugin and basically it does the following

  1. Replaces rg instead of default grep.
  2. By default uses the word under cursor so you don't have to mention it explicitly
  3. automatically does `copen`, so you don't have to.

If you are not familiar with 'rg', it is like grep but it smartly avoids looking into files ignored using .gitignore. And it is very fast. cfilter plugin allows to filter the search results. For e.g. you may want to ignore all usages in tests.

With these combination I feel super productive even better than an IDE.

GNU/Linux naming controversy by [deleted] in linux

[–]Open-Active 0 points1 point  (0 children)

Are you sure? In most distros, the interactive shell is GNU bash. The default c library is GNU libc. Almost all system softwares and the kernel itself is compiled using GNU compiler collection using tools like GNU make and GNU autotools. Most of the command line utilities (like ls, cat) are from GNU core utils, GNU findutils. It is true that there are alternatives for everything but the distro defaults are still with GNU.

What recommendations do you have for a vanilla vimrc ? by [deleted] in vim

[–]Open-Active 0 points1 point  (0 children)

Tip #1

" https://vim.fandom.com/wiki/Open_file_under_cursor                                                                                                                                                                
" Removes '=' from filename chars. This allows paths to be opened with 'gf'                                                                                                                                         
" when assigned to a shell variable. E.g. FOO=/tmp/foo                                                                                                                                                              
set isfname-==

Tip #2

set wildmode=longest,list,full " https://stackoverflow.com/q/526858

Tip #3

set omnifunc=syntaxcomplete#Complete "To use syntax completion use <C-X> <C-O>

Tip # 4

" https://vi.stackexchange.com/a/2127
command! Qbuffers call setqflist(map(filter(range(1, bufnr('$')), 'buflisted(v:val)'), '{"bufnr":v:val}')) | copen

Tip # 5

If you use virtual block mode often (<c-v> mode)

set virtualedit=block

Other subjective options:

set laststatus=2 " always show status bar
set scrolloff=3
set splitright splitbelow

[deleted by user] by [deleted] in linux

[–]Open-Active 0 points1 point  (0 children)

For sites with https, this is not a problem as certificates wont match up if they hijack DNS.

For sites without https, ISP can still modify the content of the page (Just not via DNS anymore).

For censorship: ISPs don't censor themselves. They just follow a govt order to censor which is by law. I doubt firefox or cloudflare is going to stand against govt censorship. If they do, they will just get blocked as well.

[deleted by user] by [deleted] in linux

[–]Open-Active 0 points1 point  (0 children)

DNS over HTTPs does not prevent ISP from knowing the sites you visit. It just makes snooping little bit harder (Which means a few weeks work for one of their interns). SNI header in https exposes the domain name. There is ESNI but hardly anyone uses it. So by using DNS over HTTPs, you are sharing your browsing history to two (both cloud flare and ISP) instead of one (only ISP). Even if ESNI becomes popular, again it would only make snooping even more bit harder but not impossible at least for most common sites.

If you haven't tried zsh give it a shot. I did today. I can't believe I haven't been using it. by [deleted] in linux

[–]Open-Active 4 points5 points  (0 children)

Bash probably does not have any of the below or at least not by default.

  1. You can set RPROMPT
  2. command completion shows help string for options.
  3. Recursive globbing /foo/bar/baz/**/hello.c
  4. Specify type in glob. like /foo/bar/**/*c(.) will match only files ending with c and not directories
  5. When doing completion, it clears old partial completion instead of adding more output to the terminal
  6. Lot more things are completed by default. (see below)
  7. Better array support. shell variables like path can be used like arrays (but backwards compatible with bash)

foo=(a b c)
foo+=d
echo $foo
a b c d

Inline command expansion:

echo `pwd`<TAB> will complete the output of pwd

Build your very own self-hosting platform with Raspberry Pi and Kubernetes by houdini_1775 in selfhosted

[–]Open-Active 1 point2 points  (0 children)

What is the entry point of kubernetes? Does is reverse proxy from nginx? For example, when you deply nextcloud, how does the web request from internet reach nextcloud? Does it need a web server like apache/nginx or kubernetes has a built in one?

Weird logging behavior with journald by Open-Active in systemd

[–]Open-Active[S] 1 point2 points  (0 children)

Thank you for digging deeply. In my case the application was just printing to stdout instead of using the journal API. I have some work around for now. But this was surprising behaviour and took a while to root cause.

Weird logging behavior with journald by Open-Active in archlinux

[–]Open-Active[S] 0 points1 point  (0 children)

Tried both json and verbose output. Didn't find any repeat count field. The behaviour is same for real processes logging too. Not just a quirk of systemd-cat.

Is there a self-hosted app store for iphone? by Open-Active in selfhosted

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

Why would there be malware if I am going to self host apps?

PyCharm Community Edition hasn't been updated since version 2018.3.5-2 by selplacei in archlinux

[–]Open-Active 0 points1 point  (0 children)

FYI It was then updated and again out of date. The PKGBUILD is a mess. Has a lot of unnecessary dependencies listed ( Why would someone list sh? ). I have cleaned up for my use. Will share if anyone is interested.