Skip to content

Instantly share code, notes, and snippets.

@xslr
xslr / userChrome.css
Created January 18, 2022 20:04
userChrome.css
https://github.com/Timvde/UserChrome-Tweaks/
#sidebar-header {
visibility: collapse !important;
}
#sidebar-header {
display: none;
}
@xslr
xslr / update_vscode.sh
Last active October 10, 2020 19:54 — forked from justF-2077/update_vscode.sh
Automatically updates Visual Studio Code by downloading the latest version and replacing the currently installed version with it.
CODE_URL="https://update.code.visualstudio.com/latest/linux-x64/stable"
error_code=0
cd $HOME/Apps
function inform_user() {
echo "$1"
notify-send "$1" || true
}
@xslr
xslr / perf_gtk_tree_view.c
Created June 11, 2012 13:23
Test performance of inserting items into a gtk treeview. Determine the maximum rate at which items may be inserted while maintaining a responsive UI.
/*
perf_gtk_tree_view.c
gcc one-liner: gcc -std=c99 `pkg-config --cflags gtk+-3.0` -o perf_gtk_tree_view perf_gtk_tree_view.c `pkg-config --libs gtk+-3.0`
*/
#include <stdio.h>
#include <stdlib.h>
#include <gtk/gtk.h>
GtkWidget *scrolled_tree;