SSH into Root
$ ssh [email protected]
Change Root Password
<!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> |
#!/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"' |
<?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. |
# 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; |
user www-data; | |
worker_processes 1; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
sendfile on; |
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 |
Melvanimate is a library for ESP8266 that lets you control your Neopixels over WLAN easily. It supports everything imaginable besides toasting your toast, e.g.,:
//####################################################### | |
//# Trying to combine ArduinoOTA with JoDaNl/esp8266_ws2812_i2s # [ERROR]: No Answer | |
//####################################################### | |
#include <ESP8266WiFi.h> | |
#include <ESP8266mDNS.h> | |
#include <WiFiUdp.h> | |
#include <ArduinoOTA.h> | |
/* | |
Native FullScreen JavaScript API | |
CopyRight: Johndyer, http://johndyer.name/native-fullscreen-javascript-api-plus-jquery-plugin/ | |
------------- | |
Assumes Mozilla naming conventions instead of W3C for now | |
*/ | |
(function() { | |
var | |
fullScreenApi = { | |
supportsFullScreen: false, |