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
#!/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 | |
""" | |
AES-256 CBC-MODE File encrypting tool | |
:author: rinzler | |
:date: 2018-01-27 | |
:version: 1.0 | |
:license: GPL | |
usage: aes-util [encrypt|decrypt] [input file] (output file) | |
""" |
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
# Sistema | |
- sudo yum install python35.x86_64 | |
- sudo yum install mod24_wsgi-python35.x86_64 | |
- sudo yum install git.x86_64 | |
# Python | |
- curl -L https://bootstrap.pypa.io/get-pip.py > get-pip.py | |
- sudo python3.5 get-pip.py | |
- sudo rm get-pip.py | |
- sudo python3.5 -m pip install virtualenv |
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
""" | |
WSGI config for YourDjangoApp project. | |
It exposes the WSGI callable as a module-level variable named ``application``. | |
For more information on this file, see | |
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ | |
""" | |
import os |
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
#rewrite module | |
LoadModule rewrite_module /etc/httpd/modules/mod_rewrite.so | |
# wsgi module | |
LoadModule wsgi_module /etc/httpd/modules/mod_wsgi.so | |
# now configure it | |
# Pass header Authorization into your Django App | |
WSGIPAssAuthorization On | |
WSGIPythonPath /path/to/lib/python/site-packages/ |
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
import os | |
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) | |
BASE_DIR = os.path.dirname(os.path.abspath(__file__)) | |
DATABASES = { | |
'default': { | |
'ENGINE': "driver", | |
'NAME': "name", | |
'HOST': "host", |
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 | |
include '../vendor/autoload.php'; | |
$classLoader = new \Doctrine\Common\ClassLoader('Entities', __DIR__); | |
$classLoader->register(); | |
$classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__); | |
$classLoader->register(); | |
// config | |
$config = new \Doctrine\ORM\Configuration(); |
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
import glob, os, sys, getopt, shutil | |
class Compiler(): | |
targetPath = None | |
compiledPath = None | |
def __init__(self, argv): | |
if self.input(argv) == True: | |
self.compile() |
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
/** | |
* | |
* main.js | |
* simple mail sender nodejs api | |
* requires express, body-parser, nodemailer | |
*/ | |
var server = httpServer(); | |
server.listen(8085); |