Skip to content

Instantly share code, notes, and snippets.

View license2e's full-sized avatar
🎯
Focusing

Ilya Shindyapin license2e

🎯
Focusing
View GitHub Profile
@license2e
license2e / MigrateWordpress.sql
Created May 31, 2017 08:20 — forked from markrickert/MigrateWordpress.sql
Wordpress Migration SQL Script
#Update the crucial options
UPDATE wp_options
SET option_value = 'http://newdomain.com'
WHERE option_name in ('siteurl', 'home');
#Make sure search engines can access the deployed site
UPDATE wp_options
SET option_value = 1
WHERE option_name = 'blog_public';
#Set the GUIDs to have the correct domain
UPDATE wp_posts
@license2e
license2e / Dockerfile
Last active July 11, 2018 11:37
Manual Meteor to Now.sh deployment
#### Use nodejs v6.3.1
#
FROM nodesource/xenial:6.3.1
#### Update apt-get and install supervisor
#
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update
RUN apt-get install -y supervisor yarn
@license2e
license2e / serverless.yaml
Last active July 3, 2016 23:59 — forked from codepreneur/serverless.yaml
serverless framework/cli configuration file
service: "sadiavasio"
provider: "aws"
functions:
sadiavas:
handler: "index.graphql"
include:
- blog/
events:
- http:
path: "blog/graphql"
@license2e
license2e / app.js
Last active December 27, 2015 04:03
ES6 Mixins
import Mixin from './utils/mixin'; // see below
import Mixin1 from './mixins/mixin1';
class App extends Mixin(React.Component, Mixin1) { // and so on: , Mixin2, Mixin3
componentDidMount() {
// this.someFuncFromMixin1()
}
render () {
return (
<div>
@license2e
license2e / npm-debug.log
Created August 27, 2015 02:37
Using iojs-v3.2.0 throws an error: 'Segmentation fault: 11' when running 'npm start'
0 info it worked if it ends with ok
1 verbose cli [ '/Users/<user>/.nvm/versions/io.js/v3.2.0/bin/iojs',
1 verbose cli '/Users/<user>/.nvm/versions/io.js/v3.2.0/bin/npm',
1 verbose cli 'start' ]
2 info using npm@2.13.3
3 info using node@v3.2.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart <App>@0.0.1
6 info start <App>@0.0.1
7 verbose unsafe-perm in lifecycle true