I hereby claim:
- I am kstepanovdev on github.
- I am v0570k (https://keybase.io/v0570k) on keybase.
- I have a public key ASCaRIc01l_-_7Q7mN768YuzDNUpuY4_KIXe9QfAIW7gPAo
To claim this, I am signing this object:
| #!/usr/bin/env python3 | |
| # original at https://gist.github.com/yinonburgansky/7be4d0489a0df8c06a923240b8eb0191 | |
| # modified for ease of use in Hyprland | |
| # calculation are based on http://www.esreality.com/index.php?a=post&id=1945096 | |
| # assuming windows 10 uses the same calculation as windows 7. | |
| # guesses have been made calculation is not accurate | |
| # touchpad users make sure your touchpad is calibrated with `sudo libinput measure touchpad-size` |
I hereby claim:
To claim this, I am signing this object:
I recently figured out how to launch applications in sway on login (or config reload) in specific workspaces. I tried doing this a year or so ago using procedural calls to swaymsg with manual changes to workspaces but it failed due to the delay in launching apps (the workspace would change too quickly). However, I recently figured out how to actually do it by combining swaymsg with assign.
First, you'll want to get the app_id, class or title of window you want to launch. Then you'll want to add it to the your sway config file.
The syntax looks like:
TL;DR
| Message pattern: ^time="(.*)" level=([^\s]+) .*$ | |
| Message start pattern: ^time= | |
| Time format: yyyy-MM-dd'T'HH:mm:ssXXX | |
| Time capture group: 1 | |
| Serverity capture group: 2 | |
| Reference: https://github.com/JetBrains/ideolog/wiki/Custom-Log-Formats |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "os" | |
| ) | |
| func main() { |
| # using-wget-with-socks-proxy | |
| # This should work for everything includeing curl, pip, pipenv, etc | |
| # TLDR: Use proxychains (https://github.com/haad/proxychains) | |
| ## INSTALL PROXY CHAINS ## | |
| $ sudo apt update -y | |
| $ sudo apt install proxychains | |
| ## EDIT PROXYCHAINS CONFIG ## |
Original revision: Sep 6, 2018
Most developers are familiar and proponents of the Unix Philosophy Unix philosophy - Wikipedia particularly, Write programs that do one thing and do it well. In practice though, the tooling just doesn’t exist to build useful network services which follow this approach.
Let’s take a lightweight WebSocket service. In 2018 we’ve no shortage of languages and frameworks - however largely incompatible with each other, to create the service.
I’m most familiar with the Python world so can break out the different frameworks in that world that you could use: twisted, eventlet, gevent, tornado, asyncio, sanic - and even though these use the same base language, using libraries designed to be used with one of these frameworks would likely be difficult to use with another framework. And then there are also a myriad of options with Java, Golang, Erlang, Rust.