Uks2 has quit [Read error: Connection reset by peer]
Uks2 has joined #kisslinux
kyxor has joined #kisslinux
<kyxor>
Well I hate those guys who say "you may not run this program as root", like dude I believe in security by good design, not security by obscurity. If one is able to hack into a regular user, it is equally as bad as hacking root, it does not save my ass in any way, cause if he hacked the user - then hacking your way in further is just is level 2 defence. Level 1 defence should not be hackable by design.
<kyxor>
user privilages in unix is the worst nightmare one may ever experience, probably a big reason for not being user friendly because of dumb complications put in by incompetent programmers not completent in their code design
<kyxor>
*** rant end ***
<acheam>
yeah thats annoying
<acheam>
although your scenario only applies to single user systems
<kyxor>
yep
<acheam>
the main thing is just that its annoying. Put that info in the usage dialog and manpage, but don't stop me from running as root
<acheam>
if you really feel compelled, then write it to stderr
<acheam>
kyxor: you know the creator of camille.sh is a kiss user, right?
<acheam>
not that that makes the website not laggy
<acheam>
just cool
<acheam>
GalaxyNova: text user interface
<acheam>
a user interfaced created with text
<GalaxyNova>
yes ik
<kyxor>
acheam: yep I am collecting all personal sites, for bookkeeping on my site, so most links I can find on github from kiss users is where I look first
<GalaxyNova>
but can you consider something like vim a text user interface
<kyxor>
it is
<acheam>
kyxor: nice
<acheam>
acheam/armaanb/armaanb.net is me
<kyxor>
yep, already got your site, acheam
<acheam>
im honored
<GalaxyNova>
love
<GalaxyNova>
the bumper stickers
<acheam>
kyryl.tk refuses to connect :(
<kyxor>
GalaxyNova: I don't hate tuis, btw. It's just I will hate tuis that are badly designed
<acheam>
GalaxyNova: heh thanks
<acheam>
GalaxyNova: instead of a curses installer, a shell installer works well
<kyxor>
and sometimes they are, espicially if they block your terminal text selection, or have no means to redraw screen
<GalaxyNova>
perhaps
<acheam>
i do like the openbsd installer
<acheam>
which is just a shell script with some prompts
<phoebos>
^
<kyxor>
basically tuis are substantially more complex ususally than just relular cli tools with flags
<phoebos>
the mailx(1) interface is nice too
<GalaxyNova>
I'd like to see a text editor as a non TUI
<phoebos>
ed
<kyxor>
ed
<kyxor>
ex
<GalaxyNova>
ok
<GalaxyNova>
but is that really a text editor
<acheam>
yes?
<phoebos>
man -f ed
<noocsharp>
ed is the standard text editor
<acheam>
what makes it not a text editor
<phoebos>
ed - text editor
<acheam>
lol
<kyxor>
well if there was a measure like "is it turing complete?" but for text editor I would say yes.
<phoebos>
"does it edit text?"
<GalaxyNova>
just barely though
<GalaxyNova>
it's not much better than echo "text" >> file
<acheam>
you haven't used it then
<acheam>
its rather powerful
<GalaxyNova>
perhaps that's also true xD
<acheam>
and ex is pretty much just headless vi
<acheam>
on obsd, it is exactly that
<phoebos>
it's more like an interactive sed session
<acheam>
on other OSs, its a bit more complex
<acheam>
sed is derived from ed
<phoebos>
aye
<kyxor>
also my neatvi has ex mode too, I don't normally have a need for it, but ocasionaly I use it to test things out. Probably has some ed commands missing though.
<GalaxyNova>
`i only know basic write and read commands for ed
<akspecs>
GalaxyNova: ed is the beginning
<kyxor>
acheam: did you try my editor on BSD, I just wanna know if it builds with no errors or not
<acheam>
no but i'll build it for you
<acheam>
oh boy you're not going to like this
<kyxor>
Thanks, cause for me to test it id have to configure vm support for my kernel, then figure out how to get bsd working, lots of stuff
<acheam>
phoebos: noooo syntax highlighting will make you a weak programmer, and the devil will sell your soul to richard m. stallman
<phoebos>
oh god no
<phoebos>
:P
<phoebos>
i don't use colors when writing software, only reading
<kyxor>
does it though? It help me. The only problem I have with syntax hl in %99 of text editors is how it's implemented sucks
<kyxor>
neatvi does it all under 700 lines of C
<phoebos>
neatvi's way is really nice tbf
<kyxor>
also read the readme, there are some cool stuff like if you do :se hww
<kyxor>
that thing is a must have if you are reading source code, cause you can immediately see varibles and how they used in function of example
<phoebos>
oh that's cool it updates when you move the cursor
<dilyn>
so I *did* complain about ccmake a few weeks back, but ngl it's pretty fucking neat
<dilyn>
for instance, after about twenty seconds I got llvm to build statically
<dilyn>
unfortunately it does not like netbsd-curses...
<acheam>
hmm
<acheam>
i should look into it more
<testuser[m]>
What's ccmake
<testuser[m]>
Cmake in C ? Lol
<testuser[m]>
Oh
<dilyn>
it's the curses viewer for cmake
<testuser[m]>
Why does a build system have a ui
<dilyn>
so you can flip options in a nice little TUI instead of reading CMakeLists.txt for options or trying to remember what the command is to print all the options
<dilyn>
have you every tried to configure something as big as LLVM? lmao
<dilyn>
it can be helpful
<dilyn>
oh look dylan fixed curl not building statically XD
<kyxor>
wow din't know rofl0r was working on sabotage, cool stuff
<acheam>
dilyn: lol
<acheam>
kyxor: they used to hang out in here too
<dilyn>
it's theirs!
<acheam>
?
<dilyn>
didn't rofl0r make sabotage?
<dilyn>
butch is their baby
GalaxyNova has quit [Ping timeout: 252 seconds]
<acheam>
No
illiliti has quit [Quit: leaving]
<testuser[m]>
what
<acheam>
It was made by leah2 originally
<dilyn>
f
<dilyn>
sry leah2
<dilyn>
didn't mean to rob you of your glory
<kyxor>
phoebos: I pushed bsd build fix on master, check if everything works, thanks ;)
<testuser[m]>
the changes make your makefile non portable outside gmak
<testuser[m]>
gmake
<kyxor>
what isn't portable ?
<testuser[m]>
ifeq
<kyxor>
ok that's suprising
<testuser[m]>
Yeah it's too limited
<kyxor>
so how do I portably do if statement ?
<kyxor>
or I can't
<testuser[m]>
not sure, need to ask illiliti
<testuser[m]>
I guess you would use shell syntax
mps has quit [Ping timeout: 268 seconds]
<kyxor>
damn, I have to write extra targets to get portable conditions
<dilyn>
portable makefiles are bae :v
<acheam>
Damn your bae ugly af
<testuser[m]>
+= isn't portable either right
<kyxor>
Yeah I sought so
<kyxor>
I should stop looking at that GNU manual page
<testuser[m]>
What good build system even exists then
<kyxor>
shell script
<kyxor>
you can even do parallel compile, using the &
<testuser[m]>
ninja seems good but the only generators for it are cmake and poogle gn both are meh
<kyxor>
hm you know what, maybe I should just write posix shell script for build and call it a day, remove make. But I won't have the based on date/modification time compile
<kyxor>
unless I can somehow emmitate that in script, using date, then checking and filter what needs to compile
<testuser[m]>
Implement some make-like functionality in sh
<testuser[m]>
Call it "shake"
<kyxor>
I'll give it a try
<dilyn>
nss generates headers for some god forsaken reason http://ix.io/3wIk
<travankor>
macros are handled by the preprocessor so that's why it's not detected?
<testuser[m]>
I'm saying your code on that line would be equivalent to MAX(0,1) atleast so why not remove the macro
<testuser[m]>
Clang warns since it doesn't know that lbuf_len() will always be >= 0
<kyxor>
yeah not a bad idea
<kyxor>
cause it doesn't really do anything there anyway
<kyxor>
actually, no it does
<kyxor>
that macro is necessary for some reason
<kyxor>
cause if I just leave lbuf_len()+1 vi compiled with gcc thows arithmetic exception on empty file
<testuser[m]>
It's hiding a bug due to double evaluation ?
<kyxor>
nope
<testuser[m]>
Weird
<kyxor>
OHH, it's because of order of operations
<testuser[m]>
Lol
<kyxor>
division always comes first
<kyxor>
so that +1 is not evaluated before division
<kyxor>
yep, just gotta add parethesis
<acheam>
Oof
<acheam>
We need mid to come teach us math
<testuser[m]>
I always use explicit brackets even if the result would be the same without em
<kyxor>
I guess that max macro acted like parenthesis there, because if statement will happen first
<kyxor>
so technically it was still non bugged code, i pushed the change though
<kyxor>
and 1 sec forgot to remove debug statement, dammin
<kyxor>
time to revert it (eh )
<testuser[m]>
Just hard reset and force push if the commit is like 5 seconds old
<kyxor>
yeah i do that sometimes
<testuser[m]>
Do you use sanitizers?
<testuser[m]>
Or valgrind
<kyxor>
I do use valgrind
<kyxor>
push done
<kyxor>
testuser[m]: btw do you use valgrind? it does not work correctly on latest musl btw
<kyxor>
well unless you patch it like I did
<testuser[m]>
no i just use clang sanitizers since im on glibc, they dont work on musl yet i think
<travankor>
i think sanitizers work on musl now
<travankor>
clang 12
<testuser[m]>
nice
<jedavies_>
travankor: Started that it since I had trouble building GCC with the clang toolchain. Sorted that now so will bring that into glasnost and remove xkiss.
<jedavies_>
Needed gcc since clang can't build arm firmware / uboot.
<travankor>
you patched uboot for clang?
<travankor>
or sorted compiling gcc with clang?
<jedavies_>
Sorted building gcc with clang. Wanted to avoid having GCC but building the low-level stuff with clang is not easy right now.
<acheam>
noocsharp: if your system has busybox, i would just use an ssl proxy
<acheam>
oops sorry meant to tag kyxor
<acheam>
was thinking of you beacuse of your ssl tunnel software :)
<acheam>
but yeah, I second the openbsd httpd reccomendation
<acheam>
its the perfect balance of minimalism and features IMO
<testuser[m]>
dilyn: This is the issue with chromium i asked you few weeks back, is it the same ? https://0x0.st/-tKr.jpg
<testuser[m]>
it doesn't seem to be a chromium issue in specific, since it fixes itself whenever something prompts a redraw, eg typing `grimshot save area` from ssh, or just launching bemenu
<testuser[m]>
dont mind the potato
<akira01>
testuser[m]: had some solution?
<testuser[m]>
oh sorry i didnt notice you sent the link
<testuser[m]>
wait
<testuser[m]>
oh ofcourse
<testuser[m]>
its nodejs crapware so wont be a binary
<testuser[m]>
binary binary
<testuser[m]>
`ulimit -c unlimited`
<testuser[m]>
launch it
<testuser[m]>
it should print a dump
<dilyn>
konimex: yeah hopefully the llvm devs finish up their support for c+20
<akira01>
I do on terminal and show nothing
<dilyn>
testuser: mine is just black boxes that generate over the tab/status bar/bookmarks bar area
<testuser[m]>
idk akira01 just get a better torrent downloader
<testuser[m]>
aria2c
<akira01>
i mean
<akira01>
i even used webtorrent to download
<akira01>
Just to stream
<akira01>
can aria2c do that?
<testuser[m]>
dont think so
<akira01>
yeah so i pretty fucked up
<testuser[m]>
what's the contents of /usr/bin/webtorrent-cli
<testuser[m]>
you can launch it via node directly
<testuser[m]>
and get the backtrace
<akira01>
i can launch it in terminal
<akira01>
it launch okay
<akira01>
but when i do some
<akira01>
webtorrent 'magnet link' --mpv
<testuser[m]>
oh just do `gdb /usr/bin/node` and `run /usr/bin/webtorrent-cli`
<akira01>
node?
<testuser[m]>
its a nodejs program bruh
<akira01>
okay
<testuser[m]>
oh you dont need to do it
<testuser[m]>
i forgot
<testuser[m]>
just check in dmesg
<testuser[m]>
segfault at ffffaddress bla bla in libc.so.6
<testuser[m]>
what does it say
<akira01>
cant do
<testuser[m]>
what cant do
<akira01>
dmesg
<testuser[m]>
why cant do dmesg
<akira01>
it recognizes differents commanda
<testuser[m]>
wat
<akira01>
i mean
<akira01>
webtorrent itself run okay
<testuser[m]>
I know
<akira01>
the problem is when i run webtorrent "magnet" --mpv
<testuser[m]>
yes
<testuser[m]>
have you got the segfault atleast once on your current boot?
<omanom>
@mps got off my lazy butt and installed from that archive, can confirm it builds and works on my laptop at least :)
jess has joined #kisslinux
<acheam>
hi jess
<jess>
good morning
micro_O has joined #kisslinux
<micro_O>
really appreciate all the package documentation / readme stuff
<micro_O>
I am slightly meh on the 'draw an ascii box around terminal stuff' as it sometimes includes commands to run, sometimes includes text to ignore, etc
<micro_O>
but 100x to having local-first (in-repo) documentation, and making that documentation accessible via http, or filesystem/cli
mahmutov has joined #kisslinux
<mps>
omanom: didn't understood, you installed eiwd on kiss or you built it from the source directly?
<omanom>
i already had eiwd installed, i downloaded the iw .tar you linked earlier and built iw from that and confirmed it allowed me to scan for wireless networks
<mps>
omanom: I didn't linked this iw.tar, illiliti did it
<omanom>
oof sorry, my fault
<omanom>
thank you illiliti
<mps>
np
akira01 has joined #kisslinux
<acheam>
omfg I swear this headline isn't sarcasm
<acheam>
"They’ve finally done it! Kali on WSL! Windows just keeps getting better."
<akira01>
testuser[m]:
<acheam>
this is what I get for deciding to browse medium
<akira01>
i get the logs
<acheam>
then share them?
<testuser[m]>
Send
<akira01>
yeap
<akira01>
just sec
<testuser[m]>
acheam: lol how is it windows getting better if you're just gonna run loonix on them
<testuser[m]>
it
<acheam>
tbf that headline sounds like something I would have said a few years ago
<akira01>
Gosh
<akira01>
some pastebin option to a 35K lines file?
<acheam>
envs.sh
<acheam>
ix.io
<acheam>
termbin.com
<acheam>
0x0.s
<acheam>
0x0.st
<akira01>
3 of these not give me the link
<akira01>
Or get segmentation fault
<akira01>
yep now is all the links
<acheam>
well how big is the file
<acheam>
in *bytes, not lines
<acheam>
cant hurt to gzip it
<akira01>
2.5M
<acheam>
shouldnt be an issue then...
<akira01>
yeah
<akira01>
strange
<akira01>
maybe is the number of lines
<omanom>
how are you trying to post the files?
<omanom>
what's the command that you're using? the sites all give examples of how to use them
<akira01>
the command how is in the website
<akira01>
just cp paste
<akira01>
all sites
<akira01>
works with other archives
<akira01>
not this
<akira01>
and i gzip now
<akira01>
how can i send?
<dilyn>
0x0.st supports uploading arbitrary files
<akira01>
okay
<acheam>
if curl is too difficult for you, envs.sh has an upload button
<kyxor>
Hi, I finally figured out how to make the stupid ssl tunnel work, god damn it and my mistake was trying to route it though the localhost, but for some reason that crap does not work
<micro_O>
yeah it will take a bit of work since everything is inline
<Guest3>
Need to redirect standard output to file which needs root permission. Tried sudo printf '%s\n' "text" > file buit didn't work. I know I can just run script as root but a lot depends on the user's environment so wondering if there's an easier way???
<Guest3>
Err and tried doas too
<micro_O>
Guest3 tee is your friend
<micro_O>
it would be something like printf '%s\n' "text" | sudo tee -a file
<micro_O>
if you want it to print to stdout as well
<micro_O>
or `echo text | sudo tee file`
<Guest3>
ok
<Guest3>
micro_O do you use sudo or doas
<Guest3>
as a personal question, just wondering
<micro_O>
Guest3 been using ssu
<micro_O>
which had a better name back in the day but i cannot remember now
<micro_O>
at least its easier to type now
<micro_O>
i think it was sls before
<Guest3>
Wondering if the tee command could be invoked without needing pass. Just for that specific file
<micro_O>
with sudo, definitely
<micro_O>
with doas, maybe
<micro_O>
with ssu, definitely not
<Guest3>
I tried doas but didn't get it working. The syntax is permit nopass USER cmd tee args [args]
<Guest3>
The file from the script is shell variable so I am not sure...
<micro_O>
if you need a user to be able to create a file in a particular directory, maybe its worth making that directory owned by a group that user is part of?
<micro_O>
Guest3 have you tried making the tee command in doas.conf the full path to tee? something like /usr/bin/tee or whatever
<phoebos>
ssu doesn't need a pass anyway :p
<Guest3>
Ahh yeah in doas.conf I was putting the full path, but I guess it doesn't like the shell variable in the script so in the actual script I put the full path
<Guest3>
Err the full path to the file not the command
<micro_O>
sometimes i do a search like this to see what other folks do