Knoppix ntfs-3g new version 2011.4.12AR.6

szerda, 18 január, 2012
  1. KNOPPIX 6.7.1
  2. boot: knoppix 2
  3. apt-get update
  4. apt-get remove ntfs-3g-ng
  5. aptitude install fuse libfuse2 Accept? N Accept? Y
  6. wget http://mirror.szepe.net/knoppix/ntfs-3g.deb
  7. dpkg -i ntfs-3g.deb
  1. mcedit /etc/default/console-setup UTF-8 Lat2 Terminus 16
  2. setupcon
  3. export LC_ALL=de_DE.utf8
  4. loadkeys hu
  5. bash

Horde 4 / IMP select IMAP server

kedd, 10 január, 2012

In Horde 4 imp there is a preauthenticate hook. It can be used to select IMAP server if horde credentials are the same as IMAP credentials.

public function preauthenticate($userId, $credentials)
{
    //Horde::logMessage('authM: '.$credentials['authMethod'].' id='.$userId, 'ERROR');
    //return true;

    /* no userId specified */
    if (empty($userId)) return true;

    /* list of ALL remote users */
    $remote_users = array('sambhala@tibet.hu' => 'webs');

    /* local user */
    if (!array_key_exists($userId, $remote_users)) return true;

    /* remote user */
    return array('credentials' => array('server' => $remote_users[$userId],
                                        'transparent' => true,
                                        'password' => $GLOBALS['registry']->getAuthCredential('password')
                                  )
    );
}

Import email settings Thunderbird, Outlook

péntek, 30 december, 2011
  • https://addons.mozilla.org/en-US/thunderbird/addon/accountex/ -> .rdf file
  • Oulook Express/Tools/Acounts/Export… -> .iaf  file
  • Outlook 2000/XP/2003/2007/2010 ????

WordPress plugin

péntek, 9 december, 2011
  • security
  1. WP Security Scan
  2. chmod:400 /wp-config.php
    mv /wp-config.php ../chmod:640 /.htaccess
    # licence, readme, config-sample
    <FilesMatch “^(licenc\.txt|license\.txt|olvasdel\.html|readme\.html|wp-config-sample\.php)$”>
    Order allow,deny
    Deny from all
    </FilesMatch>

    chmod:640 /wp-admin/.htaccess
    /wp-admin/.htaccess password?
    # install.php
    <Files install.php>
    Order allow,deny
    Deny from all
    </Files>

    cd wp-contents
    [ -f index.php ] || touch index.php
    cp index.php uploads

    DB table prefix != wp_

    .plugin:Better WP Security
    .plugin:Threat Scan Plugin

  3. Ultimate Security Checker + plugin/Block Bad Queries
  • antispam
  1. Akismet (comment)
  2. PHPEnkoder
  • SEO
  1. robots.txt, favicon.ico
  2. All in one Webmasters
  3. Google XML Sitemaps
  4. Counterize

Drupal multilanguage content + menu

kedd, 22 november, 2011
  1. http://localize.drupal.org/translate/languages/hu
  2. http://drupal.org/project/variable
  3. http://drupal.org/project/i18n
  4. http://drupal.org/project/translation_management
  5. http://drupal.org/node/1010166
    cd sites/all/modules/translation_management
    patch -p0 < translation_management-node-hooks-by-value.patch.txt
  6. Translation Management/Status Check
  7. icl_content/icl_content.check.inc: “i18n_taxonomy” “i18n_block”
  8. enable: Variable translation
  9. http://drupal.org/node/1115426 function i18n_variable_initialize

http://drupal-translation.com/content/setup-multilingual-site

for “usebackq” in batch script

péntek, 4 november, 2011

for /F ["ParsingKeywords"] {%% | %}variable in (filenameset) do command [CommandLineOptions]

for /F ["ParsingKeywords"] {%% | %}variable in (“LiteralString“) do command [CommandLineOptions]

for /F ["ParsingKeywords"] {%% | %}variable in (‘command‘) do command [CommandLineOptions]

 

for /F ["usebackqParsingKeywords"] {%% | %}variable in (filenameset) do command [CommandLineOptions]

for /F ["usebackqParsingKeywords"] {%% | %}variable in (‘LiteralString‘) do command [CommandLineOptions]

for /F ["usebackqParsingKeywords"] {%% | %}variable in (`command`) do command [CommandLineOptions]

Sourceforge direct download batch script

csütörtök, 3 november, 2011

set PROJECT=smartmontools

set URL="http://sourceforge.net/projects/%PROJECT%/files/latest/download"
set UA="Mozilla/5.0 (Windows NT 5.1; rv:7.0) Gecko/20111023 Firefox/7.0"

for /f "tokens=*" %%D in ('wget -qO- --user-agent=%UA% %URL% ^| find "direct-download"') do set DD=%%D
for /f "tokens=2 delims=\" %%D in ('echo "%DD:"=\%"') do set DURL="%%D"

rem demo usage
wget --spider -Sv %DURL%
pause

Google Chrome Frame for Internet Explorer 6/7/8/9

hétfő, 31 október, 2011

msi installer: www.google.com/chromeframe/eula.html?msi=true

msiexec /i GoogleChromeFrameStandaloneEnterprise.msi /l*v log.txt

activate HTML <head>

<meta http-equiv="X-UA-Compatible" content="chrome=1">

 

Knoppix 6.7.1 build-essential

csütörtök, 29 szeptember, 2011

aptitude update
apt-cache policy build-essential
aptitude install build-essential

you will have to reject it’s first attempt and accept a downgrade of some other packages before it will install

mkdir /tmp/root
mount --bind /UNIONFS/ /tmp/root/
chroot /tmp/root
dpkg -i /var/cache/apt/archives/libc6_2.13-21_i386.deb
exit
umount /tmp/root

done.

Firebird SQL default username, password

kedd, 5 július, 2011

user name: SYSDBA
password: masterkey