Skip to content

Instantly share code, notes, and snippets.

View psgganesh's full-sized avatar
🤖
Currently exploring: DS and ML

Shankar Ganesh psgganesh

🤖
Currently exploring: DS and ML
View GitHub Profile
@psgganesh
psgganesh / config
Created September 2, 2021 03:32 — forked from justinpawela/config
AWS CodeCommit Multiple Account Config
# This file is: ~/.ssh/config
# You may have other (non-CodeCommit) SSH credentials stored in this
# config file – in addition to the CodeCommit settings shown below.
# NOTE: Make sure to run [ chmod 600 ~/.ssh/config ] after creating this file!
# Credentials for Account1
Host awscc-account1 # 'awscc-account1' is a name you pick
Hostname git-codecommit.us-east-1.amazonaws.com # This points to CodeCommit in the 'US East' region
@psgganesh
psgganesh / EloquentCheatSheet.md
Created October 14, 2020 02:09 — forked from avataru/EloquentCheatSheet.md
Eloquent relationships cheat sheet
@psgganesh
psgganesh / books.md
Created July 19, 2019 06:16 — forked from ApoTheOne/books.md
Books for software engineers

Books for software engineers

  • Clean Code: A Handbook of Agile Software Craftsmanship
  • The Clean Coder: A Code of Conduct for Professional Programmers
  • The Pragmatic Programmer: From Journeyman to Master
  • The Phoenix Project: A Novel about IT, DevOps, and Helping your Business Win
  • Design Patterns: Elements of Reusable Object-Oriented Software
  • The Imposter's Handbook: A Primer for Self-Taught Programmers
  • Refactoring: Improving the Design of Existing Code
@psgganesh
psgganesh / .env.travis
Created May 25, 2019 04:22 — forked from gilbitron/.env.travis
Laravel 5 Travis CI config
APP_ENV=testing
APP_KEY=SomeRandomString
DB_CONNECTION=testing
DB_TEST_USERNAME=root
DB_TEST_PASSWORD=
CACHE_DRIVER=array
SESSION_DRIVER=array
QUEUE_DRIVER=sync
@psgganesh
psgganesh / laravel_facades.md
Created February 27, 2019 02:04 — forked from poing/laravel_facades.md
Laravel Facades

Understanding Facades in Laravel

What's a Facade?

The Laravel explination, shown below is confusing.

Facades provide a "static" interface to classes that are available in the application's service container. Laravel ships with many facades which provide access to almost all of Laravel's features. Laravel facades serve as "static proxies" to underlying classes in the service container, providing the benefit of a terse, expressive syntax while maintaining more testability and flexibility than traditional static methods.

Many examples use Cache::get('key') to demonstrate how a Facade works. Comparing the following code to the utility that a Facade provides.

@psgganesh
psgganesh / ConfigServiceProvider.php
Created October 10, 2018 03:56 — forked from chuckrincon/ConfigServiceProvider.php
Load all your lumen config files painless.
<?php
namespace App\Providers;
use Illuminate\Support\Facades\App;
use Illuminate\Support\ServiceProvider;
use Illuminate\Contracts\Filesystem\FileNotFoundException;
class ConfigServiceProvider extends ServiceProvider
{
@psgganesh
psgganesh / learning-resources.md
Created September 5, 2018 15:08 — forked from imaginate/learning-resources.md
Resources for learning about technical topics like computer science, programming, web development, algorithms, and more.

Grow Your Mind!

  • Computer Science: Offers in-depth resources for learning and improving your skills with computer science, programming, algorithms, data structures, and more.
  • Operating Systems: Covers operating systems and their tools.
  • Web Development: Offers abundant resources for topics like browsers, CSS, DOM, HTML, JavaScript, Node.js, PHP, and Python. It contains many different manuals, tools, libraries, shortcuts, and more.

Computer Science

CS Education

@psgganesh
psgganesh / assignment3.md
Created March 11, 2018 12:58 — forked from mGalarnyk/assignment3.md
R Programming Programming Assignment 3 (Week 4) John Hopkins Data Science Specialization Coursera for the github repo https://github.com/mGalarnyk/datasciencecoursera
@psgganesh
psgganesh / device.css
Created April 15, 2016 18:25 — forked from jsoverson/device.css
Quick css hacks to target android/ios
.visible-android {
display:none;
}
.visible-ios {
display:none;
}
.on-device .visible-android, .on-device .visible-ios {
display:inherit;
}
.device-ios .visible-android {
@psgganesh
psgganesh / gist:c651aa0815655c4d59fb
Created November 17, 2015 11:08 — forked from prellele/gist:1825744
Using StartSSL Certs with Nginx-Webserver

NOTE: You can check, if your config here:
http://www.sslshopper.com/ssl-checker.html

Decrypt the private key using the password you entered when you created your key:
openssl rsa -in ssl.key -out /etc/nginx/conf/ssl.key

Protect your key from prying eyes:
chmod 600 /etc/nginx/conf/ssl.key