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
| 6635???? xor ax,0x???? | |
| 34?? xor al,0x?? | |
| 35???????? xor eax,0x???????? | |
| 3235???????? xor dh,[dword 0x????????] | |
| 3335???????? xor esi,[dword 0x????????] | |
| 67?? xchg eax,eax | |
| 6A?? push byte +0x?? | |
| 6668???? push word 0x???? | |
| 6768???????? push dword 0x???????? |
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
| scriptencoding utf-8 | |
| " To install nvim on ubuntu: | |
| " sudo apt-get install software-properties-common | |
| " sudo add-apt-repository ppa:neovim-ppa/unstable | |
| " sudo apt-get update | |
| " sudo apt-get install neovim | |
| " sudo apt-get install python-dev python-pip python3-dev python3-pip | |
| " sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60 | |
| " sudo update-alternatives --config vi |
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
| require 'ecdsa' | |
| require 'securerandom' | |
| GROUP = ECDSA::Group::Nistp256 | |
| def get_key() | |
| private_key = 1 + SecureRandom.random_number(GROUP.order - 1) | |
| public_key = GROUP.generator.multiply_by_scalar(private_key) | |
| return private_key, public_key | |
| end |
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 http = require('http'); | |
| var url = require('url'); | |
| var moment = require('moment'); | |
| var port = Number(process.argv[2]); | |
| var server = http.createServer(function(request, response) { | |
| var request = url.parse(request.url, true); | |
| var date = moment(request.query['iso']) |
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 http = require('http'); | |
| var map = require('through2-map'); | |
| var port = Number(process.argv[2]); | |
| var server = http.createServer(function(request, response) { | |
| response.writeHead(200, { 'Content-type': 'text/plain' }); | |
| request.pipe(map(function(chunk) { | |
| return chunk.toString().toUpperCase(); |
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 http = require('http'); | |
| var map = require('through2-map'); | |
| var port = Number(process.argv[2]); | |
| var server = http.createServer(function(request, response) { | |
| request.pipe(response); | |
| }); | |
| server.listen(port); |
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
| fs = require('fs'); | |
| http = require('http'); | |
| var port = Number(process.argv[2]); | |
| var filename = process.argv[3]; | |
| var server = http.createServer(function(request, response) { | |
| file = fs.createReadStream(filename) | |
| file.pipe(response); | |
| }); |
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
| net = require('net'); | |
| moment = require('moment'); | |
| function getDate() { | |
| return moment().format("YYYY-MM-DD HH:mm"); | |
| } | |
| var port = Number(process.argv[2]); | |
| var server = net.createServer(function(socket) { |
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
| require 'httparty' | |
| require 'pp' | |
| params = [] | |
| # 200 locks it up completely, needs to be killed w/ 'kill -9' | |
| # 500 fails with "stack overflow" | |
| 0.upto(500) do | |
| params << [] | |
| end |
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
| require 'httparty' | |
| require 'pp' | |
| params = [] | |
| # 200 locks it up completely, needs to be killed w/ 'kill -9' | |
| # 500 fails with "stack overflow" | |
| 0.upto(500) do | |
| params << { | |
| :a => [], |