Skip to content

Instantly share code, notes, and snippets.

View polaco1782's full-sized avatar

Cassiano Martin polaco1782

  • Santa Cruz do Sul, RS, Brazil
View GitHub Profile
@polaco1782
polaco1782 / debian-rclocal.sh
Created March 3, 2018 19:12
Enable rc.local systemd compatibility on Debian 9
cat <<EOF >/etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
@polaco1782
polaco1782 / pybrowser.py
Created February 27, 2018 12:38 — forked from kklimonda/pybrowser.py
A minimal Gtk+/Webkit based browser in Python
import sys
from gi.repository import Gtk, Gdk, WebKit
class BrowserTab(Gtk.VBox):
def __init__(self, *args, **kwargs):
super(BrowserTab, self).__init__(*args, **kwargs)
go_button = Gtk.Button("go to...")
go_button.connect("clicked", self._load_url)
self.url_bar = Gtk.Entry()