Docker.app will complain about incompatible processor, so we will use Docker Machine.
Download Docker for Mac (Docker.app). It contains some binaries that are necessary.
brew install virtualbox docker-machine
Produto: {produto} | |
Problema: | |
{O que aconteceu} | |
Linha do tempo e troubleshooting: | |
{data}: |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: myproject | |
name: myproject | |
namespace: default | |
spec: | |
progressDeadlineSeconds: 600 | |
replicas: 1 |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$script = <<-SCRIPT | |
apt update | |
apt -y upgrade | |
apt install -y make gcc bison libssl-dev libelf-dev flex | |
cd /home/vagrant/ && git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git && chown -R vagrant. linux* | |
cd /home/vagrant/linux && yes "" | make olddefconfig && make localmodconfig && make -j16 && sudo make modules_install && sudo make install | |
SCRIPT |
I hereby claim:
To claim this, I am signing this object:
# enable sofware update automatic | |
sudo /usr/bin/defaults write /Library/Preferences/com.apple.commerce AutoUpdate -bool TRUE && | |
sudo /usr/bin/defaults write /Library/Preferences/com.apple.commerce AutoUpdateRestartRequired -bool TRUE && | |
sudo /usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticallyInstallMacOSUpdates -bool TRUE && | |
sudo /usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool TRUE && | |
sudo /usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -bool TRUE && | |
sudo /usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate ConfigDataInstall -bool TRUE && | |
sudo /usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate CriticalUpdateInstall -bool TRUE | |
AutomaticDownload |
#!/usr/bin/python | |
import serial | |
ser = serial.Serial('/dev/ttyUSB1') | |
ser.flushInput() | |
ser.flushOutput() | |
while True: | |
data_raw = ser.readline() | |
print(data_raw.rstrip('\n')) |
#!/usr/bin/python | |
from serial import Serial | |
ser = Serial('/dev/ttyUSB0') | |
print(ser.name) | |
ser.write(b'test\n') | |
print(ser.readline()) | |
ser.close() |