Archivi
-
Disabilitare il controllo “digitally signed driver” su Windows 7 64Bit
Se non riuscite ad installare un programma perché Windows 7 si lamenta che il driver non ha la firma digitale, potete seguire questo iter: Aprite cmd.exe come amministratore Eseguite bcdedit /set loadoptions DDISABLE_INTEGRITY_CHECKS A questo punto rilanciate installazione
22 mar 2009, | Filed under Tips&Tricks -
Script per bannare un ip tramite IpTables
Aggiungere in ~/.bashrc alias banip=’iptables -I INPUT -j DROP -s’ Dopo il logout->login sarà disponibile il commando “banip xxx.xxx.xxx.xxx”
21 mar 2009, | Filed under Ubuntu -
Prevenire attacchi Brute Forse su SSH con IpTables
Eseguire iptables -I INPUT -i eth1 -p tcp -m tcp –dport 22 -m state –state NEW -m recent –set –name DEFAULT –rsource Seguito da iptables -I INPUT -i eth1 -p tcp -m tcp –dport 22 -m state –state NEW -m recent –update –seconds 180 –hitcount 4 –name DEFAULT –rsource -j DROP In questo modo utente [...]
21 mar 2009, | Filed under Ubuntu -
Rewrite multipli con apache.
Da questo post: 1 vote down Here’s a solution which will loop over key/value pairs in your URL: RewriteRule ^cat_ap~([^~]+)~([^~]+)(.*)\.htm$ cat_ap$1?$1=$2 [R,QSA] RewriteRule ^cat_ap(.*)\.htm$ /urban/cat_ap.php [L] It grabs the first pair off the URL, then rewrites it to the exact same URL without that pair, adds the pair to the query string ([QSA]) and starts [...]
21 mar 2009, | Filed under Tips&TricksTags: Apache, mod_rewrite -
Dreamweaver e Heredoc
Ho notato che DreamWeaver non digerisce bene il heredoc, a volte scazzando il parsing del file php (che non veniva modificato all’aggiornamento del template). Sul sito di php.net ho trovato seguente fix: When editing with Dreamweaver, the syntax higlighting will be messed up if you use heredoc syntax. I found that the color syntaxing can [...]
20 mar 2009, | Filed under Coding -
Problemi con login di live messenger su Windows 7 build 7000
Se siete uno dei beta tester che stanno provando Windows 7 ma avete dei problemi con Windows Live Messenger 9 (impossibile effettuare il login. Cod. errore 81000306.), Potete provare questo sistema. 1) Entrate nel prompt come amministratore (tasto destro sul prompt dei commandi, Run as administrator) 2) eseguite seguente riga netsh int tcp set global [...]
18 mar 2009, | Filed under Software -
Cambiare numero incrementale di order Id in magento
La tabella che risponde alla gestione di incremento degli OrderId (ed altri parametri come shipping etc) si trova in “eav_entity_store”. I nomi delle colonne sono abbastanza esplicativi.
17 mar 2009, | Filed under VarieTags: Magento