This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Simple sound playback using ALSA API and libasound. | |
* | |
* Compile: | |
* $ cc -o play sound_playback.c -lasound | |
* | |
* Usage: | |
* $ ./play <sample_rate> <channels> <seconds> < <file> | |
* | |
* Examples: |
Enable i2c RTC using systemd.
A udev rules triggers an I2C systemd service on I2C kernel module adding.
Service then loads I2C driver adding a new I2C device to /sys
Then kernel loads I2C RTC driver and adds an RTC device
It triggers a udev rules that updates hardware clock
- enable I2C in config.txt, adding
device_tree_param=i2c1=on
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ros:indigo-ros-base | |
# install ros tutorials packages | |
RUN apt-get update && apt-get install -y \ | |
ros-indigo-ros-tutorials \ | |
ros-indigo-common-tutorials \ | |
&& rm -rf /var/lib/apt/lists/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://retropie.org.uk/forum/topic/2295/runcommand-warning-if-voltage-temperature-throttling | |
#Flag Bits | |
UNDERVOLTED=0x1 | |
CAPPED=0x2 | |
THROTTLED=0x4 | |
HAS_UNDERVOLTED=0x10000 | |
HAS_CAPPED=0x20000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# Volume notification: Pulseaudio and dunst | |
# inspired by gist.github.com/sebastiencs/5d7227f388d93374cebdf72e783fbd6a | |
icon_path=/usr/share/icons/Adwaita/64x64/status/ | |
notify_id=506 | |
sink_nr=1 # use `pacmd list-sinks` to find out sink_nr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 1 | |
disable_existing_loggers: False | |
formatters: | |
simple: | |
format: "%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(message)s" | |
handlers: | |
console: | |
class: logging.StreamHandler | |
level: DEBUG | |
formatter: simple |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Parameters: | |
CanaryName: | |
Type: String | |
Default: my-canary | |
MaxLength: 21 | |
Resources: | |
CloudWatchSyntheticsRole: | |
Type: AWS::IAM::Role | |
Properties: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -i | |
apt-get install software-properties-common | |
add-apt-repository universe | |
apt-get update | |
apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat | |
#The jetson already has docker installed | |
#curl -fsSL get.docker.com | sh | |
curl -sL "https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh" | bash -s -- -m qemuarm-64 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer