This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// g++ -fPIC -I/usr/include/qt5 -lQt5Core qisprint.cc -o qisprint | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <QtCore/qchar.h> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window { | |
font-weight: 300; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MBTN_LEFT set pause no | |
MBTN_RIGHT cycle fullscreen | |
MBTN_RIGHT_DBL cycle fullscreen | |
WHEEL_UP add volume 2 | |
WHEEL_DOWN add volume -2 | |
WHEEL_LEFT ignore | |
WHEEL_RIGHT ignore | |
- add volume -2 | |
= add volume 2 | |
+ add volume 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Options */ :root { | |
--accent-normal: #642792; | |
--accent-light: #642792cc; | |
--accent-dark: #642792; | |
--scrollbar-thumb-normal: #ccc; | |
--scrollbar-thumb-sidebar: #d8d8d8; | |
--scrollbar-thumb-inactive: #e6e6e6; | |
--scrollbar-track: transparent; | |
--font-family-sans: "Ubuntu", "Droid Sans", "Trebuchet MS", "DejaVu Sans", "Bitstream Vera Sans", "Verdana", sans-serif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Disable USB and lid wakeup triggers in /proc/acpi/wakeup | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/sh -c 'for i in EHC1 EHC2 XHC LID0; do echo $i > /proc/acpi/wakeup; done' | |
ExecStop=/bin/sh -c 'for i in EHC1 EHC2 XHC LID0; do echo $i > /proc/acpi/wakeup; done' | |
RemainAfterExit=yes | |
[Install] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data:text/html;charset=utf-8,<html id="separator" data-string="\u2013" data-length="35" data-background="GrayText" data-opacity="0.125"> <link rel="help" href="https://gist.github.com/f4c51606f99e990774133e9eb46905ee" /><script>addEventListener("load", () => { const html = document.documentElement; document.title = JSON.parse(`"${html.dataset.string.replace('"', '\\"')}"`).repeat(Number(html.dataset.length) || 1); const background = document.querySelector("[id='background']"); background.style.background = html.dataset.background || "unset"; background.style.opacity = html.dataset.opacity || "1"; });</script><style>body, [id="background"] { height: 100%; margin: 0; }</style><link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Shell function to automatically manage the BW_SESSION environment variable | |
# for the Bitwarden CLI. Public domain via CC0. | |
# <https://gist.github.com/c0acd6bcafbc8af3dafefc90d1e0765d> | |
bw() { | |
local cmd="$1" | |
[ $# -ge 1 ] && shift || true | |
if [ x"$cmd" = x"unlock" ] && [ $# -eq 0 ]; then | |
local session="$(FORCE_COLOR=$(_bw_force_color) _bw_run "$cmd" --raw "$@")" | |
if [ x"$session" != x"" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
"""A tar(1)-like interface for 7z(1).""" | |
import argparse | |
import os | |
import subprocess | |
import sys | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run in Browser Console (Ctrl+Shift+J; ≡ menu → Web Developer → Browser Console), | |
// then right click on the JSON output and click Copy object. | |
// Use (eg.) <https://code.s.zeid.me/bin/blob/master/sessionstore2html> to convert to HTML. | |
SessionStore.getWindowState(window); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KERNEL=="loop*", ENV{UDISKS_IGNORE}="1" |