Skip to content

Instantly share code, notes, and snippets.

View vshvedov's full-sized avatar
💾
1.44MB

Vladyslav Shvedov vshvedov

💾
1.44MB
View GitHub Profile
# 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
@vshvedov
vshvedov / index.html
Created April 14, 2020 21:19 — forked from jcollins-g/index.html
Sunflower
<h2>Btn example</h2>
<div>
<canvas id="canvas" width="300" height="300"></canvas>
</div>
➜ 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
@vshvedov
vshvedov / gist:2af7df3da27e77bc8ad02fad88bf0f8b
Last active April 20, 2016 10:29
Make PG accessible from outside in Debian/Ubuntu
# /etc/postgresql/9.4/main/postgresql.conf
#---------------------------------------------------------
# CONNECTIONS AND AUTHENTICATION
#---------------------------------------------------------
# - Connection Settings -
listen_addresses = '*' # Postgres, pretty please keep your ears open on everything.
@vshvedov
vshvedov / gist:198022cfdfb3d5887a9f07917874d7c6
Last active April 27, 2016 13:31
Docker, docker-compose and docker-cleanup install for Ubuntu/Debian
# 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
➜ 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
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
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="woman">Hello from here</Say>
<Record maxLength="20" />
</Response>
class ChangeEngagementStartDateType < ActiveRecord::Migration
def up
change_column :engagements, :start_date, :date
end
def down
change_column :engagements, :start_date, :datetime
end
end
def humanize (value, options = {})
if options.empty?
options[:format] = :sentence
end
values = []
if value.include? '_'
values = value.split('_')
values.each_index do |index|