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
| Install bchunk using the following command | |
| sudo aptitude install bchunk | |
| This will complete the installation. | |
| Using bchunk | |
| bchunk syntax |
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
| filepath="/home/testuser/MyRadio.jpg" | |
| myfilehash=$(sha1sum $filepath) | |
| echo "File Sha1 Value is $myfilehash" | |
| myfilehash=$(md5sum $myfilepath) | |
| echo "File MD5 Value is $myfilehash" |
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
| Tar is an archiving utility in Linux. Lets see how can we extract various archived files in Linux using this utility. We will also see the meaning of the options provided with the commands. Type the following commands in terminal (Keyboard short cut: Ctrl+Alt+T in Ubuntu): | |
| Extracting .tar.bz2: | |
| tar xvjf filename.tar.bz2 location | |
| Extracting .tar.gz: | |
| tar xvzf filename.tar.gz location | |
| Where: | |
| x — extract | |
| v — verbose (it will show the extracting files in the terminal) |
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
| <?php | |
| function validateLogin($username,$password){ | |
| jimport( 'joomla.user.authentication'); | |
| $auth = & JAuthentication::getInstance(); | |
| $credentials = array( 'username' => $username, 'password' => $password ); | |
| $options = array(); | |
| $response = $auth->authenticate($credentials, $options); | |
| if ($response->status === JAUTHENTICATE_STATUS_SUCCESS) { | |
| $response->status = true; | |
| $user=JFactory::getUser($username); |
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
| $ git clone http://github.com/resmo/git-ftp.git | |
| $ cd git-ftp | |
| $ git checkout master | |
| $ sudo make install |
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
| var url = "http://example.com/index.htm"; | |
| var filename = url.match(/([^\/]+)(?=\.\w+$)/)[0]; |
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
| <config> | |
| <fields name="params"> | |
| <fieldset name="basic" label="Module Parameters" description="Module settings"> | |
| <field size="10" name="youtube_url" type="text" default="200" label="Youtube Video URL" description="" /> | |
| <field size="10" name="height" type="text" default="315" label="Height" description="" /> | |
| <field size="10" name="width" type="text" default="560" label="Width" description="" /> | |
| </fieldset> | |
| </fields> |
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
| <?php | |
| $app =& JFactory::getApplication(); | |
| if ($app->isAdmin()) { | |
| echo "we are in the administrator"; | |
| } else { | |
| echo "we are in the frontend site"; | |
| } |
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
| Run These Command | |
| fix-splash | |
| rm /root/.kde/cache-root/icon-cache.kcache | |
| rm /root/.kde/cache-root/plasma_theme_Volatile.kcache | |
| rm /root/.kde/cache-bt/icon-cache.kcache | |
| rm /root/.kde/cache-bt/plasma_theme_Volatile.kcache | |
| startx | |
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
| AuthName "Secure Area" | |
| AuthType Basic | |
| AuthUserFile /home/adidac/.htpasswd | |
| require valid-user |