This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const dig = (obj, target) => { | |
| if (target in obj) { | |
| return obj[target]; | |
| } | |
| for (const key in obj) { | |
| if (typeof obj[key] === 'object') { | |
| const result = dig(obj[key], target); | |
| if (result !== undefined) { | |
| return result; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(function(){var e=function(t,n,r,i,s){var o=[3733404,4506827,5202101,4590748,5194411,5912014,2727723,5515739,2647566,3949509];var i=i||0,u=0,n=n||[],r=r||0,s=s||0;var a={'a':97,'b':98,'c':99,'d':100,'e':101,'f':102,'g':103,'h':104,'i':105,'j':106,'k':107,'l':108,'m':109,'n':110,'o':111,'p':112,'q':113,'r':114,'s':115,'t':116,'u':117,'v':118,'w':119,'x':120,'y':121,'z':122,'A':65,'B':66,'C':67,'D':68,'E':69,'F':70,'G':71,'H':72,'I':73,'J':74,'K':75,'L':76,'M':77,'N':78,'O':79,'P':80,'Q':81,'R':82,'S':83,'T':84,'U':85,'V':86,'W':87,'X':88,'Y':89,'Z':90,'0':48,'1':49,'2':50,'3':51,'4':52,'5':53,'6':54,'7':55,'8':56,'9':57,'\/':47,':':58,'?':63,'=':61,'-':45,'_':95,'&':38,'$':36,'!':33,'.':46};if(!s||s==0){t=o[0]+t}for(var f=0;f<t.length;f++){var l=function(e,t){return a[e[t]]?a[e[t]]:e.charCodeAt(t)}(t,f);if(!l*1)l=3;var c=l*(o[i]+l*o[u%o.length]);n[r]=(n[r]?n[r]+c:c)+s+u;var p=c%(50*1);if(n[p]){var d=n[r];n[r]=n[p];n[p]=d}u+=c;r=r==50?0:r+1;i=i==o.length-1?0:i+1}if(s==237){var v='';for(var f=0;f<n.le |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if(window.location.href.indexOf('http://mpbnfl.fantasypros.com/bookmarklet/') != 0){pfsport='nfl';function install_ra(){var c=document;var a=c.getElementById('researchassistantjs');if(!a){var d=c.createElement('script');d.setAttribute('id','researchassistantjs');if(c.body.childNodes.length>0){c.body.insertBefore(d,c.body.childNodes[0])}else{c.body.appendChild(d)}var b=new Date();d.setAttribute('src','https://cdn.fantasypros.com/bookmarklet/research_assistant_secure.js?'+b.getYear()+'-'+b.getDate()+'-'+b.getMonth())}else{if(playercardGenerator&&pfsport){playercardGenerator.setDefaultSport(pfsport);playercardGenerator.refreshData()}}}install_ra();}else{document.getElementById('cell1').className='AlertDiv';javascript:void(0);} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| chrome.tabs.create({url:"https://gist.github.com/DMcP89/b88d1bdcb6f478be13b4d7a990ac71c5/edit"}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function parse_git_dirty { | |
| [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit, working directory clean" ]] && echo "*" | |
| } | |
| function parse_git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" | |
| } | |
| export PS1='\[\]\w\[\e[0m\] $(__git_ps1 "[\[\e[0;32m\]%s\[\e[0m\]\[\e[1;33m\]$(parse_git_dirty)\[\e[0m\]]")\$ \[\e[0m\]' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import nmap | |
| target_mac = '<Enter MAC Adress>' | |
| nm = nmap.PortScanner() | |
| nm.scan(hosts='192.168.1.0/24', arguments='-sP') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $dbhost = "mongodb://localhost:27017"; | |
| $dbConnection = new MongoClient($dbhost); | |
| $db = $dbConnection->test; | |
| $collection = $db->testData; | |
| $document = array("name" => "PHP Insert"); | |
| $collection->insert($document); | |
| $results = $collection->findOne(array("_id" => $document['_id'])); | |
| $resultValue = $results['name']; | |
| print "Query Results: $resultValue \n"; |