Skip to content

Instantly share code, notes, and snippets.

przbadu przbadu

Block or report user

Report or block przbadu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
przbadu /
Last active Jul 29, 2019

Create docker-compose.yml file

version: "3"
    image: "postgres"
    container_name: "my_postgres"
      - "54320:5432"
przbadu / heroku-copy-config
Created Apr 24, 2018
copy heroku config vars from source app to target app.
View heroku-copy-config
# Author: przbadu
# Usage: heroku-copy-config <source> <target>
set -e
przbadu / Windows rails
Created Jan 7, 2018 — forked from userrails/Windows rails
Deployment steps for rails in windows
View Windows rails
przbadu /
Created Oct 26, 2017 — forked from matthewjberger/
How to make an electron app using Create-React-App and Electron with Electron-Builder.
przbadu /
Last active Oct 24, 2017
tslint with prettier

Install and configure tslint and prettier

yarn global add tslint typescript
tslint --init
yarn add prettier --dev --exact
npm i -D tslint-config-prettier


przbadu /
Last active Jan 9, 2020
Vue js and Rails integration

Setup Rails and Vuejs

  1. Generate new rails app using --webpack flag
rails new myApp --webpack=vue


  1. You can use --webpack=angular for angular application and --webpack=react for react.
przbadu / .eslintrc.json
Last active Oct 24, 2017
Eslint for react with prettier
View .eslintrc.json
"extends": ["airbnb", "prettier", "prettier/react"],
"plugins": ["prettier"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2016,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
przbadu / _.attempt.js
Created Aug 28, 2017
Lodash useful helper functions that we should use from today.
View _.attempt.js
// Using try-catch to handle the JSON.parse error
function parse(str){
try {
return JSON.parse(str);
catch(e) {
return false;
przbadu /
Created Aug 24, 2017
Setup Docker for React development

Setup Docker for React development

Because we are using Docker, we are not going to install node, npm, create-react-app in our development machine, not even for generating create-react-app scaffold.

For this purpose I am using 2-step docker configuration:

  • In first step, we will create a simple docker container, that does only one thing, install create-react-app and we can use it to generate create-react-app scaffold.
  • And second docker configuration is project specific. It will handle nodemon, npm, development servers, etc.
You can’t perform that action at this time.