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
step 1 | |
Install rack-cors | |
into Gemfile define | |
gem 'rack-cors', :require => 'rack/cors' | |
Step 2 | |
into Config.ru add the following lines | |
require 'rack/cors' |
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
config.sequel.schema_dump = false | |
config.app_generators.sequel[:migration] = false | |
--no-migration |
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
05-05 14:18:18.209 2494 2494 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<< | |
05-05 14:18:18.212 2494 2494 D AndroidRuntime: CheckJNI is OFF | |
05-05 14:18:18.231 2494 2494 D ICU : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat | |
05-05 14:18:18.259 2494 2494 E memtrack: Couldn't load memtrack module (No such file or directory) | |
05-05 14:18:18.259 2494 2494 E android.os.Debug: failed to load memtrack module: -2 | |
05-05 14:18:18.261 2494 2494 I Radio-JNI: register_android_hardware_Radio DONE | |
05-05 14:18:18.273 2494 2494 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm | |
05-05 14:18:18.287 607 621 I ActivityManager: Force stopping org.nativescript.maldito appid=10062 user=-1: uninstall pkg | |
05-05 14:18:18.316 607 630 I art : Starting a blocking GC Explicit | |
05-05 14:18:18.338 607 630 I art : Explicit concurrent mark sweep GC freed 23719(1332KB) AllocSpace objects, 3(60KB) LOS objects, 33% free, 6MB/9MB, pause |
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
'use strict'; | |
const express = require('express'); | |
const morgan = require('morgan'); | |
const app = express(); | |
//middlewares | |
const authenticationMiddleware = require('./middleware/authentication'); | |
// resources | |
const usersResource = require('./resources/users'); | |
const postsResource = require('./resources/posts'); |
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
chgrp -R www-data io/ | |
chrgp -R grupo carpeta | |
kill proccess with server port | |
kill -9 $(lsof -i tcp:3000 -t) |
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 GT { | |
constructor () { | |
this.state = {} | |
this.actions = {} | |
this.stateListeners = {} | |
} | |
get register () { | |
return { |
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
Disclaimer: The instructions are the collective efforts from a few places online. | |
Nothing here is my original. But I want to put them together in one place to save people from spending the same time as I did. | |
First off, bundle. | |
================== | |
1. cd to the project directory | |
2. Start the react-native packager if not started | |
3. Download the bundle to the asset folder: | |
curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle" |
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
techteam@CISRV01:~/docker/sbt/warrantxApi$ cat docker-compose.yml | |
version: '3' | |
services: | |
sbt: | |
build: . | |
stdin_open: true | |
tty: true | |
command: bash -c 'sbt start' | |
volumes: | |
- .:/root |
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 filter | |
Budget::Investment | |
.where(mariquito, "valor del status") | |
end | |
def mariquito | |
<<-SQL | |
(SELECT status_id FROM budget_investment_milestones | |
WHERE investment_id = budget_investments.id ORDER BY created_at ASC LIMIT !) = ? | |
SQL |
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
test |
OlderNewer