This file contains hidden or 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
version: '3' | |
services: | |
wp: | |
image: wordpress | |
ports: | |
- 9009:80 | |
volumes: | |
- ./config/php.conf.uploads.ini:/usr/local/etc/php/conf.d/uploads.ini | |
- ./wp-app:/var/www/html # Full wordpress project |
This file contains hidden or 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
<!-- home.html --> | |
<!-- Show the chatbot UI --> | |
<ion-header> | |
<ion-navbar> | |
<ion-title>Dialogflow bot</ion-title> | |
</ion-navbar> | |
</ion-header> |
This file contains hidden or 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
// 1) build | |
ionic cordova build --release android | |
// 1.1) generate key (only one time) | |
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 | |
// 2) sign apk | |
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore keys/my-release-key.keystore platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk alias_name | |
// 3) remove old release apk |
This file contains hidden or 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
... | |
// Sentry | |
import { SentryErrorHandler } from './shared/interceptor/error.interceptor'; | |
@NgModule({ | |
..., | |
providers: [ | |
{ provide: ErrorHandler, useClass: SentryErrorHandler }, |
This file contains hidden or 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
import { IonicErrorHandler } from 'ionic-angular'; | |
import Raven from 'raven-js'; | |
import { AppVersion } from '@ionic-native/app-version'; | |
const appVersion = new AppVersion(); | |
appVersion.getVersionNumber().then(version => { | |
console.log('version: ' + version); | |
Raven.config('[YOUR_SENTRY_URL]', { | |
release: version, | |
dataCallback: data => { |
This file contains hidden or 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
sentry-cli releases -o [ORGANIZATION] -p [PROJECT] files [MAJOR.MINOR.PATCH] upload-sourcemaps --url-prefix / www/build |
This file contains hidden or 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
let app = require('express')(); | |
let http = require('http').Server(app); | |
let io = require('socket.io')(http); | |
io.on('connection', (socket) => { | |
socket.on('disconnect', function(){ | |
io.emit('users-changed', {user: socket.nickname, event: 'left'}); | |
}); | |
This file contains hidden or 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
// Connection | |
socket.connect(); | |
// Send an event | |
socket.emit('set-nickname', 'Yuri'); | |
// Waiting for the event 'event-a' | |
socket.on('event-a', data => { | |
console.log(data); | |
}); |
This file contains hidden or 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
let app = require('express')(); | |
let http = require('http').Server(app); | |
let io = require('socket.io')(http); | |
io.on('connection', (socket) => { | |
socket.on('disconnect', function(){ | |
io.emit('users-changed', {user: socket.nickname, event: 'left'}); | |
}); |
This file contains hidden or 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
import { NgModule } from '@angular/core'; | |
import { MyCard } from './MyCard'; | |
@NgModule({ | |
declarations: [MyCard], | |
imports: [IonicPageModule.forChild(MyCard)], | |
exports: [MyCard], | |
providers: [] | |
}) | |
export class MyCardModule {} |