Skip to content

Instantly share code, notes, and snippets.

View federicoB's full-sized avatar
Excited for leaning more and more

Federico Bertani federicoB

Excited for leaning more and more
View GitHub Profile
staltz /
Last active July 15, 2024 15:43
The introduction to Reactive Programming you've been missing
danriti /
Last active February 26, 2022 07:20
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 February 22, 2013 02:45
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