Skip to content

Instantly share code, notes, and snippets.

View mnl's full-sized avatar

Micke Nimell mnl

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mnl on github.
  • I am mickenimell (https://keybase.io/mickenimell) on keybase.
  • I have a public key whose fingerprint is 3679 68AA C564 4ED1 8A1C DA83 751F C339 AE2F 2E19

To claim this, I am signing this object:

#!/bin/bash
# Puts a SuperGenPass in XA_PRIMARY hashed fom url in XA_PRIMARY or XA_CLIPBOARD
# and a password. xclip gets the url and Zenity gets user input. openssl hashes.
readonly length=15
readonly digest=md5
validHash() {
# Password should be hashed at least 10 times until it begins with
# lowercase and contains both uppercase and number characters.
from tkinter import *
import socket
from threading import Thread
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(("172.20.200.220", 9876))
window = Tk()
def onquit():
quit()
def sendmsg(event):
msg = entryfield.get()
import socket
import select
connections = []
buffer = 1024
port = 9876
servsock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
#servsock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
servsock.bind(("172.20.200.220", port))
servsock.listen(99)
connections.append(servsock)
@mnl
mnl / Java-SQL.java
Last active December 14, 2018 09:37
java,sql
/**
*
*/
package dbTest;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
# Import active directory module for running AD cmdlets
Import-Module activedirectory
#Store the data from ADUsers.csv in the $ADUsers variable
$ADUsers = Import-csv "F:\import.csv"
function Make-Neat {
param($String)
$String.ToLower() | foreach {$_ -replace "[åä]", "a"} | foreach {$_ -replace "[^a-z.]", "o"}
}
@mnl
mnl / annoyalizer.sh
Created September 10, 2019 06:02
S.o.B Annoyalizer 0.1.1
# _____ ____
# / ___/ ____ / __ )
# \__ \ / __ \ / __ |
# ___/ // /_/ / / /_/ /
# /____(_)____(_)_____/
#
# S.o.B Annoyalizer
#
# - För att dagens datorer är alldeles för snabba
@mnl
mnl / config
Created September 13, 2019 16:49
Rofi config (like dmenu)
rofi.combi-modi: window,drun,ssh
rofi.modi: combi,run,window,ssh
rofi.terminal: lxterminal
rofi.show-icons: true
rofi.theme: solarized
rofi.theme: ~/.config/rofi/dmenu.rasi
@mnl
mnl / LargeList.txt
Created October 3, 2019 12:12
Labbfiler
GivenName,Surname,Username,Password,TelephoneNumber,NationalID,Company
Elof,Lundin,Aund1974,ooFe8ceish8,0490-7717469,740607-8852,"Lionel Playworld"
Paulina,Andreasson,Inclow,Rie5ieYei5v,0371-3079458,690925-8722,"Destiny Planners"
Elisa,Lindberg,Parl1983,oV6ociequuj,0528-4204337,831101-8363,"Lindsley's Lumber"
Antonia,Lundin,Sooreaver37,ui4aPhee,0371-6364745,370131-5685,Hechinger
Caspian,Berggren,Primsequiew46,Ve5geiSavah,0563-4799761,460314-5956,"Ideal Garden Maintenance"
Amy,Blomqvist,Altaid,QuaiVadee9Qu,0240-2912300,890103-9704,"Warner Brothers Studio Store"
Vilmer,Gustafsson,Couser1939,roh7AhChoh,0223-6404904,390215-5195,"The Wall"
Adrian,Björklund,Moused,nohrae0Ooc2,0953-9367007,810120-7895,"Boston Sea Party"
Daniel,Berglund,Vionfichis,Oofahgi9ch,0240-7274244,640525-0413,"The Pink Pig Tavern"
@mnl
mnl / BOFH Excuses
Created October 10, 2019 07:36
BOFH Excuses
clock speed
solar flares
electromagnetic radiation from satellite debris
static from nylon underwear
static from plastic slide rules
global warming
poor power conditioning
static buildup
doppler effect
hardware stress fractures