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
| console.log($('.filelist .file-name .ftype:contains(video)').length + ' files to convert'); | |
| var cpt=0; | |
| $('.filelist .file-name .ftype:contains(video)').each(function(){ | |
| var row = $(this).prev(); | |
| var id = row.attr('href').substring(row.attr('href').lastIndexOf('/')+1); | |
| $.post('/v2/files/'+id+'/mp4',function(data){ | |
| console.log(data.status); | |
| if(data.status=="OK") cpt++; | |
| }); | |
| }); |
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
| # IPs | |
| Spain 62.13.255.230 2.20.185.5 | |
| Germany 2.16.6.5 | |
| Australia 1.2.3.4 | |
| USA 65.98.56.219 | |
| UAE 80.190.204.129 | |
| Italy 87.23.255.254 | |
| French 62.129.191.252 | |
| UK 91.151.7.6 | |
| CZ 62.4.96.5 |
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
| import org.apache.commons.beanutils.BeanToPropertyValueTransformer; | |
| import org.apache.commons.collections.CollectionUtils; | |
| Collection<Long> userIds = (Collection<Long>) CollectionUtils.collect(users, new BeanToPropertyValueTransformer("id")); |
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
| var jq = document.createElement('script'); | |
| jq.src = "http://code.jquery.com/jquery-latest.min.js"; | |
| document.getElementsByTagName('head')[0].appendChild(jq); | |
| function tail(){ | |
| $.get(window.location.href+'?'+new Date().getTime(),function(data){ | |
| var $newPre = $('<pre></pre>'); | |
| var logArray = data.split('\n'); | |
| var lineCount = logArray.length; | |
| $newPre.append('Line count='+lineCount+'\n'); | |
| var tail = ""; |
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
| navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || undefined; | |
| navigator.getUserMedia({video: true}, function (stream) { | |
| window.webcamSwiperStream = stream; | |
| var videoElement = document.createElement("video"); | |
| videoElement.autoplay = true; | |
| document.getElementsByTagName("body")[0].appendChild(videoElement); | |
| if (window.URL === undefined) { | |
| window.URL = window.webkitURL; | |
| } | |
| videoElement.src = window.URL.createObjectURL(stream); |
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
| nmap -Pn -sS -F -T4 -O -sV --script "default and safe" --open <host> |
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
| var jq = document.createElement('script'); | |
| jq.src = "http://code.jquery.com/jquery-latest.min.js"; | |
| document.getElementsByTagName('head')[0].appendChild(jq); | |
| $.post('http://10.30.1.43:7101/loyapps/smsnthmobile',{ keyword: "LOYFEIGFR",msisdn: "0041792476880", sessionId: "234234",businessNumber:"9292" },function(data){ | |
| console.log(data); | |
| }); |
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 printJIRADoneIssuesIds(){ | |
| var $doneCol = $($('.ghx-column')[$('.ghx-column').length-1]); | |
| var $issues = $($doneCol.find('.ghx-key-link.js-detailview')); | |
| console.log('Contains '+$issues.length+' done issues'); | |
| var result = ""; | |
| $issues.each(function(i,val){ | |
| result+=$(val).attr('title')+' '; | |
| }); | |
| console.log('Ids:'); | |
| console.log(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
| // to be executed on http://www.feiertagskalender.ch/ | |
| var year = 2019; | |
| var hidepast = 0; // hide past values or not | |
| var type = 3; // 3 = Legally recognized holidays ; 4 = Legally + not recognized holidays | |
| var geos = { | |
| "Aargau": 1, | |
| "Appenzell Innerrhodes": 266, | |
| "Appenzell Ausserrhoden": 245, | |
| "Bern": 369, |
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
| #inspired by http://unix.stackexchange.com/questions/4367/extracting-nested-zip-files | |
| while [ "`find . -type f -name '*.?ar' | wc -l`" -gt 0 ]; do | |
| find -type f -name "*.?ar" \ | |
| -exec mkdir -p '{}.dir' \; \ | |
| -exec unzip -o -d '{}.dir' '{}' \; \ | |
| -exec rm -- '{}' \; | |
| done |
OlderNewer