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 | |
player=mpv | |
diag() { | |
local x="=============================================================" | |
echo "$x | |
$1 | |
$x" | |
} |
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 | |
# 2024 @sgnyjohn | |
# conecta bluetooth - ativa equalizador | |
x=$(bluetoothctl devices|grep -vi "No default") | |
if [ "$x" = "" ]; then | |
echo "sem controladores..." | |
exit | |
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
/* | |
openjdk 11 | |
true 0 | |
false 0 | |
true 0 | |
true 0 | |
openjdk17 |
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
//**************************************************** | |
// contador sonegometro,incentivometro | |
function contador(idDs) { | |
var eu = this; | |
var id = idDs; | |
var ds; | |
var doc = domDoc(ds); | |
this.vin = 0; //valor inicio | |
this.din = new Date(2020,0,1,0,0,0); //data valor inicio | |
this.vfi = 000031491940070.0; //valor fim |
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 | |
aq=res.txt | |
echo "" >>$aq | |
teste() { | |
local n=$(basename $1) | |
$1 & | |
local p=$! | |
sleep 3 |
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 | |
drJ=$HOME/prg/java | |
maxArq=10 | |
param="$1" | |
if [ 0$1 -ge 1 ]; then | |
maxArq=$1 | |
echo "maxArq=$maxArq" | |
shift | |
param=$1 |
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 | |
cmd= | |
for i in geany gedit leafpad scite; do | |
cmd=$(which $i) | |
if [ ".$cmd" != "." ]; then | |
break | |
fi | |
done |
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
# Put some miscellaneous rules here | |
# HACK: clear LOCAL_PATH from including last build target before calling | |
# intermedites-dir-for | |
LOCAL_PATH := $(BUILD_SYSTEM) | |
# Pick a reasonable string to use to identify files. | |
ifneq "" "$(filter eng.%,$(BUILD_NUMBER))" | |
# BUILD_NUMBER has a timestamp in it, which means that | |
# it will change every time. Pick a stable value. |
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
<? | |
/******************************************** | |
detect SQL injection php | |
ago/2010 - classe testada | |
********************************************/ | |
class detectSQLinjection { | |
//****************************************** | |
function ok() { | |
return count($this->er)==0; | |
} |