#include <Arduino.h>
void setup() {
// Begin the Serial at 9600 Baud
Serial.begin(115200);
Serial1.begin(115200);
pinMode(13, OUTPUT);
}
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
#import "macAddress.h" | |
void setup () { | |
byte mac[6]; | |
getUniqueMacAddress(mac); | |
Serial.begin(115200); | |
Serial.print("mac: "); | |
for (uint8_t i = 0; i < sizeof(mac); i++) { |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
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
# https://blog.eq8.eu/til/raspberi-pi-as-kiosk-load-browser-on-startup-fullscreen.html | |
# install midori browser | |
sudo apt install midori | |
# Edit the file ~/.config/lxsession/LXDE-pi/autostart | |
# Add these lines : | |
# Auto run the browser | |
@xset s off | |
@xset -dpms |
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 apt-get update | |
sudo apt-get install vim | |
# Installing rmate for remote editing | |
sudo curl -o /usr/local/bin/rmate https://raw.githubusercontent.com/aurora/rmate/master/rmate | |
sudo chmod +x /usr/local/bin/rmate | |
sudo mv /usr/local/bin/rmate /usr/local/bin/rsubl | |
# A better git log https://coderwall.com/p/euwpig/a-better-git-log | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
# Decomment alias 'll' in /home/pi/.bashrc |
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
-> Edit /etc/rc.local | |
-> put your code before "exit 0" | |
-> Ensure this file is executable : `sudo chmod +x /etc/rc.local` | |
exec 2> /tmp/rc.local.log # send stderr from rc.local to a log file | |
exec 1>&2 # send stdout to the same log file | |
/home/pi/projets/rfid-video-player/scripts/start.sh |
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
Stretch OpenCV 3.3.0... | |
Following the basic build instructions from http://docs.opencv.org/2.4/doc/tutorial ... stall.html | |
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev | |
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev | |
git clone https://github.com/opencv/opencv.git | |
cd opencv | |
mkdir release | |
cd release | |
cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local .. |
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 apt-get purge wolfram-engine | |
sudo apt-get purge libreoffice* | |
sudo apt-get clean | |
sudo apt-get autoremove |
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
chromium --disable-hang-monitor --kiosk --disable-java --disable-restore-session-state --disable-sync --disable-translate http://localhost |
NewerOlder