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` | |
# import matplotlib.pyplot as plt |
I hereby claim:
To claim this, I am signing this object:
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 ## |
# Useful references: | |
# | |
# https://superuser.com/questions/992511/emulate-a-keyboard-button-via-the-command-line | |
# https://ss64.com/vb/sendkeys.html | |
# https://social.technet.microsoft.com/Forums/windowsserver/en-US/96b339e2-e9da-4802-a66d-be619aeb21ac/execute-function-one-time-in-every-10-mins-in-windows-powershell?forum=winserverpowershell | |
# https://learn-powershell.net/2013/02/08/powershell-and-events-object-events/ | |
# | |
# Future enhancements - use events rather than an infinite loop | |
$wsh = New-Object -ComObject WScript.Shell | |
while (1) { |
// compile with `gcc -I/usr/include getxkblayout.c -lX11 -lxkbfile` | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <X11/XKBlib.h> | |
#include <X11/extensions/XKBrules.h> | |
int main(int argc, char **argv) { | |
Display *dpy = XOpenDisplay(NULL); |
[ Update 2020-05-31: I won't be maintaining this page or responding to comments anymore (except for perhaps a few exceptional occasions). ]
Most of the terminal emulators auto-detect when a URL appears onscreen and allow to conveniently open them (e.g. via Ctrl+click or Cmd+click, or the right click menu).
It was, however, not possible until now for arbitrary text to point to URLs, just as on webpages.