Skip to content

Instantly share code, notes, and snippets.

View njanke96's full-sized avatar

Nathan Janke njanke96

  • Nanaimo, BC
  • 13:22 (UTC -07:00)
View GitHub Profile
.cds-modal-dialog.receipt-window {
overflow-y: scroll;
}
.cds-modal-dialog.receipt-window .cds-modal-body {
max-height: inherit !important;
overflow-y: hidden !important;
}
// define this before including httplib.h
#define CPPHTTPLIB_OPENSSL_SUPPORT
#include "path/to/httplib.h"
// HTTPS client
httplib::Client cli("https://gwapi.deviceworx.com");
// define the path to a CA bundle
// this is where it is on ubuntu
Section "Device"
Identifier "Configured Video Device"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
HorizSync 30.0-62.0
VertRefresh 50.0-70.0
EndSection
"""
Multi-test script
"""
import os
import os.path as path
import time
from subprocess import run, PIPE
from difflib import ndiff
inputs_path = path.join(os.getcwd(), "inputs")
import sys
import subprocess
import time
import io
import socket
# Name of the unix socket file to CONNECT to
SOCKET_FILE = "daemon_sock.sock"
def main():
import sys
import os
import signal
import socket
from time import sleep
# Name of the unix socket file to listen to
SOCKET_FILE = "daemon_sock.sock"
@njanke96
njanke96 / workspace_switcher_notification.c
Created October 4, 2019 02:02
xfce workspace switcher notification
//////////////////////////////////////////////////////////////////////////////////////
// Workspace Switch Notifier //
// Shows a OSD with workspace name on workspace switching action //
// //
// wsn.c - //
// //
// Authors: //
// Isaac Maia Pessoa //
// //
// This program is free software: you can redistribute it and/or modify it //