Skip to content

Instantly share code, notes, and snippets.

View nenodias's full-sized avatar

Horácio Dias Baptista Neto nenodias

View GitHub Profile
@nenodias
nenodias / README.md
Last active August 24, 2016 00:12
Git Bash Proxy ITE Authenticate

For user the authenticate. Must run it with source authenticate.sh

Set the RM and password.

Enjoy!!!

@nenodias
nenodias / Unity.txt
Created September 1, 2016 02:55
Link for Unity under Linux
http://forum.unity3d.com/threads/unity-on-linux-release-notes-and-known-issues.350256/
@nenodias
nenodias / sdervidor-proxy.py
Created September 2, 2016 01:22
trabalho de python
#Criar um shell reverso
#-Login
#-Comando para fechar
#-Usar subprocess.Popen para executar comandos e o retornar pelo server socket
#-Ipnut para pedir a senha
@nenodias
nenodias / shellreverso.py
Last active September 3, 2016 13:20
Shell Reverso em Python (Python 2.7 and Python3)
# -*- coding: utf-8 -*-
import socket
import subprocess as sub
import sys, pdb
try:
#Para o Python 2
reload(sys)
sys.setdefaultencoding('utf8')
except Exception:
# *-* coding:utf-8 *-*
import socket
import sys
reload(sys)
sys.setdefaultencoding('utf8')
xinput = None
try:
xinput = raw_input
# *-* coding:utf-8 *-*
import socket
import subprocess
import sys
import os
reload(sys)
sys.setdefaultencoding('utf8')
porta = 2222
@nenodias
nenodias / desafio.py
Last active September 9, 2016 01:27
Desafio
IDX_IP = 0
IDX_DATA_HORA = 3
IDX_METODO = 5
IDX_URL = 6
IDX_STATUS = 8
IDX_TAMANHO = 9
with open('log.txt', 'r') as f:
conteudo = f.read()
@nenodias
nenodias / Vagrantfile
Last active September 9, 2016 19:40
Firebird sh for VagrantFile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Config Github Settings
github_username = "greglamb"
github_repo = "Vagrantfile"
github_branch = "master"
# Server Configuration
@nenodias
nenodias / migrate_alchemy.py
Created September 21, 2016 11:19
SQL Alchemy migrate data from a database to another
from sqlalchemy import create_engine, MetaData,
from sqlalchemy import Column, Integer, String, Table
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
# Engine to the database to query the data from
# (postgresql)
source_engine = create_engine('sqlite:///:memory:', echo=True)
SourceSession = sessionmaker(source_engine)
@nenodias
nenodias / udp_server.py
Last active October 14, 2016 13:47
Using Open Weather API
# -*- coding: utf-8 -*-
import socket
import requests
udp = None
def status_url(url):
return str(requests.get(url).status_code)