apt-get install python-dev apt-get install python-rpi.gpio Script: #!/usr/bin/env python # -*- coding: utf-8 -*- # The wiring for
WeiterlesenUbuntu vi & screen UTF-8
.vimrc set encoding=utf8 screen -DRU mysession
WeiterlesenDrupal upgrade 6 to 7 with drush
create a drush alias in /etc/drush create a file: mysite.aliases.drushrc.php $aliases[‚live‘] = array( ‚uri‘ => ‚mysite.de‘, ‚root‘ => ‚/var/www/mysite/root/‘, );
WeiterlesenDrupal using drush
apt-get install drush change to document root List all modules and themes drush pm-list List only modules drush pm-list –type=Module
WeiterlesenUbuntu measure network speed iperf
Test sudo apt-get install iperf Computer A iperf -s Computer B iperf -c address of Computer A
Weiterlesenavconv scale video with fixed height
avconv -i input.mp4 -c:v libx264 -vf scale=-1:720 -profile:v baseline -crf 23 -c:a libvo_aacenc output.mp4
WeiterlesenUbuntu default Editor
sudo update-alternatives –config editor
WeiterlesenRaspberry Software PWM Pi Blaster
What is PWM? Pulse-width Modulation Go to https://github.com/sarfata/pi-blaster/ and Download. Installing: sudo apt-get install autoconf Then unzip pi-blaster-master.zip and do:
WeiterlesenRaspberry starting applications on X via shell
export DISPLAY=:0 lxtask
Weiterlesen