SSH into Root
$ ssh [email protected]
Change Root Password
# 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, |
(function(undefined){ | |
var _requirejs = document.createElement('script'); | |
_requirejs.src = "http://requirejs.org/docs/release/2.1.5/minified/require.js"; | |
_requirejs.type ="text/javascript"; | |
document.head.appendChild(_requirejs); | |
setTimeout(function(){ | |
require('http://code.jquery.com/jquery-1.9.1.min.js'.split(";")); | |
require('http://underscorejs.org/underscore-min.js'.split(";"),function(){ | |
require('http://backbonejs.org/backbone-min.js'.split(";")) | |
}); |
# Have you ever had to sleep() in Capybara-WebKit to wait for AJAX and/or CSS animations? | |
describe 'Modal' do | |
should 'display login errors' do | |
visit root_path | |
click_link 'My HomeMarks' | |
within '#login_area' do | |
fill_in 'email', with: '[email protected]' | |
fill_in 'password', with: 'test' |
elastic: | |
image: elasticsearch | |
haproxy: | |
image: haproxy | |
volumes: | |
- ${PWD}:/usr/local/etc/haproxy | |
links: | |
- elastic | |
ports: |