Skip to content

Instantly share code, notes, and snippets.

View rsmahmud's full-sized avatar

Rasel Mahmud rsmahmud

View GitHub Profile
@rsmahmud
rsmahmud / .py
Created May 27, 2018 09:09 — forked from siraajul/.py
Calculator
from tkinter import*
def iCalc(source, side):
storeObj = Frame(source,borderwidth = 1, bd= 4,bg="powder blue")
storeObj.pack(side=side,expand=YES,fill=BOTH)
return storeObj
def button (source, side, text, command=None):
storeObj = Button(source, text=text, command=command)
storeObj.pack(side=side,expand=YES,fill=BOTH)
@rsmahmud
rsmahmud / recursive_ftp_local_remote.py
Created April 27, 2018 09:13 — forked from subhashdasyam/recursive_ftp_local_remote.py
Recursive FTP with Local and remote paths
import sys,os,zipfile,ftplib, configargparse
from os.path import basename
def ftp_login(user,passwd,host,port=21,timeout=30):
try:
ftp = ftplib.FTP()
ftp.connect(host, port, timeout)
ftp.login(user, passwd)
return ftp
except ftplib.all_errors as e:
@rsmahmud
rsmahmud / sclg4.c
Created April 23, 2018 01:23 — forked from aktau/sclg4.c
A simple WinAPI GetAsyncKeyState()-based keylogger, written a very long time ago. I dug it out of the archives because of a Hacker News post (https://news.ycombinator.com/item?id=7607082). For educational purposes only, of course.
/**
* Copyright (c) 2006, Nicolas Hillegeer
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
@rsmahmud
rsmahmud / kernel
Created April 16, 2018 16:49 — forked from willscripted/kernel
Because sometimes in business, your goals are tied to fiscal quarters
Linux - elitist attitude - only considers patche of real-world problems. Marketing bullets or one-off requests, such as pageable kernel memory, have received no consideration
Kernel Development
Introduction
==============
History
-----------
@rsmahmud
rsmahmud / main.py
Created December 10, 2017 04:52
create backgroud process
import os, time, sys, subprocess
if len(sys.argv) == 2:
time.sleep(5)
print 'track end'
if sys.platform == 'darwin':
subprocess.Popen(['say', 'hello'])
else:
print 'main begin'
subprocess.Popen(['python', os.path.realpath(__file__), '0'], close_fds=True)
@rsmahmud
rsmahmud / queue.py
Created October 30, 2017 19:46
Queue structure (Python)
class Node(object):
'''
Singly-linked list node for storing data in
a queue
'''
def __init__(self, data=None):
'''
Initialise a Node with optional data to be stored
'''
self.right = None
@rsmahmud
rsmahmud / reclaimWindows10.ps1
Created January 7, 2017 19:08 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1