Often you need to run debugger within docker. It many cases it looks like this:
import pdb; pdb.set_trace()
Or:
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"strconv" | |
) | |
func main() { |
$ cat t.py
from pprint import pprint
from pytheory import Tone, Fretboard, charts_for_fretboard
tones = (
Tone.from_string("F2"),
Tone.from_string("C3"),
Tone.from_string("G3"),
Tone.from_string("D4"),
AK, Alaska | |
AL, Alabama | |
AR, Arkansas | |
AS, American Samoa | |
AZ, Arizona | |
CA, California | |
CO, Colorado | |
CT, Connecticut | |
DC, District of Columbia | |
DE, Delaware |
Instructions tested with a Raspberry Pi 2 with an 8GB memory card. Probably also works fine on a Raspberry Pi 3.
Download the latest Raspbian Jessie Light
image. Earlier versions of Raspbian won't work.
Write it to a memory card using Etcher, put the memory card in the RPi and boot it up.
sudo apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0
sudo apt-get install ffmpeg libav-tools
sudo pip install pyaudio
#!/usr/bin/env bash | |
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/ | |
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c | |
# https://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver | |
# https://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception | |
# https://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal | |
# https://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04 | |
# Versions | |
CHROME_DRIVER_VERSION=`curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE` |
git log --oneline 7de7970..master
OR
git log --oneline 7de7970..4cb34a9
Above command will give all logs between commit A and commit B including commit A and commit B.
Though we're focused more on server setup procedure in this document, I will still give a very brief explanation in laymen terms for ELK. To those who are starting new in this stack, must have already heard of MVC (Model View Controller), so take it like this:
=>
Elasticsearch (for Storage, Indexing & Search)=>
Kibana (for DataViz & G-Man, yeah the one in half life 😏)=>
Logstash (For Logs & Filtering)