Skip to content

Instantly share code, notes, and snippets.

View Methimpact's full-sized avatar

methimpact Methimpact

View GitHub Profile
@kennethreitz
kennethreitz / pymean.py
Created May 9, 2016 03:06
Some Python I wrote in 2008
# PyMean ?2008, Kenneth Reitz
def main():
mean(GetNumbers())
def GetNumbers():
number_list = []
input_number = False
while input_number != "":
@sandlbn
sandlbn / livirt
Last active October 10, 2021 23:46
How to compile libvirt on ubuntu
sudo apt-get install git build-essential xsltproc libxml-xpath-perl libyajl-dev libdevmapper-dev libpciaccess-dev libnl-dev systemtap-sdt-dev uuid-dev libtool autoconf pkg-config libxml2 libxml2-utils autopoint python-dev libnuma-dev gettext
git clone https://github.com/K1773R/numad.git
cd numad
make
sudo make install
cd ..; cd libvirt
git clone git://libvirt.org/libvirt.git
./autogen.sh
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-qemu=yes --with-dtrace --with-numad --with-storage-rbd --disable-nls
@MrChrisJ
MrChrisJ / 2014-11-7--World-Citizenship-Readme.md
Last active October 5, 2019 00:55
2014-11-7--World-Citizenship-Readme

World Citizenship - Creating Affordable Decentralised Passport Services Using Available Cryptographic Tools

Due to recent press coverage I’d like to remind everyone that this project is an experiment and learning exercise for experts in the field of cryptography. Use at your own risk and read Issues section before trying this yourself.

Proof of Initial Publication

See also:
The Journal
The Live Demo on Youtube
Torrent: magnet:?xt=urn:btih:885783fd23d63ab1b6a634d3bc34e43d7491c5da

@sbiffi
sbiffi / putty.bat
Last active March 22, 2024 13:23
The aim of this vbs script is to launch putty using an URL like ssh://login@host directly from a browser. The .bat is almost the same than .vbs but less robust and just their for older systems.
:: This version is not as powerfull as vbs version, please prefere the other one.
:: It's just there if you need a non-visual basic way to perform this.
:: Restrictions:
:: - Password cannot contain a % or finish with @
:: - Chrome adds a / at the end of the URL, not yet managed
:: The aim of this script is to execute putty with parameters like ssh://login@host
:: Installation:
:: - Launch putty.reg to associate ssh:// and telnet:// to this script
:: - Edit the putty path in parameter below like puttyPath="C:\Program Files (x86)\putty.exe"
@diyism
diyism / gmail filter rules.txt
Last active May 30, 2018 10:55
gmail 过滤规则
Matches: is:spam
Do this: Skip Inbox, Delete it
Matches: from:(@txt.voice.google.com) -{recovery code}
Do this: Forward to [email protected]
Matches: from:([email protected]) subject:("Twitter / diyism")
Do this: Skip Inbox, Mark as read
Matches: DeliveredTo:(trash[.-+] @diyism.com)
anonymous
anonymous / scrypt_password.py
Created September 26, 2013 13:54
An answer to http://stackoverflow.com/questions/13654492/how-to-use-scrypt-to-generate-hash-for-password-and-salt-in-python How to generate and check a password hash with scrypt and python.
import struct
from binascii import b2a_base64 as e64
from binascii import a2b_base64 as d64
import scrypt
import Crypto.Random
random = Crypto.Random.new().read
from passlib.utils import consteq
_PARAMS = struct.Struct("!BBBB")
@securitytube
securitytube / ssid-sniffer-scapy-python.py
Created April 2, 2013 12:49
WLAN SSID Sniffer in Python using Scapy
#!/usr/bin/env python
from scapy.all import *
ap_list = []
def PacketHandler(pkt) :
if pkt.haslayer(Dot11) :
if pkt.type == 0 and pkt.subtype == 8 :
@gregorynicholas
gregorynicholas / .bash_profile
Created January 8, 2013 23:44
autocomplete functionality for python library command line interfaces (CLI): Fabric & Paver.
#!/usr/bin/env bash
. paver_autocomplete
. fabric_autocomplete
@rich20bb
rich20bb / PythonSimpleWebsocket
Created December 2, 2012 20:10
Simple websocket server in Python. Echos back whatever is received. Works with Chome, Firefox 16, IE 10.
import time
import struct
import socket
import hashlib
import base64
import sys
from select import select
import re
import logging
from threading import Thread