Skip to content

Instantly share code, notes, and snippets.

View karanpal-dhillon's full-sized avatar

karan dhillon karanpal-dhillon

View GitHub Profile
@karanpal-dhillon
karanpal-dhillon / config.lua
Created August 16, 2022 02:25
lunar vim config file
--[[
lvim is the global options object
Linters should be
filled in as strings with either
a global executable or a path to
an executable
]]
-- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
@karanpal-dhillon
karanpal-dhillon / my.cnf
Created August 2, 2022 06:57 — forked from fevangelou/my.cnf
Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers)
# === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) ===
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated December 2021 ~
#
#
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

elementaryOS Apps and Configs

This guide has been updated for elementaryOS v5.0+.

Enbale PPA support

sudo apt-get update
sudo apt-get -y install software-properties-common

Install original plank dock

@karanpal-dhillon
karanpal-dhillon / vscode_shortcuts.md
Last active May 1, 2019 14:53 — forked from bradtraversy/vscode_shortcuts.md
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

  • For mac, replace "Ctrl" with "cmd" and "Alt" with "option"

Official List of all commands

@karanpal-dhillon
karanpal-dhillon / vsc_js_snippets.json
Created April 28, 2019 14:09 — forked from bradtraversy/vsc_js_snippets.json
VSCode JavaScript Snippets
{
"Console Log": {
"prefix": "cl",
"body": "console.log($1);",
"description": "Console Log"
},
"Named Function": {
"prefix": "nfn",
"body": ["function ${1:functionName}($2) {", " $3", "}"],
"description": "Named Function"

Project Setup

There are two sample projects. aws-front-end and aws-back-end. aws-front-end is suppose to have internet facing VM (web server) and aws-back-end is suppose to be the app server, not accessible to the public.

Installation

Common software stack for both front end and backend

Node js is the only common SDK for both the projects.

  • Install node js (using nvm)
@karanpal-dhillon
karanpal-dhillon / docker_wordpress.md
Created January 20, 2019 14:44 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
<title>Welcome file</title>