floating point division in bash
echo «scale=2;2/3» |bc
echo «scale=2;2/3» |bc
http://www.cyberciti.biz/faq/bash-find-out-if-variable-contains-substring/ How do I determine whether a variable called spath=»/srv/www/cyberciti.biz/https» contains a substring called «cyberciti.biz»? You can use the portable BourneShell syntax as follows: case «$var» in *pattern1* ) echo «do something #1»;; *pattern2* ) echo «do something # 2»;; * ) echo «Error…»;; esac Here is a sample code: #!/bin/bash spath=»/srv/www/cyberciti.biz/https» sync_root(){ echo… Leer más »
Tosca – Pelo Negro
Me costo trabajo encontrar los códigos y el manual del control remoto universal k-1028e aquí se los comparto [DESCARGAR MANUAL UNIVERSAL A/C REMOTE ]
For a short time you have to, so that one does not lose its host name, log in your account every month of DynDNS.org. With a simple script and a crontab entry allows you to automate. Log on automatically This script automates the login account of the DynDNS.org. You must enter the user name and password only.… Leer más »
For folks who DO NOT want/allow anyone else to login/register to their website. This .htaccess code will protect your WordPress Login page from Brute Force Login Attacks based on IP address, but keep in mind if you are allowing folks to login to your website then they will not be able to login. This .htaccess… Leer más »
Handel – Suite No. 15 in D Minor for Harpsichord, HWV 447, mvmt. III. Sarabande (Daniel Hope)
Enabling FTP on with Mountain Lion If you have Lion or Mountain Lion, you may mention that FTP option is gone from Sharing options. No worries, FTP server is still there, even if it is a regular installation and not Server one. No enable FTP server, run from Terminal.app sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist… Leer más »
In case of using ssh, Connect : Code: Select all ssh [email protected] Enter password (default «raspberry»), then tty command line appears Code: Select all pi@raspberrypi~: I recommend updating everything before intallation : Update package list: Code: Select all sudo apt-get update Update packages: Code: Select all sudo apt-get upgrade Mount hard drive automatically : Use… Leer más »
https://github.com/ac3killer/AC3-Killer