Skip to content

Instantly share code, notes, and snippets.

View MatMercer's full-sized avatar
🎯
Focusing

Mateus Mercer MatMercer

🎯
Focusing
View GitHub Profile
@MatMercer
MatMercer / !_usage.md
Last active March 31, 2018 21:54
Syncig musics files to a Android phone using a command line.

Syncing music files to a Android phone

I use Simple MTPFS to access the Android phone and rsync to sync the music files.

Demo Usage

./mount_android.sh ~/Documents/temp/android     
Trying to mount android to '/home/mat/Documents/temp/android'.
Could not retrieve device storage.
@MatMercer
MatMercer / dicto_closured.py
Last active June 16, 2017 02:19
Returns a dictionary with all functions closure levels inside a class.
"""
Recipe by Mateus Mercer ~ mateusmercer@gmail.com
This code is released with the MIT license, if you
didn't got a copy, get a copy at https://opensource.org/licenses/MIT
12/2016
"""
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac