Skip to content

Instantly share code, notes, and snippets.

View pabluk's full-sized avatar
🏔️
Working from home

Pablo Seminario pabluk

🏔️
Working from home
View GitHub Profile
@pabluk
pabluk / gtk.css
Created May 19, 2016 23:11
Gnome Terminal CSS
/* ~/.config/gtk-3.0/gtk.css */
@define-color bg-grey #222;
@define-color active-grey #333;
@define-color border-grey #555;
TerminalWindow .notebook {
border: 0;
padding: 0;
color: #eee;
background-color: shade(@active-grey, 1);
@pabluk
pabluk / editor.html
Last active September 13, 2016 11:55
Markdown Editor
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Markdown Editor</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
@pabluk
pabluk / n10n-desktop.py
Created July 11, 2015 21:25
Display desktop notifications using the n10n web service.
#!/usr/bin/env python
"""Display desktop notifications using the n10n web service."""
import logging
import os
import requests
import time
from gi.repository import Notify
__author__ = "Pablo Seminario"
@pabluk
pabluk / boot-lxc-salt-formula.sh
Created December 25, 2014 19:10
Create a container LXC to test salt formulas on Debian
#!/bin/bash
PROJECT_DIR=$(pwd)
CNAME=$1
CNAME_ROOTFS=/var/lib/lxc/$CNAME/rootfs
usage() {
echo "Usage: `basename $0` <container-name>"
echo ""
@pabluk
pabluk / git2logstash.sh
Created July 28, 2014 06:53
Repo git to logstash
# Command draft
git log --pretty=format:'{"commit": "%H", "author": "%an <%ae>", "date": "%at", "message": "%f"}' | ~/dev/src/logstash-1.4.0/bin/logstash -e 'input { stdin { codec => json_lines } } filter { date { match => ["date", "UNIX"] } } output { elasticsearch { host => "logstash.lxc" index => "logstash" } }'
# Remove logstash index from ES
curl -XDELETE 'http://logstash.lxc:9200/logstash/'

Keybase proof

I hereby claim:

  • I am pabluk on github.
  • I am pabluk (https://keybase.io/pabluk) on keybase.
  • I have a public key whose fingerprint is AAB4 4953 F06F 034E A819 E411 0DEC 94B7 C7EE E429

To claim this, I am signing this object:

@pabluk
pabluk / livebox-ip.py
Last active December 2, 2023 03:09
Livebox IP
#!/usr/bin/env python
"""
This file provides a class to connect to the Livebox router
and get his public IP address.
The Livebox router is provided by Orange, a French ISP.
Usage
-----
$ python livebox-ip.py
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
cd
sudo apt-get update
sudo apt-get upgrade
@pabluk
pabluk / bbox-reboot.sh
Created April 10, 2012 13:19
Bouygues Box Reboot
#!/bin/bash
#============================================================================
#
# FILE: bbox-reboot.sh
# USAGE: ./bbox-reboot.sh
#
# TITLE: Bouygues Box Reboot (Bouygues is a French ISP)
# AUTHOR: Pablo SEMINARIO <pabluk@gmail.com>
# VERSION: 0.1
# LICENSE: GPL v3