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
# TO BUILD USE BUILD CONTEXT ON ROOT PROJECT PATH, LIKE: | |
# $ docker build -t $IMAGE_NAME ../../. -f Dockerfile | |
# SPECIFY THE DOCKERFILE, ALWAYS. | |
# Don't update the image | |
# https://stackoverflow.com/questions/56232375/use-grpc-on-dotnet-core-runtime-deps2-2-alpine3-9-got-symbol-not-found-error | |
FROM mcr.microsoft.com/dotnet/core/runtime-deps:3.1.0-alpine3.10 AS base | |
WORKDIR /out | |
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.100 AS build |
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
https://elk-docker.readthedocs.io/ | |
*https://github.com/michaloo/elasticsearch | |
docker build -t dockerfile/elasticsearch . | |
docker run -p 9200:9200 -p 9300:9300 dockerfile/elasticsearch | |
docker run -p 9200:9200 -it dockerfile/elasticsearch /bin/bash | |
## | |
docker build -t modadocorpo/docker-elasticsearch:5.1.1 . |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
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
Instale o Oracle VirtualBox | |
http://www.virtualbox.org/wiki/Downloads | |
Instale o Ruby + RubyGems | |
(recomendo usar o RVM https://rvm.io/) | |
Abra o terminal e execute os seguintes comandos: | |
(instalação do Vagrant - http://vagrantup.com/) | |
$ gem install vagrant |
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
(function () { | |
// size the database to 3mb. | |
var dbSize = 3 * 1024 * 1024, | |
myDb = window.openDatabase('myDb', '1.0', 'My Database', dbSize); | |
function runQuery() { | |
return $.Deferred(function (d) { | |
myDb.transaction(function (tx) { | |
tx.executeSql("select ? as Name", ['Juca'], | |
successWrapper(d), failureWrapper(d)); |
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
nohup node server.js & |
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
Had the same issue and found a workaround. This is how it occurred: | |
Had two VMs running, went home for the day | |
Windows updated and restarted during the night | |
Came to work, fired up cygwin and ran vagrant up dev. Saw that vagrant began creating a new box and cancelled. | |
Opened Virtualbox and saw that no VMs where listed. Found the path to "Default Machine Folder", opened it in Windows and saw that my previous VMs still existed on disk | |
Deleted the thrid VM on disk that was accidentally created with "vagrant up" | |
Readded the old VMs to Virtualbox by going to "Machine -> Add..." and adding the VMs from disk manually | |
Ran vagrant status | |
At this point the VMs where still listed as "(not created)". |
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
#install heroku toolbelt | |
$ wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh | |
#login | |
$ heroku login | |
#upload your public key to heroku | |
$ ssh-keygen -t rsa -C "your_email@youremail.com" | |
$ heroku keys:add ~/.ssh/id_rsa.pub |
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
#configuring phantomJS | |
$ cd /usr/local | |
$ sudo git clone git://github.com/ariya/phantomjs.git && cd phantomjs | |
$ sudo ./build.sh | |
sudo ln -s /usr/local/phantomjs/bin/phantomjs /usr/local/bin/phantomjs | |
export PHANTOMJS_BIN=/usr/local/bin/phantomjs | |
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
sudo apt-get install g++ | |
sudo svn checkout http://v8.googlecode.com/svn/trunk/ /usr/local/v8 | |
cd /usr/local/v8 | |
make dependencies | |
make [arch] snapshot=on gdbjit=on liveobjectlist=on debuggersupport=on | |
sudo scons |
NewerOlder