Skip to content

Instantly share code, notes, and snippets.

View giulioungaretti's full-sized avatar
💭
😘

Giulio Ungaretti giulioungaretti

💭
😘
View GitHub Profile
@giulioungaretti
giulioungaretti / Windows Defender Exclusions VS 2017.ps1
Created April 25, 2019 04:13 — forked from dknoodle/Windows Defender Exclusions VS 2017.ps1
Adds Windows Defender exclusions for Visual Studio 2017
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null
$pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null
$pathExclusions.Add('C:\Program Files (x86)\MSBuild') > $null
$pathExclusions.Add('C:\Program Files (x86)\Microsoft Visual Studio 14.0') > $null
"""
An XPUB/XSUB broker that forwards subscriptions
"""
import os
import string
import sys
import time
from random import randint
from threading import Thread
  • Update HISTORY.rst
  • Commit the changes:
git add HISTORY.rst
git commit -m "Changelog for upcoming release 0.1.1."
  • Update version number (can also be minor or major)
bumpversion patch
@giulioungaretti
giulioungaretti / Spark+ipython_on_MacOS.md
Created January 27, 2016 10:41 — forked from ololobus/Spark+ipython_on_MacOS.md
Apache Spark installation + ipython notebook integration guide for Mac OS X

Apache Spark installation + ipython notebook integration guide for Mac OS X

Tested with Apache Spark 1.3.1, Python 2.7.9 and Java 1.8.0_45 + workaround for Spark 1.4.x from @enahwe.

Install Java Development Kit

Download and install it from oracle.com

@giulioungaretti
giulioungaretti / Makefile
Last active August 28, 2015 12:09 — forked from nhunzaker/Makefile
Access LMU light sensor on Mac. Also includes the Emacs plugin I use for automatically updating my theme according to ambient light.
all:
gcc light.m -std=c99 -framework Foundation -framework IOKit -o light
clean:
rm -f light
@giulioungaretti
giulioungaretti / gist:bf267f9f48fff056bcda
Last active August 26, 2015 15:02 — forked from wacko/gist:5577187
SSH between Mac OS X host and Virtual Box guest

On Mac OS (host):

Shutdown your VM and do:

VirtualBox > Settings > Network > Add (you will get vboxnet0)

On a terminal ifconfig will show you new interface vboxnet0

VM's Settings > System > check "Enable I/O APIC." VM's Settings > Network > Adapter 2 > host-only vboxnet0

@giulioungaretti
giulioungaretti / pref.js
Last active August 29, 2015 14:25 — forked from petrhosek/pref.js
Set up Chrome Secure Shell to handle Base16 Default terminal colors
// Disable bold.
term_.prefs_.set('enable-bold', false);
// Use this for base16-default.
term_.prefs_.set('background-color', "#151515");
term_.prefs_.set('foreground-color', "#d0d0d0");
term_.prefs_.set('cursor-color', '#d0d0d0');
term_.prefs_.set('color-palette-overrides', [
'#151515',

For ETS's SKLL project, we found out the hard way that Travis-CI's support for numpy and scipy is pretty abysmal. There are pre-installed versions of numpy for some versions of Python, but those are seriously out of date, and scipy is not there are at all. The two most popular approaches for working around this are to (1) build everything from scratch, or (2) use apt-get to install more recent (but still out of date) versions of numpy and scipy. Both of these approaches lead to longer build times, and with the second approach, you still don't have the most recent versions of anything. To circumvent these issues, we've switched to using Miniconda (Anaconda's lightweight cousin) to install everything.

A template for installing a simple Python package that relies on numpy and scipy using Miniconda is provided below. Since it's a common s

./configure --with-features=huge --enable-pythoninterp --with-python-config-dir=~/anaconda/bin/python-config
@giulioungaretti
giulioungaretti / vim74_lua
Last active August 29, 2015 14:16 — forked from jdewit/vim74_lua
vimubuntulua
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common
sudo apt-get build-dep vim
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev mercurial libncurses5-dev
sudo rm -rf /usr/local/share/vim
sudo rm /usr/bin/vim
sudo mkdir /usr/include/lua5.1/include