Skip to content

Instantly share code, notes, and snippets.

Excited for leaning more and more

Federico Bertani federicoB

Excited for leaning more and more
  • Bologna, Italy
View GitHub Profile
staltz /
Last active Apr 20, 2021
The introduction to Reactive Programming you've been missing
danriti /
Last active Jun 10, 2020
Line Profiling in Python

Install the line_profiler module:

[driti@ubuntu ]$ pip install line_profiler

Add the @profile decorator and run:

[driti@ubuntu ]$ -l -v
elundmark /
Created Feb 22, 2013
Live Webcam Wallpaper Script for Ubuntu
# Updates your desktop with an hourly updated image from (in this case Ocean Beach, SF) a webcam jpeg url.
# Uses: cronjob, curl, convert, gsettings
# Example screenshot:
# My cronjob setup, runs on minute :01 every hour
# 1 * * * * /path/to/ &> /dev/null
if [[ -z "$DBUS_SESSION_BUS_ADDRESS" ]]; then
source "$HOME/.dbus/session-bus"/*-0 && export DBUS_SESSION_BUS_ADDRESS