This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"io" | |
"log" | |
"net/http" | |
"net/url" | |
"os" | |
"runtime" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
) | |
var start string | |
func init() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
max = None | |
for i in range(5): | |
num = input('Digite um numero ') | |
if num > max: | |
max = num | |
print max |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ricardo harlan ~ projects appengine-fixture-loader master $ LC_CTYPE="en_US.UTF-8" python setup.py register -r pypitest | |
running register | |
running egg_info | |
writing Appengine_Fixture_Loader.egg-info/PKG-INFO | |
writing top-level names to Appengine_Fixture_Loader.egg-info/top_level.txt | |
writing dependency_links to Appengine_Fixture_Loader.egg-info/dependency_links.txt | |
reading manifest file 'Appengine_Fixture_Loader.egg-info/SOURCES.txt' | |
reading manifest template 'MANIFEST.in' | |
warning: no previously-included files matching '__pycache__' found under directory '*' | |
warning: no previously-included files matching '*.py[co]' found under directory '*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[distutils] | |
index-servers = | |
pypi | |
pypitest | |
[pypi] | |
repository: https://pypi.python.org/pypi | |
username: rbanffy | |
[pypitest] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ricardo harlan ~ projects appengine-fixture-loader master $ LC_CTYPE="en_US.UTF-8" python setup.py register | |
running register | |
running egg_info | |
writing Appengine_Fixture_Loader.egg-info/PKG-INFO | |
writing top-level names to Appengine_Fixture_Loader.egg-info/top_level.txt | |
writing dependency_links to Appengine_Fixture_Loader.egg-info/dependency_links.txt | |
reading manifest file 'Appengine_Fixture_Loader.egg-info/SOURCES.txt' | |
reading manifest template 'MANIFEST.in' | |
warning: no previously-included files matching '__pycache__' found under directory '*' | |
warning: no previously-included files matching '*.py[co]' found under directory '*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dpkg -l maas* | cat | |
dpkg -l maas* > /tmp/dpkg-l-maas.txt | |
sudo tar jcvf /tmp/maas-logs-$(date +%Y%m%d%H%M)-$(hostname).tar.bz2 /var/log/maas/ /var/log/kern.log /var/log/syslog /tmp/dpkg-l-maas.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update && apt-get -y dist-upgrade && apt-get install software-properties-common && apt-add-repository ppa:maas-maintainers/experimental3 | |
apt-get install maas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open http://www.google.com/?q=$(sysctl -n machdep.cpu.brand_string | awk '{FS=" " ; print $2 "+" $3 "+" $4}')+site:ark.intel.com | |
or, on a Linux machine | |
xdg-open http://www.google.com/?q=$(fgrep 'model name' /proc/cpuinfo | head -n 1 | awk '{FS=" " ; print $5 "+" $6}')+site:ark.intel.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import string | |
vowels = 'aeiouy' | |
specials = 'q' | |
consonants = [ | |
l for l in string.ascii_lowercase if l not in vowels and l not in specials] | |
consonants += ['qu', 'ch', 'sh', 'ph', 'lh', 'nh', 'tr'] | |
sillabes = [consonant + vowel for consonant in consonants for vowel in vowels] |