Skip to content

Instantly share code, notes, and snippets.

View gglanzani's full-sized avatar

Giovanni Lanzani gglanzani

View GitHub Profile

Keybase proof

I hereby claim:

  • I am gglanzani on github.
  • I am lanzani (https://keybase.io/lanzani) on keybase.
  • I have a public key whose fingerprint is D495 85D1 CBD3 BD0B BB17 C8B6 C2AA C094 1858 6A16

To claim this, I am signing this object:

@gglanzani
gglanzani / macvim
Last active August 29, 2015 13:59
brew install -v macvim 2>&1
~/C/scala-training ⮀ brew doctor
Your system is ready to brew.
~/C/scala-training ⮀ br
Updated Homebrew from 87500fdb to 120b1658.
==> New Formulae
sysdig
==> Updated Formulae
clens freerdp libdvdcss phantomjs
cloudfoundry-cli gforth midnight-commander sshguard
~/C/scala-training ⮀ brew --config
@gglanzani
gglanzani / Heversine.ipynb
Created February 28, 2014 14:18
Haversine performance
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
(*
PapersToBibDesk: To transfer citations from Papers to formatlib and
auto-generate a citekey.
Place this in ~/Library/Scripts/Applications/Papers
Create this folder if necessary.
Select the references you wish to transfer in Papers first.
Then run the script.
@gglanzani
gglanzani / gsInstaller-9715.out
Created December 7, 2012 06:57
My gsInstaller log
===============================================================================
Grid Stack Installer
===============================================================================
===============================================================================
Installation Details
===============================================================================
===============================================================================
yum -y install pdsh
===============================================================================
Loaded plugins: priorities, security
@gglanzani
gglanzani / gsInstaller.properties
Created December 5, 2012 12:02
my gsInstaller.properties
#/**
#
#* Copyright 2011, Hortonworks Inc. All rights reserved.
#
#* Licensed under the Apache License, Version 2.0 (the "License");
#* you may not use this file except in compliance with the License.
#* You may obtain a copy of the License at
#
#* http://www.apache.org/licenses/LICENSE-2.0
#
@gglanzani
gglanzani / gist:3435030
Created August 23, 2012 10:05
my vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
Bundle 'gmarik/vundle'
" My Bundles here:
"
@gglanzani
gglanzani / gist:3426749
Created August 22, 2012 15:24
Shell script to open the Pirate Bay in your default browser
#!/bin/sh
foo=$(curl -s http://elite.so/tpp/proxy.txt | grep org | grep www | awk '/org/{print $2}')
foo="http://"$foo
open $foo
@gglanzani
gglanzani / gist:3378381
Created August 17, 2012 12:14
Applescript for MacVim to compile a .tex file with latexmk
on findAndReplace(tofind, toreplace, TheString)
set ditd to text item delimiters
set res to missing value
set text item delimiters to tofind
repeat with tis in text items of TheString
if res is missing value then
set res to tis
else
set res to res & toreplace & tis
end if
@gglanzani
gglanzani / config.log
Created August 6, 2012 09:54
config log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.65. Invocation command line was
$ ./configure --prefix=/usr/local/Cellar/fontforge/20110222 --enable-double --without-freetype-bytecode --with-python-headers=/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 --with-python-lib=-lpython2.7 --enable-pyextension
## --------- ##
## Platform. ##