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 RateLimiter = require('limiter').RateLimiter; | |
var limiters = {}; | |
function getLimiter(accessToken) { | |
let limiter = limiters[accessToken] = limiters[accessToken] || new RateLimiter(10, 'second'); | |
return limiter; | |
} | |
function download(accessToken, src, dst) { |
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/perl | |
print "Content-type: text/plain\r\n\n"; | |
system( "uname -a" ); | |
system( "uptime" ); |
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
#!/bin/bash | |
echo -e "Content-type: text/html\r\n\n" | |
uptime | |
uname -a |
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 | |
system( "uptime" ); | |
system( "uname -a" ); | |
?> |
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
#include <stdio.h> | |
#include <string.h> | |
#define BUF_LEN (1024) | |
void print_command( const char* cmd ) | |
{ | |
char stdout_buf[ BUF_LEN ]; | |
size_t r; | |
FILE* p = popen( cmd, "r" ); |