This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ESP8266-FastLED-IoT-Webserver | |
This document describes the necessary steps from setting up the development environment to uploading the compiled software to the esp8266. | |
ESP32 currently got experimental support. | |
## Dependencies | |
* esp8266 and esp32 libs have to be installed via board manager | |
* alle other libs need to be installed via library manager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>Btn example</h2> | |
<div> | |
<canvas id="canvas" width="300" height="300"></canvas> | |
</div> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ sources.list.d cat ./atlassian-hipchat4.list | |
deb https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client xenial main | |
➜ sources.list.d sudo apt-get update | |
Hit:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease | |
Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [92.2 kB] | |
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [92.2 kB] | |
Hit:5 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease | |
Hit:8 http://dl.google.com/linux/chrome/deb stable Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/postgresql/9.4/main/postgresql.conf | |
#--------------------------------------------------------- | |
# CONNECTIONS AND AUTHENTICATION | |
#--------------------------------------------------------- | |
# - Connection Settings - | |
listen_addresses = '*' # Postgres, pretty please keep your ears open on everything. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Docker | |
wget -qO- https://get.docker.com/ | sh | |
sudo gpasswd -a ${USER} docker | |
# docker-compose | |
sudo sh -c "curl -L https://github.com/docker/compose/releases/download/1.6.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose" | |
sudo chmod +x /usr/local/bin/docker-compose | |
sudo sh -c "curl -L https://raw.githubusercontent.com/docker/compose/1.6.2/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose" | |
#docker-cleanup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ ant git:(master) ant package | |
Buildfile: /home/vsh/code/maui-2/ant/build.xml | |
clean: | |
[echo] Cleaning build | |
[delete] Deleting directory /home/vsh/code/maui-2/build | |
build: | |
[echo] Creating the build directory | |
[mkdir] Created dir: /home/vsh/code/maui-2/build/classes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /pups && git pull && /pups/bin/pups --stdin | |
Already up-to-date. | |
I, [2015-06-25T12:13:26.532815 #36] INFO -- : Loading --stdin | |
I, [2015-06-25T12:13:26.538863 #36] INFO -- : > mkdir -p /shared/postgres_run | |
I, [2015-06-25T12:13:26.541025 #36] INFO -- : | |
I, [2015-06-25T12:13:26.541511 #36] INFO -- : > chown postgres:postgres /shared/postgres_run | |
I, [2015-06-25T12:13:26.543761 #36] INFO -- : | |
I, [2015-06-25T12:13:26.544237 #36] INFO -- : > chmod 775 /shared/postgres_run | |
I, [2015-06-25T12:13:26.546100 #36] INFO -- : | |
I, [2015-06-25T12:13:26.546574 #36] INFO -- : > rm -fr /var/run/postgresql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Say voice="woman">Hello from here</Say> | |
<Record maxLength="20" /> | |
</Response> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ChangeEngagementStartDateType < ActiveRecord::Migration | |
def up | |
change_column :engagements, :start_date, :date | |
end | |
def down | |
change_column :engagements, :start_date, :datetime | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def humanize (value, options = {}) | |
if options.empty? | |
options[:format] = :sentence | |
end | |
values = [] | |
if value.include? '_' | |
values = value.split('_') | |
values.each_index do |index| |
NewerOlder