<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
#! /bin/sh | |
set -e | |
# This script originates from http://www.debian.org/mirror/anonftpsync | |
# CVS: cvs.debian.org:/cvs/webwml - webwml/english/mirror/anonftpsync | |
# Version: $Id: anonftpsync,v 1.43 2008-06-15 18:16:04 spaillar Exp $ | |
# Note: You MUST have rsync 2.6.4 or newer, which is available in sarge | |
# and all newer Debian releases, or at http://rsync.samba.org/ |
exports.createHandler = function (method) { | |
return new Handler(method); | |
} | |
Handler = function(method) { | |
this.process = function(req, res) { | |
params = null; | |
return method.apply(this, [req, res, params]); | |
} | |
} |
var http = require("http"), | |
util = require("util") | |
http.createServer(function(req, rsp){ | |
var regex = /^\/(v1|v2)/g | |
var matches = req.url.match(regex) | |
if((matches && matches[0] === "/v1") || (req.headers["x-api-version"] === "v1")) | |
var port = 8001 |
#!/bin/sh | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
var BASE64_MARKER = ';base64,'; | |
function convertDataURIToBinary(dataURI) { | |
var base64Index = dataURI.indexOf(BASE64_MARKER) + BASE64_MARKER.length; | |
var base64 = dataURI.substring(base64Index); | |
var raw = window.atob(base64); | |
var rawLength = raw.length; | |
var array = new Uint8Array(new ArrayBuffer(rawLength)); | |
for(i = 0; i < rawLength; i++) { |
var net = require("net"); | |
process.on("uncaughtException", function(error) { | |
console.error(error); | |
}); | |
if (process.argv.length != 5) { | |
console.log("usage: %s <localport> <remotehost> <remoteport>", process.argv[1]); | |
process.exit(); | |
} |
#!/bin/bash | |
if [ "$UID" != "0" ] | |
then | |
echo "You have to be root" >&2 | |
exit 1 | |
fi | |
CHROOT=$1 |
sudo apt-get install ssl-cert | |
sudo make-ssl-cert generate-default-snakeoil | |
sudo usermod --append --groups ssl-cert yyuu | |
ls -l /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/ssl/private/ssl-cert-snakeoil.key |
diff --git a/linker/linker_environ.cpp b/linker/linker_environ.cpp | |
index edc659a..4a6e4a0 100644 | |
--- a/linker/linker_environ.cpp | |
+++ b/linker/linker_environ.cpp | |
@@ -42,20 +42,6 @@ bool get_AT_SECURE() { | |
return _AT_SECURE_value; | |
} | |
-static void __init_AT_SECURE(KernelArgumentBlock& args) { | |
- // Check auxv for AT_SECURE first to see if program is setuid, setgid, |