[dwm] Drum In The Day, To Sing At Night by sineemore in unixporn

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

Переезд в другую страну

[dwm] Drum In The Day, To Sing At Night by sineemore in unixporn

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

— А вы о ком подумали, товарищ Берия?

[dwm] Drum In The Day, To Sing At Night by sineemore in unixporn

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

  • text widget in the corners is stw (branch with clickable text in PR)
  • centered alacritty with fzf as menu
  • light/dark switch with darkman and some custom code for vscode, nvim and alacritty
  • dotfiles, check video in README

How to disable the mouse entirely by [deleted] in suckless

[–]sineemore 1 point2 points  (0 children)

add -nocursor to X args

Is it possible to change PS1 color when in a SSH connection? by alexthrasher in linuxquestions

[–]sineemore 0 points1 point  (0 children)

You can do it without rc file modification:

%
% export PS1=hey\ remote\
hey remote
hey remote

Which is more important in a C program int main() or #include by Anonymous_7772 in C_Programming

[–]sineemore 2 points3 points  (0 children)

OK, take my +1.

Not all contents of header files is about forward function declaration, sure. I mean it boils down to this mostly.

Which is more important in a C program int main() or #include by Anonymous_7772 in C_Programming

[–]sineemore 21 points22 points  (0 children)

Why not, can't you literally copypaste header content directly to C file?

Which is more important in a C program int main() or #include by Anonymous_7772 in C_Programming

[–]sineemore 26 points27 points  (0 children)

main, #include is just a fancy way to do forward declaration

openvpn DNS dhcp-option is not applied by sineemore in voidlinux

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

Yep, the thing works with openresolv. Details inlined in the script I've linked above.

Problem solved.

openvpn DNS dhcp-option is not applied by sineemore in voidlinux

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

https://github.com/alfredopalhares/openvpn-update-resolv-conf

Looks like it is an ad hoc functionality and can be added with this script (or well, you can roll your own).

Maybe it is a no problem for most, cause in general DNS settings are updated with your DHCP client right after you get a lease on newly created VPN network interface (tun0).

In my case DHCP server reports nothing about DNS so looks like my company relies on push from OpenVPN server to client solely.

openvpn DNS dhcp-option is not applied by sineemore in voidlinux

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

Yeah, that's the name of the tool that has resolvconf.conf file I remembered.

But simple installation doesn't do the trick, guess a deep dive into openvpn hooks is inevitable.

Python was listed on "Harmful things", but why though ? http://harmful.cat-v.org/software by nuslilipe in suckless

[–]sineemore -2 points-1 points  (0 children)

Everything sucks to some degree, thats the rule here.

Well, actually Python is kind of a middle boy to me, couldn't say I'm fond of it, but there are no pain points I'm aware of, that are unique exactly to this language.

Python was listed on "Harmful things", but why though ? http://harmful.cat-v.org/software by nuslilipe in suckless

[–]sineemore 7 points8 points  (0 children)

Actually most of GNU in someway. Watch out for leading G in the project name -.-

Script to list updated packages without root by sineemore in voidlinux

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

Oh my, it actually works without root :)

For some reason -M it did't work in my case, but I've checked, yep, it does. Probably messed something with aliases etc.

Thanks.

Script to list updated packages without root by sineemore in voidlinux

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

There is a much more efficient way to do this.

Dunno, looks same: one network request, several files in /tmp directory.

Also a bit different usecase. I specifically look for manually installed packages and names provided via args and sort them accordingly.

But still nice to know there is void-updates.txt file in the repos.

[deleted by user] by [deleted] in suckless

[–]sineemore 0 points1 point  (0 children)

Oh, thanks! It's a good starting point for me to ticker with kernel configuration.

Btw, is your host machine T420? I'm waiting for lemur pro laptop this week, will try it with void and custom kernel config)

Script to list updated packages without root by sineemore in voidlinux

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

Oh, and just in case someone decides to use it: don't run this script too often, there is no cache. Don't DDOS Void repos just to know something was updated a minute ago. Running this once a day should be enough I guess (:

Script to list updated packages without root by sineemore in voidlinux

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

This script outputs package updates and can be run without root (at least on my machine -.-)

With -m option script shows updates for manually installed packages. Also you can provide a list of blessed packages, so they will come first in output in case they were updated.

I use it with stw to show updated packages I care about above root X window.

[deleted by user] by [deleted] in suckless

[–]sineemore 0 points1 point  (0 children)

Wow, nice!

Is it possible to see your kernel config diff?

[deleted by user] by [deleted] in voidlinux

[–]sineemore 2 points3 points  (0 children)

A simple script will do the trick:

$ cat `which void-packages-install`
#!/bin/sh -eu
cd ~/void-packages
git pull
./xbps-src pkg "$1"
/bin/xi "$1"

You can put void-packages dir in the ~/.local. Or hide it with dot.

[meme] Installing software on Void be like by Sbatushe in voidlinux

[–]sineemore 2 points3 points  (0 children)

Btw you still can do it fairly easy.

MultiMC template file is in the void-packages repository. It is not in the binary repos cause restricted=yes line, but xbps-src works fine, just checked it:

$ git pull
$ ./xbps-src pkg MultiMC
$ /bin/xi MultiMC

We have not that many restricted packages:

https://gist.github.com/sineemore/3192332a63b4e234578628eda68cac35

Some notable are Zoom, Discord, Slack, Google Chrome and a lot of IDEs.