Skip to content

Instantly share code, notes, and snippets.

@rbreaves
rbreaves / ExtensionsProvider.md
Last active Oct 12, 2020 — forked from marcorichetta/ExtensionsProvider.md
Change OpenVSX for MS Marketplace as extensions provider - VSCodium
View ExtensionsProvider.md

Reference (https://github.com/microsoft/vscode/issues/31168)

find /usr/share/ -name "product.json"

# cd into vscodum directory
cd /usr/share/vscodium-bin/resources/app

# macOS
# /Applications/VSCodium.app/Contents/Resources/app/product.json
@rbreaves
rbreaves / ffglobal.sh
Last active Aug 18, 2020
Firefox Global Menu
View ffglobal.sh
#!/bin/bash
# http://linux.darkpenguin.net/distros/ubuntu-unity/fixer/archive/firefox-globalmenu.fix
killall firefox > /dev/null 2>&1 || true
wget -q --show-progress --progress=bar:force 'http://archive.ubuntu.com/ubuntu/pool/main/f/firefox/firefox_79.0+build1-0ubuntu0.18.04.1_amd64.deb' 2>&1
apt-get -y --allow-downgrades install './firefox_79.0+build1-0ubuntu0.18.04.1_amd64.deb'
apt-mark hold firefox > /dev/null 2>&1 || true
@rbreaves
rbreaves / UBHiDPI.sh
Created Jul 31, 2020
Ubuntu Budgie HiDPI
View UBHiDPI.sh
#!/bin/bash
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "[{'Gdk/WindowScalingFactor', <2>}]"
gsettings set org.gnome.desktop.interface scaling-factor 2
@rbreaves
rbreaves / PowerAndSleepMBP-Win10
Created Jul 25, 2020
Proper Sleep and Power Plan Settings for MBP 2017 Running Windows 10
View PowerAndSleepMBP-Win10
Sleep mode does not work well on my MacBook Pro 2017 model with Windows 10 build 2004 (July 2020) so this is needed
1) Install PsShutdown.exe to C:\Windows
https://docs.microsoft.com/en-us/sysinternals/downloads/pstools
2) Install System Silencer
https://apps.nozavi.com/apps/system-silencer/download/file/4-system-silencer-zip.html
3) Create batch file to run psshutdown, please in directory with system silencer, set System Silencer to autostart
psshutdown -d -t 0
4) Install PowerSchemeSwitcher
https://www.microsoft.com/en-us/p/powerplanswitcher/9nblggh556l3?activetab=pivot:overviewtab
5) Configure on AC and off AC power plans
@rbreaves
rbreaves / .vimrc
Last active Jun 8, 2020
Universal OS vimrc settings
View .vimrc
" https://vi.stackexchange.com/questions/2572/detect-os-in-vimscript
" Comment - cross-platform settings
set nocompatible
set mouse=a
" OS Specific
if has('win32')
" Windows
" arrow keys
set term=pcansi
@rbreaves
rbreaves / DegreenMate.txt
Last active May 26, 2020
Degreen Ubuntu Mate
View DegreenMate.txt
#!/bin/bash
# Let's admit it.. Ubuntu Mate's GUI is very uninspired
# possibly on purpose, who knows. This script attempts
# to quickly undo the most of what the distro authors
# thinks looks good w/ more normal defaults.
#
# Personality is fine, but UI designers that do a poor
# job need to make sure there's an easy undo button.
@rbreaves
rbreaves / eOS-GlobalMenu.sh
Last active May 18, 2020
ElementaryOS Latest - w/ Global Menu via Mate
View eOS-GlobalMenu.sh
#!/bin/bash
# Suspend and screensavers may be broken with this current implementation
# Not really a shell file, but mostly notes and scribbles for how to get this going.
# Sane double click to open file or folder default
gsettings set io.elementary.files.preferences single-click false
# HiDPI
@rbreaves
rbreaves / compton.conf
Last active May 16, 2020
galliumOS Compton for tryone
View compton.conf
# Compton Configuration, courtesy of Xubuntu Developers
# Please note that Compton is not supported by Xubuntu and may not work
# correctly for you. This file is provided as a set of sane defaults and is in
# no way endorsed by the Xubuntu team.
#
# About Compton: https://github.com/chjj/compton
# Heavily based on: http://bit.ly/1l5OrzL
# Sample settings: https://github.com/chjj/compton/blob/master/compton.sample.conf
# --- Backend (OpenGL used by default)
@rbreaves
rbreaves / ComptonGalliumBlur.txt
Last active May 10, 2020
Install compton with blur on galliumOS
View ComptonGalliumBlur.txt
git clone https://github.com/tryone144/compton
# Install all dependencies
sudo apt install libx11-dev libxcomposite-dev libxdamage-dev libxfixes-dev libxrender-dev libxrandr-dev libxinerama-dev pkg-config libconfig-dev libpcre3-dev libdbus-1-dev libdrm-dev mesa-common-dev libgl1-mesa-dev xsltproc
# Do this separate to install 1mb instead of 500mb+
sudo apt-get --no-install-recommends install asciidoc
# Make the main program
@rbreaves
rbreaves / hwdb udev keyboard.sh
Last active Mar 23, 2020
hwdb udev Keyboard remap
View hwdb udev keyboard.sh
# Original reference https://yulistic.gitlab.io/2017/12/linux-keymapping-with-udev-hwdb/
systemd --version | head -n1 | awk '{print $2}'
# note systemd versions below 220 need
# keyboard:usb:v*p*
# 220 and above
# evdev:name:<name>:*
You can’t perform that action at this time.