Status: Em Construção
Forked from Luiz Picolo's Pen Tabuleiro de Xadrez.
A Pen by Gean Pereira on CodePen.
| #include <SerialDisplay.h> | |
| #include <ArduinoJson.h> | |
| #include <ESP8266WiFi.h> | |
| #include <WiFiClientSecure.h> | |
| char ssid[] = "NOME_DA_REDE"; // sua rede wifi | |
| char password[] = "SENHA_DA_REDE"; // sua senha | |
| char channelId[] = "ID_DO_CANAL"; // ID do seu canal | |
| char apiKey[] = "CHAVE_DA_API"; // chave da API | |
| SerialDisplay displays(14, 12, 10); // (data D5, clock D6, qtde de modulos) | |
| WiFiClientSecure client; |
| Just insert on .gitconfig: | |
| nrb = "!f() { git push -u origin $(git rev-parse --abbrev-ref HEAD):$1; }; f" | |
| And then, when on a local branch and want to push to a new remote branch called, say, 'test': | |
| $ git nbr test | |
| Total 0 (delta 0), reused 0 (delta 0) | |
| To <your remote here> | |
| * [new branch] work -> test |
| #!/usr/bin/env ruby | |
| require "openssl" | |
| require "time" | |
| begin | |
| require "origami" | |
| rescue LoadError | |
| abort "origami not installed: gem install origami" | |
| end |
| // quite untested, adapted from BigstickCarpet's gist, attempt to make it simpler to use | |
| function openIndexedDB (fileindex) { | |
| // This works on all devices/browsers, and uses IndexedDBShim as a final fallback | |
| var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB; | |
| var openDB = indexedDB.open("MyDatabase", 1); | |
| openDB.onupgradeneeded = function() { | |
| var db = {} |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Copyright (c) 2015 Erico Vieira Porto | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: |
Status: Em Construção
Forked from Luiz Picolo's Pen Tabuleiro de Xadrez.
A Pen by Gean Pereira on CodePen.
| # Configure Timezone | |
| dpkg-reconfigure tzdata | |
| # Configure locale | |
| locale-gen pt_BR pt_BR.UTF-8 | |
| locale-gen en_US en_US.UTF-8 | |
| # Instalar Postgree e trocar senha | |
| sudo apt-get install postgresql postgresql-contrib | |
| psql -c "ALTER USER postgres WITH PASSWORD 'nova_senha'" -d template1 |
#Goal Deploy your Rails App super easily with Dokku on Digital Ocean cheap cheap!
##Notes
Procfile with the command to start up your application serverLogentries (not in this guide)AppSignal or New Relic (not in this guide)| #!/bin/bash | |
| # install zsh | |
| rm -fr .oh-my-zsh/ | |
| curl -L http://install.ohmyz.sh > install.sh | |
| sh install.sh | |
| # add final .zshrc | |
| echo 'source ~/.bash_aliases' >> ~/.zshrc | |
| echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> >> ~/.zshrc |
| #!/usr/bin/env ruby | |
| require 'digest/md5' | |
| require "addressable/uri" | |
| # this is based on gravatar image API | |
| # https://en.gravatar.com/site/implement/images/ | |
| # options : | |
| # size : <integer> size of image | |
| # default: <string> url of image if email not found or: | |
| # * 404 |