Skip to content

Instantly share code, notes, and snippets.

View tzulberti's full-sized avatar

Tomas Zulberti tzulberti

  • Zendesk
  • Singapore
View GitHub Profile
@tzulberti
tzulberti / edit_videos.sh
Created October 24, 2020 12:14
Edit PyAr Meetup Videos
# primero separo el video de PyAr Grande en videos mas cortos de 5min
mkvmerge -o pyar --split duration:00:05:00.000 Python\ Argentina\ Meetup\ \(720p_30fps_H264-192kbit_AAC\).mp4
# spliteo uno de los videos por donde justo empieza la charla
mkvmerge -o foobar --split duration:00:00:12.000 pyar_-011
# mover el foobar que nos interesa y reemplazar el archivo de pyar
mv foobar-002 pyar_-011
@tzulberti
tzulberti / app.py
Created October 12, 2012 18:31
Flask logging error
import logging
from os.path import join
from logging.handlers import TimedRotatingFileHandler
class CURRENT_ENVIRONMENT(object):
LOGGING_FOLDER = '.'
root_logger = logging.getLogger()
root_handler = TimedRotatingFileHandler(
filename=join(CURRENT_ENVIRONMENT.LOGGING_FOLDER, 'web.log'),
@tzulberti
tzulberti / file.py
Created October 12, 2012 18:26
Flask logging example
# app.py file
import logging_conf
app = Flask(__name__)
# --------------------------------------------
# logging_conf.py
import logging
@tzulberti
tzulberti / install-ruby-debug-ubuntu-ruby-1.9.3
Created September 6, 2012 18:07 — forked from boriscy/install-ruby-debug-ubuntu-ruby-1.9.3
ruby-debug in ruby-1.9.3 and ubuntu
curl -L -O http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
curl -L -O http://rubyforge.org/frs/download.php/74596/ruby_core_source-0.1.5.gem
curl -L -O http://rubyforge.org/frs/download.php/63094/ruby-debug19-0.11.6.gem
curl -L -O http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem
export RVM_SRC=/usr/include/ruby-1.9.1/ruby-1.9.3-p0/
gem install archive-tar-minitar
gem install ruby_core_source-0.1.5.gem -- --with-ruby-include=$RVM_SRC
gem install linecache19-0.5.13.gem -- --with-ruby-include=$RVM_SRC