Skip to content

u/cryzed-

In this archive from May 2016 to Apr 2020

12
posts
60
comments
7
media
682
score

Hey I just decided to release a set of tools I have been working on for a while, to make my usage of my VPN more comfortable. To quote from the README:

For vpn-whitelist:

Whitelist addresses (domains and IPs) to bypass an active VPN connection. This entails adding specific routes to the routing table and optionally creating a whitelist rule in UFW. These rules and routes can be easily removed later.

If you use and have enabled NetworkManager and NetworkManager-dispatcher systemd-units, you can also put addresses in /etc/vpn-whitelist.conf to be automatically whitelisted when a VPN tunnel goes up and remove them when it goes down.

For vpn-whitelist-dns-proxy

This is a DNS proxy that monitors requested domains, automatically whitelists them using vpn-whitelist if any of the provided regular expressions match and then forwards the reply. This is obviously not possible with just vpn-whitelist because there's no easy way to find all domains and sub-domains that match a given regular expression -- so we simply monitor which domains your system is trying to resolve, and match on those.

Personally I use these to access domains/addresses that blocked my VPN's endpoints' IPs or use the DNS proxy to speed up my connection to Twitch CDNs. There's a PKGBUILD in the repo if you want to try it. I haven't planned to put it up on the AUR so far, this might change if there's big interest or someone else wants to do so.

1 points

I don't play many games actually, but I tested this with Minecraft and it works perfectly. If I use the -b -m 0 options, the whole room goes nearly completely dark once I enter a cave and lights up again when I place a torch -- quite neat! I assume this probably works for all games then.

I don't think video cards should have any effect on the script, since Qt most likely directly talks to X11 and (assumingly) requests what the screen looks like. CPU overhead depends: I have a really, really old i7-930 and if I set -i 0 (no sleep between calculations) the maximum I can get it to use is around 10%. With the default option of 0.1 it's a much more bearable 3-5% (keep in mind that this is still updating the lights around 10 times per second!).

Thanks for all the flowers :)!

3 points

Hey, I made this recently. If you have a Philips Hue Bridge (and lights compatible with it), this will allow you to create "ambient lighting" based on the contents of your desktop. Basically, if you have mostly red colors on your screen, the lights will light up in that color. Amby also supports adjusting brightness based on the perceived luminance of the calculated ambient color.

Amby is inspired by ScreenBloom, which doesn't support Linux, so I came up with my own solution. Ideally the result should look similar to this (screenshot taken from the ScreenBloom project -- my room is too scrubby for a video), depending on how you set it up.

5 points

I'm always able to tell when it's a post by you by just looking at the screenshot: a minimalistic desktop with a high-contrast and pleasant color-theme, along with an interesting Python project opened in some way.

Thanks for posting, I always enjoy these, even though my own setup is very vanilla.

7 points

This is really cool, thanks for finally sharing!

But really I was worried that someone would use it to copy my desktop setup, or even worse, make something cooler than mine.

This is kind of what I had suspected, but didn't want to mention haha. Thanks for finally coming around :)! That is really nice Python code; then again so is peewee, which I also love -- I shouldn't have expected anything else.

3 points

Comment out the following line in "/etc/pulse/default.pa":

load-module module-role-cork

This is a "feature" enabled by default in the PulseAudio configuration: "Cork music/video streams when a phone stream is active". Since TeamSpeak uses the phone stream for its PulseAudio output the module activates. Don't forget to switch back to PulseAudio in Teamspeak after changing it. A restart might be needed.

3 points

I use the PyCharm Community edition from the AUR, and my fonts in it look fine after having edited the /etc/profile.d/jre.sh according to the guide. Are you sure that you restarted after having set these options (and are actually using the OpenJDK/JRE packages?). Maybe I'm just used to it already -- if you name the font you are using in the screenshot (and size settings), I could create a screenshot for you showing you how it looks on my system.

2 points

What? You download the PKGBUILD with wget, inspect it by hand, and then decide to run makepkg on it -- if you decide to blindly trust the contents that's on you, not makepkg.

Yaourt however gives you the illusion of being able to inspect a PKGBUILD beforehand, what you don't realize is, that at that point the PKGBUILD was already sourced. I'm confused why you were upvoted.

16 points

You might be right, symlinking them instead allows other configurations with a higher prefix to work, including unhint instructions etc. This is why I said that I'm still figuring stuff out myself, haha.

EDIT: I changed the guide to reflect this, more information is in the changelog at the top, thank you.

1 points

Thanks for the flowers! But I'm really not the only one responsible for this: special thanks should go to DoctorJellyface, tylerswagar (unfortunately I don't know their reddit accounts) and all the commenters in the gist.

That being said: I'm open to all kinds of suggestions, especially regarding "/etc/fonts/local.conf". I am fully aware that the configuration in there is currently probably much less thorough than it used to be with Infinality, but unfortunately I'm too much of a hack with fontconfig to actually know or recognize if something is missing or working differently now than it used to with Infinality.

The only difference I currently see, is that the current configuration provides exactly one alternative replacement font for each substitution entry for example -- whereas Infinality did something more complex with multiple fallback fonts. However, I can't imagine why this is currently (or was) needed back then, since the fonts listed here should always be installed along the fontconfig configuration.

Another thing I'm a bit confused about is that in theory it should be possible to remove some settings made in the "/etc/fonts/local.conf" file and instead symlink some already available presets from "/etc/fonts/conf.avail" to the directory -- however when doing so the fonts clearly seem to render differently, and I'm confused as to why. It seems to be a priority issue in the order of evaluation for the various configuration files, or the fact that in the "local.conf" currently each of the rendering instructions is set explicitly, where as the presets take a more conservative approach (but then again, if that's the case where are those being overriden)?

Well these are just some of my thoughts currently, I'm trying my best to improve it as I get new information.

16 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.