Skip to content

Instantly share code, notes, and snippets.

View Blackening999's full-sized avatar
🎯
Focusing

Volodymyr Katanskyi Blackening999

🎯
Focusing
View GitHub Profile
@Blackening999
Blackening999 / testaddr2
Created November 10, 2017 03:28
some address
0xbcf1E78e2a64258F9C2BffF1a33F3001978Cd5AC
@Blackening999
Blackening999 / test addr
Created October 25, 2017 16:51
public address
0xDF516d745FF2aAf528A7A9660709bdF43614d7ea
@Blackening999
Blackening999 / environment.js
Created June 20, 2017 11:46
config/environment.js
/* eslint-env node */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'testapp',
environment: environment,
rootURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
@Blackening999
Blackening999 / ember-cli-build.js
Created June 20, 2017 11:45
testapp/ember-cli-build.js
/*jshint node:true*/
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var config = require('./config/environment')(process.env.EMBER_ENV);
var fingerprintConfig = process.env.EMBER_ENV === 'development' ? {enabled: false} : {enabled: true,prepend: config.s3BuildEndpoint};
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
fingerprint: fingerprintConfig
@Blackening999
Blackening999 / deploy.js
Created June 20, 2017 11:44
testapp/config/deploy.js
/* jshint node: true */
var VALID_DEPLOY_TARGETS = [ //update these to match what you call your deployment targets
'production'
];
module.exports = function(deployTarget) {
var ENV = {
build: {}
// include other plugin configuration that applies to all deploy targets here
};
@Blackening999
Blackening999 / package.json
Created June 20, 2017 11:43
/var/www/testapp/package.json
{
"name": "ember-lightning",
"version": "0.2.1",
"description": "Ember lightning hosting for https://github.com/LevelbossMike/ember-deploy",
"main": "index.js",
"scripts": {
"start": "node --harmony index.js",
"test": "mocha --harmony --full-trace test.js"
},
@Blackening999
Blackening999 / index.js
Created June 20, 2017 11:41
/var/www/testapp/index.js
'use strict';
const redis = require('redis'),
co = require('co'),
coRedis = require('co-redis'),
Koa = require('koa'),
config = require('./app.json');
@Blackening999
Blackening999 / app.json
Created June 20, 2017 11:40
/var/www/testapp/app.json
{
"name": "testapp",
"description": "Ember lightning hosting",
"keywords": [
"ember",
"deploy",
"grandma"
],
"env": {
"NODE_ENV": {
@Blackening999
Blackening999 / testapp.conf
Last active June 20, 2017 11:38
/etc/nginx/conf.d/testapp.conf
server {
listen 80;
server_name testapp.com www.testapp.com; #let’s assume you have bare/www domain registered
#SECURE WAY: return 301 https://www.testapp.com$request_uri;#force HTTPS + permanent redirect
}
server {
#SECURE WAY: listen 443 ssl;
#SECURE WAY: ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
#SECURE WAY: ssl_prefer_server_ciphers on;
#SECURE WAY: ssl_session_cache shared:SSL:10m;
@Blackening999
Blackening999 / README.md
Last active November 19, 2015 18:25
Tweets plugin for Imperavi Redactor 2

Tweets plugin for Imperavi Redactor II

Usage:

  • Add plugin's file to your assets folder or in the (bottom of the );
  • Put plugin name to plugins hash when configuring Imperavi Redactor instance:
$('.redactor').redactor({
        focus: true,
        plugins: ['tweets'],
 );