- Related tutorial: http://raspberrypiguide.de/
- Command Line Cheatsheet: https://gist.github.com/hofmannsven/8392477
Find all available devices arp -a
Locate Raspberry (b8:27:eb) in Network: Pi Finder
| apt-get install xvfb | |
| apt-get install firefox |
| //Writing and reading XML files with Qt - qxmlstreamwriter and qxmlstreamreader supported classes | |
| void MyXMLClass::SaveXMLFile() | |
| { | |
| QString filename = QFileDialog::getSaveFileName(this, | |
| tr("Save Xml"), ".", | |
| tr("Xml files (*.xml)")); | |
| if [[ $BUILD_STATUS == "success" ]] | |
| then | |
| export STATUS="success" | |
| else | |
| export STATUS="failure" | |
| fi | |
| curl "https://api.github.com/repos/justincampbell/my_repo/statuses/$GIT_COMMIT?access_token=abc123" \ | |
| -H "Content-Type: application/json" \ | |
| -X POST \ |
Find all available devices arp -a
Locate Raspberry (b8:27:eb) in Network: Pi Finder
Automated analysis is the main advantage to working with a modern statically typed compiled language like C++. Code analysis tools can inform us when we have implemented an operator overload with a non-canonical form, when we should have made a method const, or when the scope of a variable can be reduced.
| /** | |
| * A simple sample of Boost Log | |
| */ | |
| #pragma warning(push) | |
| #pragma warning(disable:4819) | |
| # include <boost/shared_ptr.hpp> | |
| # include <boost/date_time/posix_time/posix_time_types.hpp> | |
| # include <boost/log/trivial.hpp> | |
| # include <boost/log/core.hpp> |
| Download Google Drive files with WGET | |
| Example Google Drive download link: | |
| https://docs.google.com/open?id=[ID] | |
| To download the file with WGET you need to use this link: | |
| https://googledrive.com/host/[ID] | |
| Example WGET command: |
| #!/usr/bin/env bash | |
| # | |
| # gh-dl-release! It works! | |
| # | |
| # This script downloads an asset from latest or specific Github release of a | |
| # private repo. Feel free to extract more of the variables into command line | |
| # parameters. | |
| # | |
| # PREREQUISITES | |
| # |
| ''' | |
| This is an example of how to send data to Slack webhooks in Python with the | |
| requests module. | |
| Detailed documentation of Slack Incoming Webhooks: | |
| https://api.slack.com/incoming-webhooks | |
| ''' | |
| import json | |
| import requests |