Skip to content

Instantly share code, notes, and snippets.

View jonathanborges's full-sized avatar

Jonathan Borges jonathanborges

  • Brazil, Minas Gerais
View GitHub Profile
#!/bin/sh
GIT_WORK_TREE=/home/application git checkout -f
docker exec -i application_workspace_1 /bin/bash -c 'npm install'
docker exec -i application_workspace_1 /bin/bash -c 'composer install'
docker exec -i application_workspace_1 /bin/bash -c 'typings install'
docker exec -i application_workspace_1 /bin/bash -c 'ng build'
#!/bin/sh
GIT_WORK_TREE=/home/application git checkout -f
cd /home/application && docker-compose up -d --build
docker exec -i application_workspace_1 /bin/bash -c 'composer install'
docker exec -i application_workspace_1 /bin/bash -c 'npm install'
docker exec -i application_workspace_1 /bin/bash -c 'php artisan cache:clear'
docker exec -i application_workspace_1 /bin/bash -c 'php artisan config:cache'
docker exec -i application_workspace_1 /bin/bash -c 'php artisan migrate --force'
docker exec -i application_workspace_1 /bin/bash -c 'php artisan optimize'
// Task parameters
/dir "C:\Program Files\Docker Toolbox"
// Commands
"%ConEmuDrive%\Program Files\Git\bin\sh.exe" --login -i -new_console:C:"C:\Program Files\Docker Toolbox\docker-quickstart-terminal.ico" "C:\Program Files\Docker Toolbox\start.sh"
export default class Bs {
constructor(selector) {
this.selector = selector;
}
tooltip() {
let uid = 0;
document.querySelectorAll(this.selector).forEach(el => {
el.addEventListener('mouseover', ev => {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>TinyMCE Upload Base64Image</title>
<script src="https://cloud.tinymce.com/stable/tinymce.min.js"></script>
<script>
tinymce.init({
selector: 'textarea',
height: 500,
deb http://ubuntu.c3sl.ufpr.br/ubuntu/ xenial main restricted
deb http://ubuntu.c3sl.ufpr.br/ubuntu/ xenial universe
deb-src http://ubuntu.c3sl.ufpr.br/ubuntu/ xenial universe
deb http://ubuntu.c3sl.ufpr.br/ubuntu/ xenial-updates universe
deb-src http://ubuntu.c3sl.ufpr.br/ubuntu/ xenial-updates universe
deb http://ubuntu.c3sl.ufpr.br/ubuntu/ xenial multiverse
deb http://ubuntu.c3sl.ufpr.br/ubuntu/ xenial-updates multiverse
deb http://ubuntu.c3sl.ufpr.br/ubuntu/ xenial-backports main restricted universe multiverse
deb http://ubuntu.c3sl.ufpr.br/ubuntu/ xenial-security main restricted
deb http://ubuntu.c3sl.ufpr.br/ubuntu/ xenial-security universe
const callbackFunc = (name, callback) => {
setTimeout(() => {
return callback(name + '123');
}, 3000);
}
const qCallbackFunc = (name) => {
return new Promise((resolve, reject) => {
callbackFunc(name, (result) => {
console.log(result);
@jonathanborges
jonathanborges / config.toml
Created February 6, 2018 17:03
Gitlab Runner Config
[[runners]]
name = "rdponline-docker"
url = "https://gitlab.com/"
token = "152d782cda979eff7b7f30ee4ce67d"
executor = "docker"
builds_dir = "/apptest/builds"
[runners.docker]
tls_verify = false
image = "node:carbon"
privileged = false
FROM node:carbon
RUN groupadd -r docker && usermod -aG docker node
RUN chown -R node:docker /usr/local/lib/node_modules
RUN chown -R node:docker /usr/local/bin
RUN npm install --quiet -g pm2
WORKDIR /ai/esta
{
"apps": [
{
"name": "server",
"script": "/app/node-server/server.js",
"exec_mode" : "cluster",
"instances" : 3,
"watch": ["./"],
"ignore_watch": ["node_modules", "./websocket.js", ".git"]
},