User:Smay4finger: Unterschied zwischen den Versionen

Aus Attraktor Wiki

Wechseln zu: Navigation, Suche
(Powerline Shell Prompt)
(Powerline Shell Prompt)
Zeile 25: Zeile 25:
  
 
  sudo apt install powerline
 
  sudo apt install powerline
 +
sudo systemctl --user enable powerline-daemon.service
 
  mkdir -p ~/.config/powerline/themes/shell
 
  mkdir -p ~/.config/powerline/themes/shell
 
  cat >~/.config/powerline/themes/shell/smay4finger.json <<EOF
 
  cat >~/.config/powerline/themes/shell/smay4finger.json <<EOF

Version vom 5. März 2018, 21:38 Uhr

About me

76001 318186104966806 1026016756 n.jpg

MAIL: stefan@attraktor.org

XMPP: stefan@makerspace.hamburg

X-Application in full screen on Raspberry Pi / BeagleBone Black/White

/usr/bin/xinit $PROGRAM -- -dpms -s 0 -nocursor

Options -dpms and -s 0 turn off screen saver, option -nocursor hides the mouse cursor.

Thinkpad T560 / T460 mit Linux

Für Stromsparen die folgenden Pakete installieren:

apt install tlp acpi-call-dkms

In /etc/default/tlp die Variablen START_CHARGE_THRESH_BATx und STOP_CHARGE_THRESH_BATx setzen

Powerline Shell Prompt

sudo apt install powerline
sudo systemctl --user enable powerline-daemon.service
mkdir -p ~/.config/powerline/themes/shell
cat >~/.config/powerline/themes/shell/smay4finger.json <<EOF
{
  "segments": {
    "left": [
      {
        "function": "powerline.segments.common.net.hostname",
        "priority": 10
      },
      {
        "function": "powerline.segments.common.env.user",
        "priority": 30
      },
      {
        "function": "powerline.segments.common.env.virtualenv",
        "priority": 50
      },
      {
        "function": "powerline.segments.shell.cwd",
        "priority": 10
      },
      {
        "function": "powerline.segments.common.vcs.branch",
        "args": { "status_colors": true },
        "priority": 40
      },
      {
        "function": "powerline.segments.shell.jobnum",
        "priority": 20
      }
    ]
  }
}
EOF
cat >~/.config/powerline/config.json <<EOF
{
  "common": {
    "term_truecolor": false
  },
  "ext": {
    "ipython": {
      "colorscheme": "default",
      "theme": "in",
      "local_themes": {
        "rewrite": "rewrite",
        "out": "out",
        "in2": "in2"
      }
    },
    "shell": {
      "colorscheme": "default",
      "theme": "smay4finger",
      "local_themes": {
        "continuation": "continuation",
        "select": "select"
      }
    },
    "tmux": {
      "colorscheme": "default",
      "theme": "default"
    }
  }
}
EOF
cat >>~/.bashrc <<EOF
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/share/powerline/bindings/bash/powerline.sh
EOF

Info-Beamer mit systemd

[Unit]
Description=Info-Beamer
After=network.target

[Service]
ExecStart=/usr/local/bin/info-beamer /home/pi/info-beamer/active
Restart=on-failure

[Install]
WantedBy=multi-user.target

SocketCAN

Virtueller Bus:

 sudo modprobe vcan
 sudo ip link add dev vcan0 type vcan
 sudo ip link set up vcan0

Linksammlung

Eagle nach G-Code

  • pcb2gcode
sudo aptitude install build-essential autoconf libtool gerbv libboost-dev libboost-program-options-dev libglibmm-2.4-dev libgtkmm-2.4-dev
git clone git://pcb2gcode.git.sourceforge.net/gitroot/pcb2gcode/pcb2gcode
cd pcb2gcode
autoreconf
./configure
make

Vorsicht, pcb2gcode rechnet alles in Inches!

Script zur Erstellung von GCode aus Eagle-Files media:pcbcam.gz

Das Skript erzeugt aus einem Eagle-Board-File (Endung .brd) mehrere G-Code-Files und Postscript-Files für die Erstellung der Lötstoppmaske. Die erzeugten Dateien sind im Einzelnen:

back.ngc 
Lötseite
front.ngc 
Bestückungsseite
outline.ngc 
Ausfräsung der Platine
drill.ngc 
Bohrungen
back_stop.ps 
Lötstoppmaske Lötseite
front_stop.ps 
Lötstoppmaske Bestückungsseite

Spielen

- Termine als iCal

Alles

Smay4finger/AVR-JTAGICESmay4finger/SunFireX4540Smay4finger/SunFireX4600
Smay4finger/Waffeln