was making nasty sneaky misbehaviour
parent
f13be7b276
commit
b9076d6cd1
2
12345.sh
2
12345.sh
|
@ -73,6 +73,8 @@ while true; do
|
|||
## RANDOM PORT SWAPPINESS AVOIDING COLLISION
|
||||
fi
|
||||
|
||||
[ ${PORT} -eq 12345 ] && PORT=$((PORT+1)) ## AVOID _12345.sh SWARM SUBMAP PORT
|
||||
|
||||
## CHECK PORT IS FREE & KILL OLD ONE
|
||||
pidportinuse=$(ps axf --sort=+utime | grep -w "nc -l -p ${PORT}" | grep -v -E 'color=auto|grep' | awk '{gsub(/^ +| +$/,"")} {print $0}' | tail -n 1 | cut -d " " -f 1)
|
||||
[[ $pidportinuse ]] && kill -9 $pidportinuse && echo "$(date) KILLING LOST $pidportinuse"
|
||||
|
|
|
@ -149,7 +149,7 @@ if [[ ! ${TIDDLER} ]]; then
|
|||
echo "No FILE -- TRYING TO RESTORE CACHE FROM TW --"
|
||||
tiddlywiki --load ${INDEX} \
|
||||
--output ~/.zen/game/players/${PLAYER}/G1CopierYoutube \
|
||||
--render '.' "'$YID.TW.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' "${ZFILE}" \
|
||||
--render '.' "$YID.TW.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' "${ZFILE}" \
|
||||
&& rm "${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/${ZFILE}.json" && ln -s "${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/$YID.TW.json" "${HOME}/.zen/game/players/${PLAYER}/G1CopierYoutube/${ZFILE}.json"
|
||||
continue
|
||||
fi
|
||||
|
|
|
@ -23,6 +23,7 @@ G1PUB=$4
|
|||
|
||||
PASS=$(echo "${RANDOM}${RANDOM}${RANDOM}${RANDOM}" | tail -c-7)
|
||||
UPASS=$(date '+%Y%m') # YYYYMM
|
||||
DPASS=$(date '+%Y%m%d') # YYYYMMDD
|
||||
PPASS=$(cat ~/.zen/game/players/.current/.pass 2>/dev/null)
|
||||
|
||||
############################################################ G1Voeu.sh use
|
||||
|
|
|
@ -117,6 +117,16 @@ a {
|
|||
<header>
|
||||
<h1><a href="http://astroport.localhost:1234"><span>♥Box</span> Ğ1Station </a></h1><br>
|
||||
</header>
|
||||
<form method='get' action='http://127.0.0.1:33101' target='aframe'>
|
||||
<input type='hidden' name='montant' value='0' >
|
||||
<label for='type'>Type :</label><select name='type'>
|
||||
<option value=''>G1BILLET+ ( x 6 )</option>
|
||||
<option value='jeu' selected>G1PASS</option>
|
||||
<option value='xastro'>G1PASS+TW</option>
|
||||
<option value='@astroport'>G1PASS+@</option>
|
||||
</select><input type='hidden' name='dice' value='6' >
|
||||
<button type='submit'>Lancer Fabrication</button>
|
||||
</form>
|
||||
<h3>Oubliez la crise !</h3>
|
||||
<h2>Utilisez la Monnaie Libre.</h2>
|
||||
<h3>Explorez le Monde en confiance...</h3>
|
||||
|
@ -128,7 +138,7 @@ a {
|
|||
<video id="preview" style="transform: scaleX(-1);width: 240px;height: 240px;" autoplay="autoplay" class="active"></video>
|
||||
|
||||
<h1><div id="countdown">___</div></h1>
|
||||
|
||||
<input type="hidden" id="PASS" value="PASS"/>
|
||||
<p><input type="text" id="g1pub" value="DsEx1pS33vzYZg4MroyBV9hCw98j1gtHEhwiZ5tK7ech"/></p>
|
||||
<p><b>G1PUB</b> destinataire</p>
|
||||
|
||||
|
@ -193,12 +203,25 @@ a {
|
|||
if (content.startsWith('~~~~~')) {
|
||||
// GET APPNAME
|
||||
var appname = document.querySelector('input[name="appname"]:checked').value;
|
||||
// GET PASS THAT DECODE PGP
|
||||
var pass = prompt("Saisir PASS:");
|
||||
|
||||
// GET PASS TO DECODE PGP
|
||||
var oldpass = document.getElementById("PASS").value;
|
||||
if ( oldpass == 'PASS') {
|
||||
var pass = prompt("Saisir PASS:");
|
||||
} else {
|
||||
var pass = oldpass;
|
||||
}
|
||||
|
||||
// PREVIOUS G1PUB SCAN
|
||||
var g1pub = document.getElementById("g1pub").value;
|
||||
|
||||
// MEMORIZE
|
||||
if ( appname == 'pay') {
|
||||
document.getElementById("PASS").value = pass;
|
||||
} else {
|
||||
document.getElementById("PASS").value = "PASS";
|
||||
}
|
||||
|
||||
// APPNAME : DATA COLLECT & ARRANGE
|
||||
if ( appname == 'pay') {
|
||||
var amount = prompt("MONTANT (Ğ1) ?");
|
||||
|
|
Loading…
Reference in New Issue