git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| """ | |
| Thread-safe Django cache backend for pylibmc. | |
| Tested on Python 2.6, should work on 2.5 as well. | |
| Use it by setting CACHE_BACKEND in settings.py, e.g.: | |
| CACHE_BACKEND = 'projdir.utils.pylibmcd://127.0.0.1:11211/' | |
| And here's how to properly install pylibmcd in Ubuntu for mod_wsgi: |
| Highcharts.setOptions({ | |
| lang: { | |
| months: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'], | |
| weekdays: ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'], | |
| loading: ['Atualizando o gráfico...aguarde'] | |
| } | |
| }); |
| @REM adapted from http://stackoverflow.com/a/20092578 | |
| if ["%VIRTUAL_ENV%"]==[""] echo Must run under a Virtualenv && goto :error | |
| set SRCDIR=c:\Python27\Lib\site-packages | |
| pushd "%VIRTUAL_ENV%\Lib\site-packages" | |
| xcopy /ydfsi %SRCDIR%\MySQLdb MySQLdb | |
| xcopy /ydfsi %SRCDIR%\_mysql* . | |
| xcopy /ydfsi %SRCDIR%\MySQL_python-1.2.3-py2.7.egg-info MySQL_python-1.2.3-py2.7.egg-info | |
| popd | |
| goto :eof |
| #!/bin/bash | |
| # Adicione um novo remote; pode chamá-lo de "upstream": | |
| git remote add upstream https://github.com/usuario/projeto.git | |
| # Obtenha todos os branches deste novo remote, | |
| # como o upstream/master por exemplo: | |
| git fetch upstream |
C:\Program Files\boost_1_59_0.C:\Program Files\boost-build.C:\Program Files\boost_1_59_0\build.C:\Program Files\boost.| #!/usr/bin/python | |
| from selenium import webdriver | |
| from PIL import Image | |
| from cStringIO import StringIO | |
| verbose = 1 | |
| browser = webdriver.Firefox() | |
| browser.get('http://stackoverflow.com/questions/37906704/taking-a-whole-page-screenshot-with-selenium-marionette-in-python') |
| #In Powershell. | |
| # Install chocolatey https://chocolatey.org/install to be the software package manager. Right now the following line is the installer. But it would be good to go grab the new command from the site provided. | |
| #Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
| choco install git ghostscript xpdf-utils gnuwin 7zip cyg-get msys2 graphviz activeperl | |
| choco install ruby --version=2.6.5.1 | |
| # This sets up ruby to be a dev kit | |
| ridk install 1 | |
| cyg-get install catdoc unrtf unzip antiword xlsx2csv libvisio-tools |