SSH into Root
$ ssh [email protected]
Change Root Password
sudo apt-get -y install python-pip git | |
sudo pip install -U platformio | |
platformio -f init --ide clion --board esp12e | |
sudo chmod 777 /dev/tty* | |
platformio serialports list | |
cp ~/.platformio/packages/framework-arduinoespressif/libraries/ArduinoOTA/examples/BasicOTA/BasicOTA.ino src/ | |
# Set upload speed from 115200 to 921600 | |
echo "upload_speed=921600" >> platformio.ini |
SSH into Root
$ ssh [email protected]
Change Root Password
user www-data; | |
worker_processes 1; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
sendfile on; |
# This file should be placed on the directory of ~/blog/config | |
upstream unicorn { | |
server unix:/tmp/unicorn.todo.socket fail_timeout=0; | |
} | |
server { | |
listen 80 default; | |
#server_name example.com; | |
root /home/username/blog/public; |
<?php | |
// identificação do servidor, usuário e senha. | |
$ldap_server = "ldap://nome ou ip do domain controler"; | |
$auth_user = "domínio\usuário"; | |
$auth_pass = "senha"; | |
// identificação da base que será acessada. | |
$base_dn = "Ou=principal, dc=dominio, dc=com, dc=br"; | |
// conexão com o servidor. |
#!/bin/bash | |
# http://magp.ie/2012/07/09/mac-osx-shell-script-to-automate-connecting-to-wifi-network/ | |
AIRPORT="en1"; #may be en0, use networksetup -listallhardwareports to check | |
WIFI_NETWORK_NAME="nomedarede" | |
WIFI_PASSWORD="senhadarede" | |
SCRIPT_PATH="$(pwd)/wifi.sh" | |
if networksetup -getairportnetwork $AIRPORT | grep -i -a $WIFI_NETWORK_NAME ; | |
then | |
PROMPT_COMMAND='echo -ne "\033]0;"WIFI: OK"\007"' |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Testando Servidores</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="author" content="Douglas Resende Camargo"> | |
<link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet"> | |
</head> | |
<body> |