Skip to content

Instantly share code, notes, and snippets.

View proycon's full-sized avatar

Maarten van Gompel proycon

View GitHub Profile
@Zeioth
Zeioth / gist:d8c1fd75b5721c2170b4a2a5f19a986e
Last active April 15, 2024 08:04
Sway HiDPI settings (GTK/QT/Sway) - How to
set $cursor_size 54
```
# GTK
# This is the only place where you must set GTK scaling
set $gnome-schema org.gnome.desktop.interface
exec_always {
gsettings set $gnome-schema gtk-theme 'Matcha-dark-sea'
gsettings set $gnome-schema icon-theme 'Numix-Square'
gsettings set org.gnome.desktop.interface text-scaling-factor 2.73
@pchampin
pchampin / pyld.py
Last active April 3, 2022 09:17
pyld command-line tool
#!/usr/bin/env python
#
# Command-line JSON-LD processor based on PyLD
#
# Copyright © 2021-2022 Pierre-Antoine Champin <pierre-antoine@w3.org>
import argparse
import json
import sys
from urllib.parse import urljoin, urlsplit
@typokign
typokign / zoomsucks.md
Last active September 8, 2023 05:06
Zoom Sucks

Zoom Sucks

  • Zoom abuses the installer flow on MacOS to bypass permissions dialogs (source)
  • Zoom sends identifying device info to Facebook, even when users don't have a Facebook account (source) (fixed)
  • A bug in Zoom sent identifying information (including email addresses and profile pictures) of thousands of users to strangers (source)
  • Zoom claims that meetings are end-to-end encrypted in their white paper and marketing materials, but meetings are only encrypted in transit, and are available in plaintext to Zoom servers and employees. (source)
  • zoomAutenticationTool can be used to escalat
@billpatrianakos
billpatrianakos / LIRC_Raspian_Buster.md
Last active December 22, 2022 21:01
How to set up LIRC on Raspbian Buster (2019, 4.x kernel)

Infrared and LIRC

*Beware: These instructions have been cobbled together from all of the sources I found that got my specific unit working. I can verify it works on a Pi 3B running the latest OS as of summer 2019. Everyone's hardware and system will be a bit different so your mileage may vary. Before you go crazy trying to debug issues sending a signal, grab an existing lirc config for any remote and use the lirc CLI to send a signal out and verify your hardware is sending the signal by viewing the IR LED through a front-facing smartphone camera (almost all smartphone front cameras - even new iPhones - will not filter out IR light and you should see the LED flash when sending a signal). If you see your hardware is sending a signal and/or you can see that the IR input is seeing some signal, then you know your setup works and the issue may be that the remote you're trying to learn simply won't work with LIRC. I know for a fact that many Comcast/Xfinity cable remotes are actually RF devices and need to have

@mikeboiko
mikeboiko / tmux.conf
Last active March 23, 2024 07:32
Automatically update $DISPLAY for each tmux pane after attaching to session
set-hook -g client-attached 'run-shell /bin/update_display.sh'
@LukeSmithxyz
LukeSmithxyz / urlview.md
Last active May 30, 2023 13:27
Following Terminal Links with URLview

Following Terminal Links with URLview

Link handling

Specify what you want urlview to open your links with in ~/.urlview after COMMAND. I.e. the line below will make urlview open all urls in Firefox.

COMMAND firefox
curl -i -u YOURUSER -X GET https://api.github.com/repos/ORG/REPO/hooks
curl -i -u YOURUSER -X PATCH https://api.github.com/repos/ORG/REPO/hooks/IRC_HOOK_ID -d "{ \"add_events\": [\"push\", \"pull_request\", \"issues\"] }"
curl -i -u YOURUSER -X GET https://api.github.com/repos/ORG/REPO/hooks
curl -i -u YOURUSER -X PATCH https://api.github.com/repos/ORG/REPO/hooks/IRC_HOOK_ID -d "{ \"add_events\": [\"push\", \"pull_request\", \"issues\"] }"
@mickn
mickn / .muttrc
Created September 10, 2016 18:58
My Mutt Configuration (Gmail, Multiple Accounts, Not-Mutch Search, OfflineImap)
# Paths {{{
set folder = ~/Mail # mailbox location
set alias_file = ~/.mutt/alias # where to store aliases
set header_cache = ~/.mutt/cache/headers # where to store headers
set message_cachedir = ~/.mutt/cache/bodies # where to store bodies
set certificate_file = ~/.mutt/cerficates # where to store certs
set mailcap_path = ~/.mutt/mailcap # entries for filetypes
set tmpdir = ~/.mutt/temp # where to keep temp files
set signature = ~/.mutt/sig # my signature file
diff --git a/include/xcb.h b/include/xcb.h
index b7eed2c..c51adf4 100644
--- a/include/xcb.h
+++ b/include/xcb.h
@@ -51,6 +51,7 @@
ConfigureNotify */ \
XCB_EVENT_MASK_POINTER_MOTION | \
XCB_EVENT_MASK_PROPERTY_CHANGE | \
+ XCB_EVENT_MASK_LEAVE_WINDOW | \
XCB_EVENT_MASK_ENTER_WINDOW)