Skip to content

Instantly share code, notes, and snippets.

View felipe-prenholato's full-sized avatar

Felipe Prenholato felipe-prenholato

View GitHub Profile
felipe@felipe-G51JX:~/projects/github_projects_2/clones/python-amazon-mws$ git checkout -b dev -t origin/dev
Branch dev set up to track remote branch dev from origin.
Switched to a new branch 'dev'
felipe@felipe-G51JX:~/projects/github_projects_2/clones/python-amazon-mws$ git st
# On branch dev
nothing to commit (working directory clean)
felipe@felipe-G51JX:~/projects/github_projects_2/clones/python-amazon-mws$ touch test
felipe@felipe-G51JX:~/projects/github_projects_2/clones/python-amazon-mws$ git add test
felipe@felipe-G51JX:~/projects/github_projects_2/clones/python-ama
@felipe-prenholato
felipe-prenholato / test_ouput
Created March 21, 2012 00:40
Tests with models.
(github_projects_2)felipe@felipe-G51JX:~/projects/github_projects_2/clones/django-object-config/sample_project$ m test object_config --failfast --noinput
Creating test database for alias 'default'...
E
======================================================================
ERROR: test_option_create_many (object_config.tests.OptionsTest)
Test many items creation
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/felipe/projects/github_projects_2/clones/django-object-config/sample_project/object_config/tests.py", line 27, in setUp
self.model = MyModel.objects.create(name='test 1')
felipe@felipe-G51JX:~/projects/p1/portal$ . ~/projects/p1/bin/activate
felipe@felipe-G51JX:~/projects/p1/portal$ pwd
/home/felipe/projects/p1/portal
felipe@felipe-G51JX:~/projects/p1/portal$ pwd > ../lib/python2.7/site-packages/portal.pth
felipe@felipe-G51JX:~/projects/p1/portal$ cat ../lib/python2.7/site-packages/portal.pth
/home/felipe/projects/p1/portal
felipe@felipe-G51JX:~/projects/p1/portal$ ln -sv . portal
`portal' -> `.'
(p1)felipe@felipe-G51JX:~/projects/p1/portal$ ./manage.py shell
${HOME}/.cache/
${HOME}/.cache/telepathy/
${HOME}/.cache/wocky/
${HOME}/.cache/wocky/caps/
${HOME}/.config/indicators/
${HOME}/.config/indicators/messages/
${HOME}/.config/indicators/messages/applications-blacklist/
${HOME}/.{cache,config}/dconf/user
${HOME}/.local/share/telepathy/
${HOME}/.local/share/TpLogger/
~$ ./sum_hours.py tracking.txt
08/02/2012 21:00 23:59 -> 2:59:00 hours
09/02/2012 00:00 00:40 -> 0:40:00 hours
Group hours: 3:39:00
09/02/2012 21:00 23:59 -> 2:59:00 hours
09/02/2012 00:00 01:40 -> 1:40:00 hours
Group hours: 4:39:00
09/02/2012 22:30 23:59 -> 1:29:00 hours
@felipe-prenholato
felipe-prenholato / tests
Created January 31, 2012 18:35
Tests uuid generation and search DICT vs LIST
###################### DICT ############################################
(p1)felipe@PLAPSTMD142:~/projects/p1/portal$ time python ~/uuid_tests_dict.py
50000 (50000)
0:00:06.289915 from last step
0:00:06.289915 until now
100000 (100000)
0:00:08.337636 from last step
0:00:14.627551 until now
150000 (150000)
0:00:10.559169 from last step
<table style="width: 900px">
<thead>
<tr>
<th style="width: 65%">Serviços prestados</th>
<th style="width: 35%">Próximas parcelas</th>
</tr>
</thead>
<tbody>
<tr>
<td>
File "/home/felipe/projects/p1/local/lib/python2.7/site-packages/raven/handlers/logging.py", line 51, in emit
return self._emit(record)
File "/home/felipe/projects/p1/local/lib/python2.7/site-packages/raven/contrib/django/handlers.py", line 31, in _emit
return super(SentryHandler, self)._emit(record, request=request)
File "/home/felipe/projects/p1/local/lib/python2.7/site-packages/raven/handlers/logging.py", line 87, in _emit
date=date, **kwargs)
File "/home/felipe/projects/p1/local/lib/python2.7/site-packages/raven/contrib/django/__init__.py", line 92, in capture
result = super(DjangoClient, self).capture(event_type, **kwargs)
File "/home/felipe/projects/p1/local/lib/python2.7/site-packages/raven/base.py", line 236, in capture
self.send(**data)
# connect susseful with wpa2 personal + aes
Dec 12 00:44:38 DD-WRT daemon.info hostapd: ath0: STA 1c:4b:d6:78:bb:39 IEEE 802.11: authenticated
Dec 12 00:44:38 DD-WRT daemon.info hostapd: ath0: STA 1c:4b:d6:78:bb:39 IEEE 802.11: associated (aid 1)
Dec 12 00:44:38 DD-WRT daemon.info hostapd: ath0: STA 1c:4b:d6:78:bb:39 RADIUS: starting accounting session 4EE54E72-00000000
Dec 12 00:44:38 DD-WRT daemon.info hostapd: ath0: STA 1c:4b:d6:78:bb:39 WPA: pairwise key handshake completed (RSN)
Dec 12 00:45:13 DD-WRT daemon.info hostapd: ath0: STA 1c:4b:d6:78:bb:39 IEEE 802.11: authenticated
Dec 12 00:45:13 DD-WRT daemon.info hostapd: ath0: STA 1c:4b:d6:78:bb:39 IEEE 802.11: associated (aid 1)
Dec 12 00:45:14 DD-WRT daemon.info hostapd: ath0: STA 1c:4b:d6:78:bb:39 RADIUS: starting accounting session 4EE54E72-00000001
Dec 12 00:45:14 DD-WRT daemon.info hostapd: ath0: STA 1c:4b:d6:78:bb:39 WPA: pairwise key handshake completed (RSN)
Dec 12 00:46:24 DD-WRT daemon.info hostapd: ath0: STA 74:f0:6d:10:d1:3a IEEE 802.11: authe
The settings on wireless security is to use TKIP, all the rest is default.
# asus g51jx notebook running ubuntu
Dec 12 00:26:56 DD-WRT daemon.info hostapd: ath0: STA 1c:4b:d6:78:bb:39 IEEE 802.11: authenticated
Dec 12 00:26:56 DD-WRT daemon.info hostapd: ath0: STA 1c:4b:d6:78:bb:39 IEEE 802.11: Station tried to use TKIP with HT association
Dec 12 00:26:58 DD-WRT daemon.info hostapd: ath0: STA 1c:4b:d6:78:bb:39 IEEE 802.11: authenticated
Dec 12 00:26:58 DD-WRT daemon.info hostapd: ath0: STA 1c:4b:d6:78:bb:39 IEEE 802.11: Station tried to use TKIP with HT association
Dec 12 00:27:00 DD-WRT daemon.info hostapd: ath0: STA 1c:4b:d6:78:bb:39 IEEE 802.11: authenticated
Dec 12 00:27:00 DD-WRT daemon.info hostapd: ath0: STA 1c:4b:d6:78:bb:39 IEEE 802.11: Station tried to use TKIP with HT association
Dec 12 00:27:01 DD-WRT daemon.info hostapd: ath0: STA 1c:4b:d6:78:bb:39 IEEE 802.11: authenticated