Skip to content

Instantly share code, notes, and snippets.

@ibLeDy
ibLeDy / slack_sidebar_theme.txt
Last active August 28, 2019 14:20
Slack sidebar theme for the desktop app. Another dark theme with orange accents.
#242629,#0E0F0F,#B86035,#1F1F1F,#573322,#F7F7F7,#2DA605,#0576B9
@ibLeDy
ibLeDy / gpu_fan_control.sh
Last active February 23, 2020 00:22
GPU fan speed through nvidia-settings
nvidia-settings -a '[gpu:0]/GPUFanControlState=1' -a '[fan:0]/GPUTargetFanSpeed=70'
@ibLeDy
ibLeDy / screen_share.sh
Last active June 11, 2020 15:37
Screen mirroring through VLC with an additional mouse cursor
cvlc \
--no-video-deco \
--no-embedded-video \
--screen-fps=30 \
--screen-top=0 \
--screen-left=0 \
--screen-width=1920 \
--screen-height=1080 \
screen:// & extramaus
@ibLeDy
ibLeDy / terminal_speedtest.sh
Created February 23, 2020 00:21
Shell startup time benchmark
for i in $(seq 1 10); do /usr/bin/time $SHELL -i -c exit; done
@ibLeDy
ibLeDy / replace_screenshot_keybinding.sh
Created February 23, 2020 05:09
Set Flameshot as the default screenshot tool
# Release default `window-screenshot` keybinding (Ubuntu 19.10)
gsettings set org.gnome.settings-daemon.plugins.media-keys window-screenshot '[]'
# Replace default `screenshot` binding with the default from `window-screenshot`
gsettings set org.gnome.settings-daemon.plugins.media-keys screenshot '<Alt>Print'
# Create a new custom keybinding (taking for granted that this would be the first created)
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']"
# Give it a name
i=${1:-10} ; while [ $i -gt 0 ]; do echo $i seconds remaining; i=`expr $i - 1`; sleep 1; done
@ibLeDy
ibLeDy / desktop_chromium_flags.md
Last active September 10, 2024 14:38
Chromium flags
Updated: Jun 17, 2022
Chromium: 102.0.5005.115 (Official Build) (64-bit) (cohort: Stable)
OS: Windows 10 Version 21H2 (Build 19044.1766)

Override software rendering list - Enabled

Overrides the built-in software rendering list and enables GPU-acceleration on unsupported system configurations. – Mac, Windows, Linux, Chrome OS, Android

@ibLeDy
ibLeDy / autoexec.cfg
Last active September 23, 2024 12:11
CS:GO Config Files
exec config
fps_max "999"
fps_max_ui "999"
rate "786432"
//cl_cmdrate "128"
//cl_updaterate "128"
cl_showfps 1
echo "bLeDy's Autoexec, September 2024"
@ibLeDy
ibLeDy / mojave_virtualbox_fix.sh
Created May 21, 2020 05:44
Mojave code for VirtualBox
#!/bin/sh
VM_NAME="Mojave-10.14.4"
VBoxManage modifyvm $VM_NAME --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
VBoxManage setextradata $VM_NAME "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata $VM_NAME "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata $VM_NAME "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-F2238BAE"
VBoxManage setextradata $VM_NAME "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata $VM_NAME "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
@ibLeDy
ibLeDy / mute_spotify_ads.sh
Last active December 20, 2023 11:23 — forked from pcworld/_README.md
Linux Spotify Ad Mute
#!/usr/bin/env bash
ADMUTE=0
PAUSED=0
get_pactl_nr(){
pactl list | grep -E '(^Sink Input)|(media.name = \"Spotify\"$)' | cut -d \# -f2 \
| grep -v Spotify
}