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
> oclHashcat64.exe -m 500 example.hash example.dict |
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
░░░░░░░░░░▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄░░░░░░░░░ | |
░░░░░░░░▄▀░░░░░░░░░░░░▄░░░░░░░▀▄░░░░░░░ | |
░░░░░░░░█░░▄░░░░▄░░░░░░░░░░░░░░█░░░░░░░ | |
░░░░░░░░█░░░░░░░░░░░░▄█▄▄░░▄░░░█░▄▄▄░░░ | |
░▄▄▄▄▄░░█░░░░░░▀░░░░▀█░░▀▄░░░░░█▀▀░██░░ | |
░██▄▀██▄█░░░▄░░░░░░░██░░░░▀▀▀▀▀░░░░██░░ | |
░░▀██▄▀██░░░░░░░░▀░██▀░░░░░░░░░░░░░▀██░ | |
░░░░▀████░▀░░░░▄░░░██░░░▄█░░░░▄░▄█░░██░ | |
░░░░░░░▀█░░░░▄░░░░░██░░░░▄░░░▄░░▄░░░██░ | |
░░░░░░░▄█▄░░░░░░░░░░░▀▄░░▀▀▀▀▀▀▀▀░░▄▀░░ |
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
#!/usr/local/bin/python2.7 | |
import urllib2, json | |
def get_coorinates(request): | |
eat_all = Eat.objects.all().values() | |
for eat in eat_all: | |
obj = Eat.objects.filter(id=eat['id'])[0] | |
address = obj.address.replace(" ", "+") | |
url = "".join(["http://maps.googleapis.com/maps/api/geocode/json?address=", address, "&sensor=false"]); |
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
<?php | |
/** | |
* checking the $resource object when event runs | |
*/ | |
switch ($modx->event->name) { | |
case 'OnBeforeDocFormSave': | |
$modx->log(modX::LOG_LEVEL_INFO, print_r($resource)); | |
break; | |
case 'OnDocFormSave': |
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
<? | |
// using model magento\app\code\core\Mage\Core\Model\Email\Template.php | |
public function send_error_email($error = NULL) { | |
$mailTemplate = Mage::getModel('core/email_template'); | |
$mailTemplate->setSenderName('Insert Sender Name'); // use general Mage::getStoreConfig('trans_email/ident_general/name'); | |
$mailTemplate->setSenderEmail('[email protected]'); // use general Mage::getStoreConfig('trans_email/ident_general/email') | |
$mailTemplate->setTemplateSubject('Insert Subject Title'); | |
$mailTemplate->setTemplateText('Insert Body Text'); |
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
<? | |
$write = Mage::getSingleton("core/resource")->getConnection("core_write"); | |
$query = "insert into mage_example (name, email, company, description, status, date) values (:name, :email, :company, :desc, 0, NOW())"; | |
$binds = array( | |
'name' => "name' or 1=1", | |
'email' => "email", | |
'company' => "company", | |
'desc' => "desc", | |
); |
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
Let’s Get Started | |
Our box is freshly hatched, virgin pixels at the prompt. I favor Ubuntu; if you use another version of linux, your commands may vary. Five minutes to go: | |
passwd | |
Change the root password to something long and complex. You won’t need to remember it, just store it somewhere secure - this password will only be needed if you lose the ability to log in over ssh or lose your sudo password. | |
apt-get update | |
apt-get upgrade |
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
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
export PS1="\[\e[32;0m\]\h:\u@\W \$(parse_git_branch)$ \[\e[0m\]" |
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
Prevent framing: | |
Debian/Ubuntu servers /etc/apache2/apache2.conf | |
Header always append X-Frame-Options SAMEORIGIN | |
or | |
nginx: | |
add_header X-Frame-Options SAMEORIGIN; | |
HTTP TRACE: | |
TraceEnable Off |
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
ssh -i keypair.pem [email protected] | |
MC - | |
screen -S minecraft java -Xincgc -Xmx1G -jar minecraft_server.jar |