308 reputation
415
bio website penguincoder.com
location United States
age
visits member for 2 years, 8 months
seen 2 days ago

You want to know a bit about me?? Run the following code; or not.

from random import shuffle

alphabet="abcdefghijklmnopqrstuvwxyz+!@#$%^&*"
key="&frs^!yo+j*xduieqbgntzvwha%$#mck@lp"

class cipherText:

    @staticmethod
    def encode(key,plaintext):

        randarray=range(0,len(key))
        shuffle(randarray)

        dic={}

        for i in range(0,len(key)):
            dic[key[i]]=alphabet[i]


        ciphertext=""

        for l in plaintext:
            if l in dic.values():
                l=dic[l]
            ciphertext+=l


        return ciphertext,key

    @staticmethod   
    def decode(key,ciphertext,alphabet):
        dic={}
        for i in range(0,len(alphabet)):
            dic[alphabet[i]]=key[i]

        plaintext=""


        for l in ciphertext:
            if l in dic.keys():
                l=dic[l]
            plaintext+=l

        return plaintext


if __name__=="__main__":
    users = {}
    for i in range(1,9999999):
        users["user%s"%(i)] = "I am a programmer. I like to code.... just .. like.. everyone one HERE etc etc"


        if i == 1209423:
            print cipherText.decode(key,"Tyod od duz$%hwpcb&hx. Ewpcghtp xyh yzd z *chbo&p ypcp, "\
            "&o%p&g '&hwpd' uh $hmp ztm uypcpbhcp *nuuots dn$y z duzup#ptu ot z 'roh' od cpz&&g nttpddp$zcgf "\
            "Ppcdhtz&&g, I'# thu z scpzu *chscz##pc rnu I ptjhg z shhm $yz&&ptsp ztm I &hwp &pzctots tpx #puyhmd "\
            "xyo&p *chscz##ots. I z# z dp&b uznsyu Pguyht, PHP, ztm Cii *chscz##pc, z&uyhnsy #hdu hb #g $hmots "\
            "$yh*d &op ot PHP xpr mpwp&h*#ptu.Suo&& ot #g &pzctots duzsp, ztm z&xzgd xo&&ots uh &pzct #hcp. I &hwp "\
            "uyp Pguyhto$ xzg hb $hmots ztm z# yh*ots uh rp$h#p #hcp *chbo$optu ot dn$y #puyhmh&hsg uychnsy *cz$uo$p "\
            "ztm &pzctots ht Suz$% Owpcb&hx.Mhdu hb z&&, I z# z GNU/Lotnl mopyzcm, z Pptsnot xouy z *zddoht ztm *pt$yptu "\
            "bhc *chscz##ots.",alphabet)

            break #The mold. Send an email to know more, or if to just correct my coding.

Sep
24
awarded  Autobiographer
Aug
8
awarded  Notable Question
Jul
14
comment FreePBX server (cent OS base) locks up with no errors or kernel panics
Crash dumps really are enabled. cat /proc/cmdline - ro root=UUID=37df6fc6-9cd6-4078-864a-94735e5f9e27 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=129M@0M KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet acpi=off apm=off softlockup_panic=1 hung_task_panic=1 console=tty0 console=ttyS0,9600n8, and service kdump status - Kdump is operational and cat /sys/kernel/kexec_crash_loaded - 1. If/when I force a panic via SYSRQ + C, kdump does what is expected
Jul
14
comment FreePBX server (cent OS base) locks up with no errors or kernel panics
@MichaelHampton They where installed prior to my taking over this network. Up till the past week they've been working and the consensus has been 'don't fix what's not broken'. 7 out of 10 servers work with this config.
Jul
14
asked FreePBX server (cent OS base) locks up with no errors or kernel panics
Jul
2
awarded  Curious
Jun
26
awarded  Notable Question
May
28
awarded  Popular Question
Mar
4
awarded  Popular Question
Mar
2
awarded  Notable Question
Feb
21
awarded  Yearling
Nov
7
comment How to store data on a machine whose power gets cut at random
Non-constructive comment incoming: I'd say you must be working for the US Military (or other affiliated 'company') but your profile states you're in Dublin.
Oct
28
awarded  Self-Learner
Oct
8
awarded  Popular Question
Sep
10
accepted Windows Integrated authentication with member groups
Sep
5
awarded  Commentator
Sep
5
comment Windows Integrated authentication with member groups
Good answer, thanks for the reply. Could you elaborate a bit further on how you got the utility AD user to process the search/member groups of the 'just-logged-in-user' ? In my recent tests, with attempting to use the utility account the ldap_search only returns the utility accounts groups/attributes, regardless of username to search for.
Sep
5
asked Windows Integrated authentication with member groups
Jul
31
awarded  Quorum
Jun
20
awarded  Revival