www

warning: Creating default object from empty value in /data/web/1/000/027/003/273448/htdocs/panticz.de/modules/taxonomy/taxonomy.pages.inc on line 33.

Cascading Style Sheets

# transparent image on mouse over (IE too!)
<style type="text/css">
<!--
.content a:hover img {
	filter:alpha(opacity=75); 
	opacity: 0.75;
}
-->
</style>
 
# LINKS
http://www.mandarindesign.com/opacity.html
 
 
 
#content p {
font-family:Palatino,Georgia,'Times New Roman',serif;
font-size:16px;
line-height:1.5em;
margin:0;
padding:0 0 10px;
}

Add embeded Flash video to your homepage

# download and extract Flowplayer
#wget http://flowplayer.org/releases/flowplayer/flowplayer-3.0.0.zip -P /tmp
wget http://flowplayer.org/releases/flowplayer/flowplayer-3.1.0.zip -P /tmp
unzip /tmp/flowplayer*.zip -d /tmp
 
# install
mkdir -p /var/www/video/player/
cp /tmp/flowplayer/*.swf /var/www/video/player/
cp /tmp/flowplayer/example/flowplayer-3.0.0.min.js /var/www/video/player/
 
# copy your videos to /var/www/video/
 
# add source to page
<script src="/video/player/flowplayer-3.0.3.min.js"></script>
<a href="/video/VIDEO.flv" style="display:block;width:640px;height:360px" id

Drupal

Drupal
API reference - Drupal 6.0 API

Re-enable comment in on existing pages
UPDATE node SET comment = 2 WHERE type IN ('page', 'geshinode')

e-commerce suite
http://drupal.org/project/ubercart

Best Drupal modules
http://drupal.org/project/google_plusone - Google Plus One +1
http://drupal.org/project/xmlsitemap - XML sitemap
http://drupal.org/project/page_title - Page Title

HowTo update modules
install:
cumulus
download http://ftp.drupal.org/files/projects/cumulus-6.x-1.3.tar.gz
extract
upload to /modules/
download cumulus.js (JS script needed by Cumulus, save under modules/cumulus)
upload to /modules/cumulus
configure:
admin/build/block/configure/cumulus/
Highlight color of cumulus: 000000

Drupal redirect after logout
A simpler solution is just to add the query string ?destination=MY-PATH to your logout link.

WP-Cumulus (3D Tag viewer)
http://wordpress.org/extend/plugins/wp-cumulus/
http://drupal.org/project/cumulus - Cumulus allows you to display your site's tags using Flash that rotates them beautifully in 3D
http://drupal.org/project/tagadelic - Tagadelic is a small module that generates a page with weighted tags. (needed by Cumulus)

View a block only on start page

404 redirection in drupal with all blocks
YOUR_SERVER/admin/settings/error-reporting
Default 404 (not found) page: Home
http://drupal.org/project/blocks404

Links
http://drupal.org/node/15365 - Clean URLs
/admin/reports/status - Status report

Settings file
sites/default/settings.php

enable default drupal statistics
/admin/reports/settings

Reset Drupal 6 admin password
UPDATE users SET pass = MD5('terceS') WHERE uid=1;

Reset nodes read count
UPDATE node_counter SET totalcount = '0'

Cisco 7960

Reboot phone
"*" and "6" and "settings"

telnet
password: Cisco

Directory

External Directory
External Directory

USER_NAME
USER_PHONE

cat /var/lib/tftpboot/OS79XX.TXT
P003-08-2-00

cat /var/lib/tftpboot/SIP0007EB26EEBB.cnf
phone_label: "pako"
proxy1_address: "asterisk"
proxy1_port: 5060
line1_name: "pako"

Instal RoundCube (Webmail)

# set domU parameter
[ -z $DOMAIN_NAME ] && DOMAIN_NAME=webmail
[ -z $DOMAIN_MAC ] && DOMAIN_MAC=00:11:22:7d:7e:7f
[ -z $DOMAIN_RAM ] && DOMAIN_RAM=256Mb
[ -z $DOMAIN_HDD ] && DOMAIN_HDD=2Gb
 
# create domU
http://www.panticz.de/Xen-domU-ubuntu-jaunty
 
# add to autostart (optional)
ln -s /etc/xen/${DOMAIN_NAME} /etc/xen/auto
 
# start domU
xm create -c ${DOMAIN_NAME}
 
# install webmail
http://www.panticz.de/install_roundcube

Instal Drupal (CMS)

# create database
mysql -u root -p 
create database drupal;
CREATE USER drupalo IDENTIFIED BY 'drupalp';
grant all on drupal.* to 'drupalo'@'%' identified by "drupalp";
commit;
quit;
 
# create installation file on your webserver
cat <<EOF> /var/www/drupal-install.php
<?php
# dowload
system("/usr/local/bin/wget http://ftp.drupal.org/files/projects/drupal-6.19.tar.gz");
 
# extract
system("/usr/bin/tar xzf ./drupal-*.tar.gz");
 
# move drupal files to current dir
system("/bin/mv drupal-*/* .");
system("/bin/mv drupal-*/.* .");
 
# configure
system("/bin/cp ./sites/default/defa

Apache webserver

# list loaded modules
/usr/sbin/apache2ctl -M

# list avaiable modules
apachectl -t -D DUMP_MODULES

# check config
apache2ctl -S

a2dismod status - disable module

apachectl -V

# enable default SSL site
a2ensite default-ssl

# disable default SSL site
a2dissite default-ssl

Enable mod_rewrite module
a2enmod rewrite
/etc/init.d/apache2 force-reload

# /etc/apache2/sites-available/default f
change"AllowOverride None" to "AllowOverride All"
or the directory in which you will use the mod_rewrite module

Tomcat configuration

<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/install.tomcat.sh";
echo "wget $URL -O - | bash -";
echo "<div class=\"geshifilter\"><pre class=\"bash geshifilter-bash\">";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "</pre></div>";
?>
 
 
# start
export JAVA_HOME=/usr/lib/jvm/jdk1.6.0
export JAVA_OPTS="$JAVA_OPTS -Xmx256m"
/usr/local/apache-tomcat-5.5.20/bin/startup.sh
 
# deploy
/opt/SDK2/bin/asadmin deploy /tmp/Intranet.war
 
# change defau
Syndicate content