Skip to content

Instantly share code, notes, and snippets.

🌴
On vacation

lp6m

🌴
On vacation
Block or report user

Report or block lp6m

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jadercorrea
jadercorrea / postgres config.sh
Created May 9, 2016
Postgres install commands for Elementary OS
View postgres config.sh
Postgres
$ sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main' > /etc/apt/sources.list.d/pgdg.list"
$ wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install postgresql-common
$ sudo apt-get install postgresql-9.3 libpq-dev
$ sudo -u postgres createuser username -s
@TonyMooori
TonyMooori / pyserial_demo2.py
Last active Sep 22, 2019
pyserialでシリアルポート一覧を表示し選択させて,読み込むプログラム
View pyserial_demo2.py
import serial
from serial.tools import list_ports
import time
def select_port():
ser = serial.Serial()
ser.baudrate = 19200 # ArduinoのSerial.beginで指定した値
ser.timeout = 0.1 # タイムアウトの時間
ports = list_ports.comports() # ポートデータを取得
You can’t perform that action at this time.