Skip to content

Instantly share code, notes, and snippets.

View danigiri's full-sized avatar
💭
Per ardua ad astra

Daniel Giribet danigiri

💭
Per ardua ad astra
View GitHub Profile
@danigiri
danigiri / automatic-sshfs-centos7.sh
Last active November 11, 2015 10:49
Fuse sshfs on Centos7 with minimum hassle
# sshfs cheatsheet for vms in centos7
# host IP in the vm network
export IP=192.168.46.1
# vm IP
export VMIP=192.168.46.132
#host user
export USER_=dani
# host GIT folder
export SOURCE="/Users/$USER_/Documents/GIT"
# home on vm
@danigiri
danigiri / keybase.md
Created March 1, 2015 23:23
keybase.md

Keybase proof

I hereby claim:

  • I am danigiri on github.
  • I am danigiri (https://keybase.io/danigiri) on keybase.
  • I have a public key whose fingerprint is 30CD 0FA4 F84A DB80 C525 D8AF CCE6 1586 1438 7AA0

To claim this, I am signing this object:

@danigiri
danigiri / gist:bc1b576201ff65eecd28
Last active August 29, 2015 14:05
Interactive install of freeling on Mac OS X using homebrew
# install boost dependency
brew install -v boost --with-icu
# interactively install freeling
brew install -i freeling
# setup environment, for some reason the boost headers are not detected, so we specify them
# note that it needs to reflect the appropriate boost version number installed
export LDFLAGS="-L/usr/local/opt/libtool/lib -L/usr/local/opt/icu4c/lib -L/usr/local/Cellar/boost/1.56.0/lib"
export CPPFLAGS="-I/usr/local/opt/libtool/include -I/usr/local/opt/icu4c/include -I/usr/local/Cellar/boost/1.56.0/include"
@danigiri
danigiri / rpmbuild
Created May 27, 2012 18:53
Hack to have maven-rpm-plugin work on Mac OS X
#!/bin/bash
# with this hack in your path, maven rpm plugin will work on mac os x
# -bb $1
# --buildroot $2
buildroot_="$3"
# --define $4
topdir_="$5"
# --target $6
@danigiri
danigiri / FreeLing.rb
Created March 12, 2012 23:12 — forked from ambs/FreeLing.rb
Homebrew formula for FreeLing3 (SVN Head)
require 'formula'
class Freeling < Formula
homepage 'http://nlp.lsi.upc.edu/freeling/'
head 'http://devel.cpl.upc.edu/freeling/svn/trunk', :using => :svn
depends_on 'icu4c'
# requires boost --with-icu. At the moment I think that is not possible (to force options)
depends_on 'boost'
depends_on 'libtool'