Skip to content

Instantly share code, notes, and snippets.

@cvgarciarea
cvgarciarea / head_tab_window.py
Last active January 11, 2023 18:56
A Gtk+ Window with a tabs on HeaderBar.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import gi
gi.require_versions({"Gtk": "3.0", "Gdk": "3.0"})
from gi.repository import Gtk
from gi.repository import Gdk
from gi.repository import GObject
@jniltinho
jniltinho / install_dotnet-sdk.sh
Last active February 5, 2023 12:28
Install .NET Core 2.0.0 SDK for Ubuntu 16.04
#!/bin/bash
## Install .NET Core 2.0.0 SDK on Ubuntu 16.04 64Bits
## Author: Nilton OS www.linuxpro.com.br
## https://www.microsoft.com/net/core#linuxubuntu
## https://docs.microsoft.com/en-us/aspnet/core/publishing/apache-proxy
## https://medium.com/@renato.groffe/net-core-e-sql-server-em-linux-primeiros-passos-89a7cb475ebd
## Version 0.1
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
@jaszhix
jaszhix / worker.js
Last active February 17, 2018 20:55
Experimental CJS subprocess IPC handling with libsoup
// This populates our imports object with gi modules in the child process.
imports.gi.GIRepository.Repository.get_default();
const Gio = imports.gi.Gio;
const Soup = imports.gi.Soup;
const Signals = imports.signals;
// Cinnamon's JS context does not have an ARGV global defined.
const isChildProcess = typeof ARGV !== 'undefined';
const DEBUG = true;
@chrisatomix
chrisatomix / .gitignore
Created January 22, 2015 03:10
Joomla Gitignore File
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
@geoffyoungs
geoffyoungs / pack-cell-renderers.rb
Created September 21, 2011 08:06
Include multiple CellRenderers in a single TreeView column
#!/usr/bin/env ruby
# See http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ATreeViewColumn
# for more details on Gtk::TreeViewColumn
require 'gtk2'
require 'base64'
win = Gtk::Window.new("Multiple cells in a column")
win.signal_connect('delete-event') { Gtk.main_quit }