Skip to content

Instantly share code, notes, and snippets.

View XenHat's full-sized avatar
🎩

XenHat XenHat

🎩
  • Quebec, Canada
  • 19:33 (UTC -04:00)
  • X @XenHat
View GitHub Profile
@XenHat
XenHat / install_viewer_dev_env.ps1
Last active September 9, 2022 00:53
Install SL Viewer dev env
# https://gist.github.com/XenHat/fafa4697b51c3279f74967609af03120
#
# Settings
# Needs quotes
GitVersion="2.28.0"
#
#
#
#
# Self-Elevate
@XenHat
XenHat / cloudSettings
Last active January 2, 2022 08:49
Old Visual Studio Code Settings Sync Gist
{"lastUpload":"2022-01-02T08:49:16.852Z","extensionVersion":"v3.4.3"}
@XenHat
XenHat / OEMBIOSFields.md
Last active August 9, 2018 20:57
OEM Fields explanation by Peter M. Dodge

Explanation of the keys

Manufacturer:

This is a string containing the manufacturer. Microsoft encourages system builders to put their name here, if theyre not a company, but you can put what you want.

Model:

A model number string for the computer, ie "Brendr I VTE-001-001 (w/ ASUSTek P5G41C-M)

@Scrumplex
Scrumplex / 50-udisks.rules
Last active November 30, 2023 21:20
Polkit rules for udisks, and udisks2. Compatible with udiskie and Dolphin.
// Original rules: https://github.com/coldfix/udiskie/wiki/Permissions
// Changes: Added org.freedesktop.udisks2.filesystem-mount-system, as this is used by Dolphin.
polkit.addRule(function(action, subject) {
var YES = polkit.Result.YES;
// NOTE: there must be a comma at the end of each line except for the last:
var permission = {
// required for udisks1:
"org.freedesktop.udisks.filesystem-mount": YES,
"org.freedesktop.udisks.luks-unlock": YES,
@samoshkin
samoshkin / toggle_keybindings.tmux.conf
Last active June 8, 2024 23:04
tmux.conf excerpt to toggle on/off session keybindings and prefix handling
bind -T root F12 \
set prefix None \;\
set key-table off \;\
set status-style "fg=$color_status_text,bg=$color_window_off_status_bg" \;\
set window-status-current-format "#[fg=$color_window_off_status_bg,bg=$color_window_off_status_current_bg]$separator_powerline_right#[default] #I:#W# #[fg=$color_window_off_status_current_bg,bg=$color_window_off_status_bg]$separator_powerline_right#[default]" \;\
set window-status-current-style "fg=$color_dark,bold,bg=$color_window_off_status_current_bg" \;\
if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\
refresh-client -S \;\
bind -T off F12 \
@XenHat
XenHat / unbloat.ps1
Last active November 5, 2017 22:18
Uninstall Default Windows 8+ Modern Apps
$WMI = get-appxpackage -allusers | Where-Object { $_.name -NotMatch ".NET" <# NEVER DELET DIS #>`
<# System Apps #>`
-And $_.name -NotMatch "1527c705-839a-4832-9118-54d4Bd6a0c89" `
-And $_.name -NotMatch "AccountsControl" `
-And $_.name -NotMatch "BioEnrollment" `
-And $_.name -NotMatch "BrokerPlugin" `
-And $_.name -NotMatch "c5e2524a-ea46-4f67-841f-6a9465d9d515" `
-And $_.name -NotMatch "ChxApp" `
-And $_.name -NotMatch "communication" `
-And $_.name -NotMatch "ContactSupport" `
@Sei-Lisa
Sei-Lisa / include-if-preprocessor-active.lsl
Last active October 15, 2017 16:17
LSL Trick: Do something when the file is run through a preprocessor, and something different otherwise
string dummy="/*\
";
// insert here code that will only be compiled when the preprocessor is active
#include "debug.h"
/*/""; // separator line
// insert here code that will only be compiled when the preprocessor is inactive
debug(string s){llOwnerSay(s);}
@lucario
lucario / reddit.json
Last active February 22, 2020 08:55
Reddit webhook for IFTTT and Discord
{
"username": "Reddit",
"avatar_url": "https://lh3.googleusercontent.com/J41hsV2swVteoeB8pDhqbQR3H83NrEBFv2q_kYdq1xp9vsI1Gz9A9pzjcwX_JrZpPGsa=w300",
"embeds": [{
"color": "16597762",
"author": {
"name": "{{Author}}"
},
"title": "{{Title}}",
"url": "{{PostURL}}",
@auipga
auipga / iperf3.service
Last active April 6, 2024 00:21 — forked from mmasaki/iperf.service
systemd service unit for iperf3
# /etc/systemd/system/iperf3.service
# User service: $HOME/.config/systemd/user/iperf3.service
[Unit]
Description=iperf3 server
After=syslog.target network.target auditd.service
[Service]
ExecStart=/usr/bin/iperf3 -s
@jkoelker
jkoelker / gaming
Last active June 3, 2023 23:30
Enable or Disable the Touchpad while typing via libinput `xinput` (aka. libinput "gaming" mode)
#!/bin/sh
#
# libinput by default will disable the touchpad while a key is pressed.
# to disable this, run `xinput` to list the inputs. find the name of your
# touchpad (mine is 'Microsoft Surface Keyboard Touchpad').
#
# Disable the setting 'Disable While Typing Enabled'
# `xinput --set-prop 'Microsoft Surface Keyboard Touchpad' \
# 'libinput Disable While Typing Enabled' 0`
#