Skip to content

Instantly share code, notes, and snippets.

@ronnymajani
ronnymajani / 20-intel.conf
Last active June 1, 2019 02:46
[Enable backlight XP15-9570 Manjaro Linux] X11 config file to enable the keyboard backlight on the XPS15 9570. Simply put the file `20-intel.conf` in `/etc/X11/xorg.conf.d/` #xps15 #manjaro #linux
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "Backlight" "intel_backlight"
EndSection
@ronnymajani
ronnymajani / 01-noautogpu.conf
Last active June 1, 2019 02:46
[Bash Script Enable/Disable Nvidia GPU on XPS15 9570 running Manjaro] Bash script to enable/disable the NVIDIA GPU using ACPI commands in Manjaro Linux because bbswitch can switch it off but fails to switch it back on. I suggest to put these scripts in /usr/local/bin/ and put disable-nvidia.conf and disable-ipmi.conf and blacklist.conf in /etc/m…
Section "ServerFlags"
Option "AutoAddGPU" "off"
EndSection
@ronnymajani
ronnymajani / settings.json
Last active June 1, 2019 08:51
[VSCode settings for ToDo tree] VSCode settings for ToDo Tree. Setup Regex to only accept the keywords when they're individual words (TEST is ok TESTHI is not) or appended with a colon (TEST:) or prepended with a hastage (#TEST) #vscode
{
"telemetry.enableTelemetry": false,
"gitlens.advanced.messages": {
"suppressLineUncommittedWarning": true
},
"todo-tree.tags":["TODO","FIXME","ERROR","DEBUG","TEST","REMINDER","QUESTION","NOTE"],
"todo-tree.regex": "((//|#|<!--/\\*)\\s*#{0,1}($TAGS):{0,1}((\\x20{1}.*$)|$)|^\\s*- \\[ \\])",
"todo-tree.defaultHighlight": {
"type":"text-and-comment",
},
@ronnymajani
ronnymajani / c_cpp_properties.json
Created June 1, 2019 01:49
[VSCode properties JSON for ESP-IDF] configuration to put in VSCode's c_cpp_properties.json to add intellisense awareness of the ESP-IDF #esp32 #vscode #intellisense
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"${workspaceFolder}/build/include/**",
"${env:IDF_PATH}/components/**",
"${env:HOME}/SDK/esp/xtensa-esp32-elf/**"
],