Alert PHP
function alertPhp($texto){ echo “<script type=’text/javascript’>alert(‘”.$texto.“‘);</script>”; }
function alertPhp($texto){ echo “<script type=’text/javascript’>alert(‘”.$texto.“‘);</script>”; }
.foo, x:-moz-any-link { } /* FireFox 2 */ .foo, x:-moz-any-link, x:default { } /* FireFox 3 */ html>/**/body .foo, x:-moz-any-link, x:default { } /* Only… Read More »Firefox 3 CSS hack
dpkg-query -W —showformat=‘${Installed-Size} ${Package}\n‘ | sort -n
var myfunc = function(optional) { if (typeof optional == “undefined”) { optional = “default value”; } alert(optional); }
SELECT id,title INTO OUTFILE “c:/result.text” FIELDS TERMINATED BY ‘,’ OPTIONALLY ENCLOSED BY ‘”‘ LINES TERMINATED BY “n” FROM property;
#!/bin/sh append=“”; tail -F /opt/log/audit/audit.log | sed -u -e ‘s/^M//g’ -e ‘/^$/d’ -e ‘s/ *$//g’ -e ‘s/^ *//g’ -e ‘s/ +/ /g’ | while read… Read More »Watch log file and send logs to syslog
Pour supprimer une ligne : dd Pour supprimer 5 lignes : 5dd Pour supprimer toutes les lignes contenant l’occurence “texte” : :g/texte/d Pour supprimer toutes… Read More »Supprimer des lignes dans vim
# Ajouter une route par defaut route add default gw 192.168.0.1 # Afficher les routes route -n # Supprimer une route route del -net 192.168.0.1/24
Note Sencilla, pero util funcion para mostrar u ocultar una capa dentro de una pagina web con javascript. Hay que tener un poco de conocimientos… Read More »Mostrar / Ocultar una capa con JavaSctipt.
Note It needs gawk, sed and grep. arping -c 1 192.168.1.1 | grep “:” | sed “s/\[//g;s/\]//g” |gawk ‘{print $5}’ # 00:AA:BB:CC:DD:EE # Find MACs… Read More »Finding ethernet address (MAC) of an IP address with arping