This file contains hidden or 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
var q, p = ['Username', 'Password', 'URL', 'Name'], m = LPProxy.getAllModelItems(), o = []; | |
var passes = [] | |
for(var i in m){ | |
var entry = {}; | |
for(var j in p){ | |
var varValue = m[i]['get' + p[j]](); | |
var varName = p[j].toLowerCase(); | |
if(varName == "name"){ | |
if(varValue.match(/ \(/g)){ | |
var replaced = varValue.replace(/ \(.*/g, ""); |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am bernardotorres on github. | |
* I am torresb (https://keybase.io/torresb) on keybase. | |
* I have a public key whose fingerprint is F1DE D17B E913 41DE 2749 BBF7 1EB8 E455 22BE 5999 | |
To claim this, I am signing this object: |
This file contains hidden or 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
from xml.etree import cElementTree | |
with open('teste.xml') as arquivo: | |
xml_content = arquivo.read() | |
content = cElementTree.fromstring(xml_content) | |
namespaces = { | |
'wiki':'http://www.mediawiki.org/xml/export-0.10/' | |
} |
This file contains hidden or 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
#!/bin/bash | |
OPENSSL_VERSION="1.0.1g" | |
curl -O http://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz | |
tar -xvzf openssl-$OPENSSL_VERSION.tar.gz | |
mv openssl-$OPENSSL_VERSION openssl_i386 | |
tar -xvzf openssl-$OPENSSL_VERSION.tar.gz | |
mv openssl-$OPENSSL_VERSION openssl_x86_64 | |
cd openssl_i386 |