Skip to content

Instantly share code, notes, and snippets.

View JakWai01's full-sized avatar
🌳

Jakob Waibel JakWai01

🌳
View GitHub Profile
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
{
"detectorModelName": "sensorDetectorModel",
"detectorModelDefinition": {
"states": [
{
"stateName": "Normal",
"onEnter": {
"events": [
{
"eventName": "init",
[jakob@fedora ~]$ journalctl -S "2022-12-16 18:00" -U "2022-12-17 20:00"
Dec 16 18:00:45 fedora wpa_supplicant[1506]: wlp3s0: PMKSA-CACHE-ADDED 1c:1d:86:52:a7:c0 0
Dec 16 18:02:15 fedora mullvad-daemon[1410]: [mullvad_relay_selector::updater][DEBUG] Relay list is up-to-date
Dec 16 18:05:17 fedora kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
Dec 16 18:05:17 fedora kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
Dec 16 18:05:17 fedora ModemManager[1362]: <info> [sleep-monitor] system is about to suspend
Dec 16 18:05:17 fedora NetworkManager[1395]: <info> [1671210317.4407] manager: sleep: sleep requested (sleeping: no enabled: yes)
Dec 16 18:05:17 fedora NetworkManager[1395]: <info> [1671210317.4412] device (enp2s0f0): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Dec 16 18:05:17 fedora NetworkManager[1395]: <info> [1671210317.4513] manager: NetworkManager state is now ASLEEP
Dec 16 18:0
# Sender
gst-launch-1.0 v4l2src ! video/x-raw,width=640,height=480 ! jpegenc ! rtpjpegpay ! udpsink host=127.0.0.1 port=5200
# Receiver
gst-launch-1.0 udpsrc port=5200 ! application/x-rtp, encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec ! autovideosink
pub static SYSTEM_CALL_NAMES: [&str; 335] = [
"read",
"write",
"open",
"close",
"stat",
"fstat",
"lstat",
"poll",
"lseek",
# https://stackoverflow.com/questions/39972335/how-do-i-press-and-hold-a-key-and-have-it-repeat-in-vscode
# Do this to fix the issue
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
# Do this to reenable the defaults
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool true
@JakWai01
JakWai01 / README.md
Created February 24, 2022 14:06 — forked from pojntfx/README.md
Enable prefers-color-scheme support and hardware acceleration for Chrome on Linux

Paste the following into your terminal; this will enable prefers-color-scheme support for Chrome on Linux. You'll have to fully close the browser with pkill chrome each time you want Chrome to re-read the settings, i.e. when you want it to toggle from light to dark or the other way around.

Also, use the following flags for full GPU acceleration:

  • ignore-gpu-blocklist
  • enable-webrtc-pipewire-capturer
  • enable-gpu-rasterization
  • enable-vulkan
  • enable-zero-copy
sudo docker exec dvwa sed -i 's/allow_url_include = Off/allow_url_include = On/g' /etc/php/7.0/apache2/php.ini
sudo docker exec dvwa /etc/init.d/apache2 reload
2022/01/23 21:49:20 Candidate was generated!
2022/01/23 21:49:20 received Candidate
2022/01/23 21:49:20 candidate:150705414 1 udp 2130706431 100.64.84.66 57181 typ host
2022/01/23 21:49:20 received Candidate
2022/01/23 21:49:20 candidate:1499087317 1 udp 2130706431 2001:7c7:2126:4b00:cbd0:2e6d:2ef0:76fd 43336 typ host
2022/01/23 21:49:20 Candidate was generated!
2022/01/23 21:49:20 Candidate was generated!
2022/01/23 21:49:20 Candidate was generated!
2022/01/23 21:49:20 received Candidate
2022/01/23 21:49:20 candidate:2069175878 1 udp 1694498815 2001:7c7:2126:4b00:cbd0:2e6d:2ef0:76fd 36668 typ srflx raddr :: rport 36668
2022/01/23 21:31:54 Candidate was generated!
2022/01/23 21:31:54 Candidate was generated!
2022/01/23 21:31:54 received Candidate
2022/01/23 21:31:54 candidate:150705414 1 udp 2130706431 100.64.84.66 37734 typ host
2022/01/23 21:31:54 received Candidate
2022/01/23 21:31:54 candidate:1499087317 1 udp 2130706431 2001:7c7:2126:4b00:cbd0:2e6d:2ef0:76fd 50482 typ host
2022/01/23 21:31:54 Peer Connection State has changed: connected
2022/01/23 21:31:54 sendChannel has opened
select min(length(name) - length(replace(name, "/", ""))) as depth, name from headers where deleted != 1
[]