VirtualTam's bookmarks

  1. Use case:

    • Set up an AutoScaling Group with exactly 1 min/max/desired instance
    • Attach an Elastic IP to the active instance

    Usually for interoperability reasons and/or IP-based network rules (80's firewall anyone?).

  2. SCOOTER BROTHERS! WE'RE SCOOTER BROTHERS!

    Scooter champ' algorithm:

    • capture video with OpenCV
    • process frames: region of interest, edge detection
    • send DirectInput controls
    • watch & enjoy!

    src https://github.com/sentdex/pygta5/ via https://www.reddit.com/r/Python/comments/64l4pp/python_plays_gta_v_tutorial_series_creating_a/

  3. electric-indent has been activated by default in emacs 24

    to disable it for Python: (add-hook 'python-mode-hook (lambda () (set (make-local-variable 'electric-indent-functions) (list (lambda (arg) 'no-indent)))))

  4. Discussion de fond sur l'auto-hébergement de code source via Git :

    • mise en place d'une interface d'administration web,
    • fonctionnalités couvertes : granularité des droits, CI, wiki,
    • simplicité d'utilisation,
    • réactivité,
    • interactivité avec la communauté / cadre d'utilisation.
  5.  1# setup a transifex virtualenv
     2virtualenv2 VENV; source VENV/bin/activate; pip install transifex-client
     3
     4# global config: ~/.transifexrc
     5# this step can be omitted, as 'tx init' will create the file if it doesn't exist
     6[https://www.transifex.com]
     7username = User
     8token =
     9password = un54f3_p4ssw0rd!
    10hostname = https://www.transifex.com
    11
    12# setup example project
    13mkdir example; cd example
    14tx init
    15tx set --auto-remote https://www.transifex.com/projects/p/my-project/
    16
    17# get the files
    18tx pull -l pt_BR
    19
    20# edit things
    21poedit / linguist-qt4
    22
    23# push to transifex
    24tx push -t
    
  6. CamSam 2014-04-07