Skip to content

Instantly share code, notes, and snippets.

View tomasperezv's full-sized avatar
🤖
Focusing

Tomás Pérez tomasperezv

🤖
Focusing
View GitHub Profile
@tomasperezv
tomasperezv / linkedin-query.py
Created March 29, 2018 19:59 — forked from rvanbruggen/linkedin-query.py
Python script to query your LinkedIn network and get all your network's connections and their interconnections.
#!/usr/bin/env python
# encoding: utf-8
"""
linkedin-query.py
Created by Thomas Cabrol on 2012-12-03.
Customised by Rik Van Bruggen
Copyright (c) 2012 dataiku. All rights reserved.
Building the LinkedIn Graph
@tomasperezv
tomasperezv / cross-compile-pidgin-plugin.sh
Created October 31, 2015 12:26 — forked from nablaa/cross-compile-pidgin-plugin.sh
Cross-compile Pidgin plugins for Windows using Linux
#!/bin/bash
# Script to cross-compile Pidgin plugins on Linux for Windows.
# Tested to work on Ubuntu 12.04
PLUGIN_SRC_FILE="$1"
PLUGIN_NAME=$(basename "${PLUGIN_SRC_FILE}")
PLUGIN_NAME="${PLUGIN_NAME%.*}"
PLUGIN_DLL="${PLUGIN_NAME}.dll"
#!/bin/sh
#
# Creates a SmartOS VM in VirtualBox (assuming you alread have VirtualBox installed)
#
# This script will:
# * Download the latest live ISO image of SmartOS
# * Create a VirtualBox VM, or update an existing VM with the latest ISO
# * Configure the VM with a zones disk, and boot it!
#
#

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
#!/bin/sh
# Set up the environment. Respect $DISTRIB_CODENAME if it's set.
. /etc/lsb-release
# Fail fast if we're not on Lucid or Oneiric.
if [ $UID != 0 ]; then
echo "You are not root. Installing a package needs root privileges."
exit 1
fi
-- {{{
--
-- Autostarting for Awesome <3.4!
-- Add this section to the end of your rc.lua
-- configuration file within ~/.config/awesome/rc.lua
--
-- If you're using Awesome 3.5 change:
-- add_signal -> connect_signal
-- remove_signal --> disconnect_signal
--
(function(){
var key = localStorage.wpt_key;
if (!key) {
var prompt = window.__proto__.prompt;
key = prompt('Your WebPagetest API key, please?');
if (!key) {
return gameOver();
}
localStorage.wpt_key = key;