Skip to content

Instantly share code, notes, and snippets.

View mirkobrombin's full-sized avatar
🙈
Working on Vanilla OS 2

Mirko Brombin mirkobrombin

🙈
Working on Vanilla OS 2
View GitHub Profile
@mariocesar
mariocesar / app_granite.py
Last active June 29, 2021 08:35
Python GTK3 desktop app and Granite App (Elementary OS Desktop)
import sys
from gi.repository import Granite
from gi.repository import Gtk
from gi.repository import Gio
class LightWindow(Gtk.Dialog):
def __init__(self):
super(LightWindow, self).__init__()
@palto42
palto42 / update_vscode.sh
Last active July 28, 2021 05:49
Install and update VS Code from official binary for Linux version which don't support deb, rpm or Snap (tested on Solus)
#!/bin/bash
# VS Code updater
# get installed version
installed=$($HOME/bin/VSCode-linux-x64/bin/code -v 2>/dev/null | head -n 1)
# get latest release from Github
latest=$(curl -s https://github.com/Microsoft/vscode/releases/latest | grep -Po 'tag/\K[0-9\.]*')
if [ "$installed" == "$latest" ]
@imLinguin
imLinguin / bottles-wine.sh
Created May 29, 2022 14:22
Wrapper script to use Bottles like wine binary in tools like Legendary.
#!/bin/sh
if [ -z $HGL_BOTTLE_NAME ]; then
echo "NO HGL_BOTTLE_NAME?"
exit 1
fi
if [ $# -eq 0 ]; then
echo "NO EXE?"
exit 1