Skip to content

Instantly share code, notes, and snippets.

@g-arjones
g-arjones / socketcan-interface.service
Created February 26, 2021 19:43 — forked from sebastianhaas/socketcan-interface.service
An example systemd unit file to setup a SocketCAN interface on startup
[Unit]
Description=SocketCAN interface can0 with a baudrate of 250000
After=multi-user.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/ip link set can0 type can bitrate 250000 ; /sbin/ifconfig can0 up
ExecReload=/sbin/ifconfig can0 down ; /sbin/ip link set can0 type can bitrate 250000 ; /sbin/ifconfig can0 up
ExecStop=/sbin/ifconfig can0 down

File: /etc/systemd/network/50-vcan.netdev

[NetDev]
Name=vcan0
Kind=vcan

File: /etc/systemd/network/50-vcan.network

[Match]
Name=vcan0
@g-arjones
g-arjones / vs-code-icon-names.json
Created December 6, 2017 13:54 — forked from reyawn/vs-code-icon-names.json
Visual Studio Code icon names for shortcuts
[
"alert",
"arrow-down",
"arrow-left",
"arrow-right",
"arrow-small-down",
"arrow-small-left",
"arrow-small-right",
"arrow-small-up",
"arrow-up",