Skip to content

Instantly share code, notes, and snippets.

View xeon-zolt's full-sized avatar
💲
0 Dollar Dev

Harsh Lathwal xeon-zolt

💲
0 Dollar Dev
View GitHub Profile
@asdfman
asdfman / trayfix.patch
Created April 23, 2012 17:59
Compton patch for error 9 caused by Java AWT tray icon creation. Occurs occasionally with Tint2 and possibly other system trays. You can find Compton at https://github.com/chjj/compton. Put the patch in the source folder and execute "patch < trayfix.patch
--- compton.c 2012-04-23 20:49:21.000000000 +0300
+++ compnew.c 2012-04-23 20:49:09.000000000 +0300
@@ -1005,6 +1005,11 @@
continue;
}
+ /* patch for error 9 caused by java AWT tray icons */
+ if (w->a.width < 2 && w->a.height < 2) {
+ continue;
@rajarsheem
rajarsheem / GDrive.py
Last active March 9, 2023 20:58
Python terminal client for Google Drive for easy uploading, deleting, listing, sharing files or folders. (See usage in the comment)
from __future__ import print_function
import sys
import io
import pip
import httplib2
import os
from mimetypes import MimeTypes
@tadast
tadast / Paint slack black.md
Last active July 14, 2023 04:00
Update the Mac Desktop slack CSS

In the console

export SLACK_DEVELOPER_MENU=true
open /Applications/Slack.app

In slack UI

right-click on anything -> inspect element

@juancarlospaco
juancarlospaco / thermal_printer.md
Last active June 21, 2024 17:47
Arch Linux Thermal Printer USB 58mm / 80mm Drivers & Config