Skip to main content

Primary links

  • Home
  • AI
  • Kubernetes
  • Incus
  • Ansible
  • Terraform
  • OpenStack
  • Virtualization
  • Linux
  • SmartHome
  • HowTo

Misc

  • Linux
  • Hardware
  • Programming
  • Databases
  • Multimedia
  • Windows

Cloud

  • OpenStack
  • cloud-config
  • nextcloud

Virtualization

  • Virtualization
  • Incus
  • Docker
  • KVM
  • Kubernetes
  • LXC
  • LXD
  • QEMU
  • VMware
  • VirtualBox
  • multipass
  • podman
  • vagrant
  • XEN

Network

  • DNS
  • Firewall
  • Linux
  • OpenvSwitch
  • SSL
  • VLAN
  • VPN
  • iPXE
  • namespaces
  • nmcli
  • tcpdump

Storage

  • CEPH
  • DRBD
  • LVM
  • S3
  • ZFS
  • btrfs

Automation / CI/CD

  • Install
  • Ansible
  • GitLab
  • LLM
  • Preseed
  • Puppet
  • Terraform
  • Ubuntu autoinstall

Monitoring / Visualisation

  • Grafana
  • Icinga
  • Prometheus
  • Monitoring
  • ELK
  • mermaid

wlyc - Yamaha Receiver Webcontrol

GitHub repository
https://github.com/panticz/wlyc

Demo
http://dl.panticz.de/wlyc/wlyc3900.html

[embed_url: https://raw.githubusercontent.com/panticz/wlyc/master/wlyc]

Links
http://your.recier.ip/YamahaRemoteControl/UnitDesc.xml

lyc - Linux Yamaha receiver control (over serial / RS232 interface)

Yamaha RX-V3800 and some older models like DSP-AX1 are great AV-Receiver, but unfortunately they have no control / web interface to manage it from outside. With a USB-Serial adapter connected to the reciver RS-232 interface, a computer or router and lyc you can control the reciver. In addition, a web interface can be created with wlyc to provide a web access to all network devices like PC, smartphone or tablet.

GitHub repository
https://github.com/panticz/lyc

Download binary
http://dl.panticz.de/lyc/i386/lyc - i386 compiled
http://dl.panticz.de/lyc/ar9132/lyc - Atheros AR9132 (TP-LINK TL-WR1043ND / TL-WDR4300 router)

HowTo compile and run
1. download lyc.c and Makefile
2. compile with: make
3. set up USB Serial adapter http://www.panticz.de/USB-Serial-adapter
4. run command:

./lyc input dvd
./lyc volume up

Run on OpenWrt router
1. download sources
2. comile with
make mips
4. copy lyc to OpenWRT router:

scp lyc root@OPENWRT_IP:/root/lyc

5. login to root@YOUR_OPENWRT_IP
6. download wlyc (OpenWrt wget can not access https, use http redirection)

wget -q http://dl.panticz.de/wlyc/wlyc -O /www/cgi-bin/wlyc
chmod 755 /www/cgi-bin/wlyc

7. Open im broser:
http://OPENWRT_IP/cgi-bin/wlyc
Example: http://ROUTER_IP/cgi-bin/wlyc?p1=input&p2=dvd

cros-compile script for OpenWRT
http://dl.panticz.de/lyc/compile_openwrt_ar9132.sh

http://raw.githubusercontent.com/panticz/lyc/master/lyc.c - lyc source code
<?php
$URL="https://raw.githubusercontent.com/panticz/lyc/master/lyc.c";

echo "<div><pre>";
</pre></div>

$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);

echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

https://raw.githubusercontent.com/panticz/lyc/master/rxvx700.h - Yamaha RS232 codes
<?php
$URL="https://raw.githubusercontent.com/panticz/lyc/master/rxvx700.h";

echo "<div><pre>";
</pre></div>

$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);

echo htmlspecialchars(curl_exec($c));

curl_close($c);

Create Ubuntu preseed net install CD

<?php
$URL="https://raw.githubusercontent.com/panticz/preseed/master/pxe/scripts/create.netinstall.ubuntu.cd.sh";

echo "wget -q $URL -O - | bash -";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

# LINKS

http://manpages.ubuntu.com/manpages/karmic/man7/casper.7.html - casper boot options
https://help.ubuntu.com/6.10/ubuntu/installation-guide/hppa/appendix-preseed.html
https://wiki.ubuntu.com/Installation/LocalNet
http://d-i.alioth.debian.org/svn/debian-installer/installer/doc/devel/partman-auto-recipe.txt

Acronis iPXE boot

chain

initrd tftp://${next-server}/acronis/ramdisk64.dat
chain tftp://${next-server}/acronis/kernel64.dat ramdisk_size=32768 vga=791 root=/dev/ram0 acpi=off quiet

View featured products on top from product listing

<?php
$URL="http://www.panticz.de/sites/default/files/magento/featured/set_featured_product.php";

echo "<div><pre>";
</pre></div>

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $URL);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

echo curl_exec($ch);

curl_close($ch);

echo "";
?>
php -f set_featured_product.php sku1 sku2 sku3

clear magento cache

<?php
$URL="http://www.panticz.de/sites/default/files/magento/featured/update_featured_product.php";

echo "<div><pre>";
</pre></div>

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $URL);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

echo curl_exec($ch);

curl_close($ch);

echo "";
?>
php -f update_featured_product.php

Install Ruby on Rails

apt-get update
apt-get install curl
curl -L https://get.rvm.io | bash -s stable
# source ~/.rvm/scripts/rvm

rvm requirements
rvm install ruby
rvm use ruby --default
rvm rubygems current
gem install rails

# Links

http://wiki.ubuntuusers.de/Ruby
https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm

Ubuntu: temperature monitoring with TEMPer USB sensor / thermometer

lsusb
Bus 005 Device 012: ID 0c45:7401 Microdia

download already compiled version

sudo wget -q http://dl.panticz.de/pcsensor/pcsensor -O /usr/local/bin/pcsensor
sudo chmod a+x /usr/local/bin/pcsensor
sudo watch /usr/local/bin/pcsensor

compile self

# install libs
sudo apt-get install -y libusb-dev libusb-1.0-0 make #libhid-dev
# get source

#wget http://www.isp-sl.com/pcsensor-0.0.1.tgz -O /tmp/pcsensor-0.0.1.tgz
#tar xzf /tmp/pcsensor-0.0.1.tgz -C /tmp
#cd /tmp/pcsensor-0.0.1

mkdir /tmp/pcsensor
wget -q "http://raw.githubusercontent.com/padelt/pcsensor-temper/master/src/pcsensor.c" -O /tmp/pcsensor/pcsensor.c
wget -q "http://raw.githubusercontent.com/padelt/pcsensor-temper/master/src/Makefile" -O /tmp/pcsensor/Makefile
# compile (optional)

cd /tmp/pcsensor/
make

# install
sudo cp ./pcsensor /usr/local/bin/
sudo cp 99-tempsensor.rules /etc/udev/rules.d
# insert

(re)insert TEMPer device

get teperature
pcsensor

create cron script

echo '*/5 * * * * root /usr/local/bin/pcsensor -c >> /var/log/pcsensor.log' | sudo tee /etc/cron.d/pcsensor

#sudo /etc/init.d/cron restart

compile for OpenWrt

export STAGING_DIR=~/develop/OpenWRT/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin
wget -q http://raw.githubusercontent.com/padelt/pcsensor-temper/master/src/pcsensor.c

~/develop/OpenWRT/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc pcsensor.c -o pcsensor

Errror:
pcsensor.c:33:17: fatal error: usb.h: No such file or directory
compilation terminated.

# ?

DEPENDS:=+libusb

Magento: Newsletter subscriber import script

add subscriber
<?php
$URL="http://www.panticz.de/sites/default/files/magento/newsletter/newsletter_import.php";

echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

list all subscribers
<?php
$URL="http://www.panticz.de/sites/default/files/magento/newsletter/newsletter_list_all_subscriber.php";

echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

files

./app/code/core/Mage/Adminhtml/Block/Newsletter/Subscriber/Grid.php
./app/design/frontend/base/default/template/newsletter/subscribe.phtml

Links
http://docs.magentocommerce.com/Mage_Newsletter/Mage_Newsletter_Model_Subscriber.html#setStatus
http://blogs.ifuelinteractive.com/2011/01/04/programmatically-subscribing-a-customer-to-the-newsletter-list/
http://www.magentocommerce.com/boards/viewthread/7626/
http://magento-wordpress.blogspot.de/2012/08/how-to-send-newsletter-manually.html

Magento: Category list

./app/design/frontend/default/default/template/catalog/navigation/category_list.phtml
<?php
$URL="http://www.panticz.de/sites/default/files/magento/category/category_list.phtml";

echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

cms include php template
{{block type="catalog/navigation" name="catalog.leftnav" template="catalog/navigation/category_list.phtml" cat_id=2227}}

CSS
.category_list ul {
height: 120px;
margin-bottom: 15px;
}

.category_list li {
float: left;
width: 250px;
}

Magento: CMS extension

./app/design/frontend/default/default/template/ebook/view.php
<?php
$URL="http://www.panticz.de/sites/default/files/magento/cms/view.php";

echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

./app/add.php
<?php
$URL="http://www.panticz.de/sites/default/files/magento/cms/add.php";

echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

./app/del.php
<?php
$URL="http://www.panticz.de/sites/default/files/magento/cms/del.php";

echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

cms include php template
{{block type='core/template' template='ebook/view.php' filter='ebooks'}}

cms search

./app/design/frontend/default/default/template/cmssearch/result.phtml

Pagination

  • First page
  • Previous page
  • …
  • Page 33
  • Page 34
  • Page 35
  • Page 36
  • Page 37
  • Page 38
  • Page 39
  • Page 40
  • Page 41
  • …
  • Next page
  • Last page
Profiles GitHub StackOverflow LinkedIn Xing
Contact Imprint
© panticz 2026

Cookie-Einstellungen

Diese Website nutzt eingebettete Inhalte von Drittanbietern (z.B. YouTube, SoundCloud). Beim Laden dieser Inhalte werden Daten an die jeweiligen Anbieter übermittelt. Datenverarbeitungserklärung