Skip to content

Instantly share code, notes, and snippets.

@jeangjenq
jeangjenq / rmReparsePoints.ps1
Created March 20, 2022 07:44
Delete reparse points in all directory/subdirectory/files with Powershell.
Get-ChildItem -Recurse -Attributes Reparsepoint | % { $n = $_.FullName.Trim(“\”); fsutil reparsepoint delete “$n” }
@jeangjenq
jeangjenq / findTerminal.py
Created March 20, 2022 11:05
Find terminal from any linux distro.
from distutils.spawn import find_executable
def isNot_exec(name):
#check whether terminal program exists
return find_executable(name) is None
def findTerminal():
termList = ["x-terminal-emulator", "konsole", "gnome-terminal", "urxvt", "rxvt", "termit", "terminator", "Eterm", "aterm", "uxterm", "xterm", "roxterm", "xfce4-terminal", "termite", "lxterminal", "mate-terminal", "terminology", "st", "qterminal", "lilyterm", "tilix", "terminix", "kitty", "guake", "tilda", "alacritty", "hyper"]
#list taken from https://github.com/i3/i3/blob/next/i3-sensible-terminal
i = 0
@jeangjenq
jeangjenq / userContent.css
Created March 20, 2022 11:11
Firefox readability fix in KDE Plasma
input {
border: 2px inset white;
background-color: white;
color: black;
-moz-appearance: none !important;
}
textarea {
border: 2px inset white;
background-color: white;
color: black;