Skip to content

Instantly share code, notes, and snippets.

View przbadu's full-sized avatar
🏠
Working from home

Pushpa Raj Badu przbadu

🏠
Working from home
View GitHub Profile
@przbadu
przbadu / script.md
Created August 31, 2020 06:09
Fix libssl error for old rubies

pruge latest libssl and install libssl1.0-dev

sudo apt purge libssl-dev && sudo apt install libssl1.0-dev

Install ruby with rbenv (recommended)

rbenv install 2.3.1
@przbadu
przbadu / brightness-script.md
Created August 22, 2020 02:17
How to control monitor brightness from linux PC using terminal

Open terminal app

Press Ctrl + Alt + T or search for terminal application and open it.

Get Monitor's Device Name

First get monitor's device name using below terminal command:

xrandr | grep " connected" | cut -f1 -d " "
@przbadu
przbadu / tmux.conf
Last active August 17, 2021 05:36
tmux conf file [przbadu]
###########################
# Configuration
###########################
# use 256 term for pretty colors
# set -g default-terminal "screen-256color" # making tmux slow
set -g default-terminal "xterm-256color"
# Enable mouse support
set -g mouse on
@przbadu
przbadu / docker-postgres.md
Last active May 28, 2022 16:21
docker-postgresql-setup

Create docker-compose.yml file

version: "3"
services:
  db:
    image: "postgres"
    container_name: "my_postgres"
    ports:
 - "54320:5432"
@przbadu
przbadu / heroku-copy-config
Created April 24, 2018 06:18
copy heroku config vars from source app to target app.
#!/bin/bash
# Author: przbadu
#
# Usage: heroku-copy-config <source> <target>
set -e
sourceApp="$1"
targetApp="$2"
config=""
@przbadu
przbadu / Windows rails deployment.md
Last active June 6, 2023 20:11 — forked from userrails/Windows rails deployment.md
Deployment steps for rails in windows
@przbadu
przbadu / notes.md
Created October 26, 2017 04:21 — forked from matthewjberger/notes.md
How to make an electron app using Create-React-App and Electron with Electron-Builder.
@przbadu
przbadu / tslint.md
Last active October 24, 2017 03:02
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

tslint.json

@przbadu
przbadu / _vue-rails.md
Last active July 16, 2022 21:48
Vue js and Rails integration

Setup Rails and Vuejs

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

Note:

  1. You can use --webpack=angular for angular application and --webpack=react for react.
@przbadu
przbadu / multiple-projects-with-tmux.gif
Last active September 6, 2017 04:18
Multiple project workspace management with tmux
multiple-projects-with-tmux.gif