js/src/jit-test/tests/ion/bug715460.js
js/src/jit-test/tests/ion/bug900437.js
js/src/jit-test/tests/ion/divmodself.js
js/src/jit/MIR.cpp
js/src/jit/shared/CodeGenerator-x86-shared.cpp
js/src/jit/shared/CodeGenerator-x86-shared.h
js/src/jit/shared/LIR-x86-shared.h
js/src/jit/shared/Lowering-x86-shared.cpp
js/src/jit/x64/LOpcodes-x64.h
js/src/jit/x86/LOpcodes-x86.h
#!/usr/bin/env node
// sloth server
// 20150220
// Server flat files from current directory with caching disabled
// all files are served with a delay
// usage
// node sloth\ server.js <port> <delay in ms>
// e.g.
// node sloth\ server.js 1111 5000
// will run on port 1111 and delay each response by at least 5 seconds
//
"use strict";
var fs = require('fs');
var http = require('http');
var url = require('url');
var baseDirectory = __dirname; // or whatever base directory you want
var port = 9000;
var delay = 2000;
var portarg = process.argv.slice(2);
if (portarg) {
port = parseInt(portarg,10);
}
var delayarg = process.argv.slice(3);
if (delayarg) {
delay = parseInt(delayarg,10);
}
console.log('sloth server is starting from ' + __dirname + ' on port ' + port + ' all request will take a minimum of ' + delay + 'ms');
http.createServer(function (request, response) {
var requestUrl = url.parse(request.url);
var fsPath = baseDirectory+requestUrl.pathname;
console.log('Attempting to serve ' + fsPath);
fs.exists(fsPath, function(exists) {
if(exists) {
response.writeHead(200, { 'Cache-Control': 'no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0'});
fs.readFile(fsPath, function (e,r) {
setTimeout(function() {
response.end(r);
}, delay);
});
} else {
response.writeHead(404);
response.end(fsPath + ' does not exist');
}
})
}).listen(port);
ROUTER=http://192.168.1.1
curl --header "SOAPAction:urn:NETGEAR-ROUTER:service:LANConfigSecurity:1#GetInfo" --data "''=''" $ROUTER
curl --header "SOAPAction:urn:NETGEAR-ROUTER:service:WLANConfiguration:1#GetInfo" --data "''=''" $ROUTER
curl --header "SOAPAction:urn:NETGEAR-ROUTER:service:WLANConfiguration:1#GetWPASecurityKeys" --data "''=''" $ROUTER
curl --header "SOAPAction:urn:NETGEAR-ROUTER:service:DeviceInfo:1#GetInfo" --data "''=''" $ROUTER
curl --header "SOAPAction:urn:NETGEAR-ROUTER:service:DeviceInfo:1#GetAttachDevice" --data "''=''" $ROUTER
#!/bin/bash
# takes a file prefix and a folder and adds a random number to all the mp3's that match
prefix=$1
if [ -z $prefix ]; then
echo "need to supply a prefix"
exit
fi
target=$2
if [ -z $target ]; then
echo "need to supply a target folder (including the trailing slash)"
exit
fi
pushd $target
for fname in $prefix*.mp3
do
mv $fname ${RANDOM}_${fname}
done
popd
#!/bin/bash
#podcast randomiser
#20150213
TARGET=$1
if [ -z $TARGET ]; then
TARGET=/tmp/podcasts
fi
echo "Targeting $TARGET"
function next() {
# loop though each name and get oldest file
NAMES=$1
COUNTER=$2
unset TEMP
for element in $(seq 0 $((${#NAMES[@]} - 1)))
do
echo "Looking for pattern ${NAMES[$element]}_*.mp3"
FOUND=$(find $TARGET -name "${NAMES[$element]}_*.mp3" | sort -n | head -n 1)
echo "Found matching $FOUND"
TEMP=("${TEMP[@]}" $FOUND)
done
WINNER=${TEMP[$RANDOM % ${#TEMP[@]} ]}
echo "Winner of this round is $WINNER"
# move the WINNER to its numbered filename and set extension
PAD=$(printf "%05d" $COUNTER)
TEMPFN=$(echo $WINNER | sed -re "s/(.*)\/([^/]+\.mp3)/\1\/"$PAD"_\2/" | sed -re "s/\.mp3$/\.tmp/")
mv $WINNER $TEMPFN
}
NAMES=( $(find $TARGET -iname "*.mp3" -printf "%f\n" | egrep -o "^[^_]+" | sort -u) )
FILES=( $(find $TARGET -iname "*.mp3" ) )
for COUNTER in $(seq 0 $((${#FILES[@]} - 1))); do
next $NAMES $COUNTER
echo "========= count at $COUNTER"
done
echo "moving all .tmp files back to mp3"
for fn in $TARGET/*.tmp
do
mv $fn $TARGET/$(basename $fn .tmp).mp3
done
email
root
flog archives
Disclaimer:
This page is by me for me, if you are not me then please be aware of the following
I am not responsible for anything that works or does not work including files and pages made available at www.jumpstation.co.uk
I am also not responsible for any information(or what you or others do with it) available at www.jumpstation.co.uk
In fact I'm not responsible for anything ever, so there!