Skip to content

Instantly share code, notes, and snippets.

@santoshstha
santoshstha / install-redis.sh
Created October 7, 2021 03:11 — forked from FUT/install-redis.sh
Install Redis on EC2
1. Install Linux updates, set time zones, followed by GCC and Make
sudo yum -y update
sudo ln -sf /usr/share/zoneinfo/America/Indianapolis \
/etc/localtime
sudo yum -y install gcc make
2. Download, Untar and Make Redis 2.8 (check here http://redis.io/download)
@santoshstha
santoshstha / Android Privacy Policy Template
Created May 23, 2021 06:24 — forked from alphamu/Android Privacy Policy Template
A template for creating your own privacy policy for Android apps. Look for "[" and "<!--" to see where you need to edit this app in order to create your own privacy olicy.
<html>
<body>
<h2>Privacy Policy</h2>
<p>[Individual or Company Name] built the [App Name] app as a [open source | free | freemium | ad-supported | commercial] app. This SERVICE is provided by [Individual or company name] [at no cost] and is intended
for use as is.</p>
<p>This page is used to inform website visitors regarding [my|our] policies with the collection, use, and
disclosure of Personal Information if anyone decided to use [my|our] Service.</p>
<p>If you choose to use [my|our] Service, then you agree to the collection and use of information in
relation with this policy. The Personal Information that [I|we] collect are used for providing and
improving the Service. [I|We] will not use or share your information with anyone except as described

How to Deploy laravel Applications on Heroku.

Heroku-Laravel

Introduction

Welcome to a series of Deploying a Laravel Application.

Laravel applications are deployed on many sites.

I will be taking you through on how to deploy a laravel application which has a database and to be specific, Postgresql Database.

@santoshstha
santoshstha / product.php
Created April 25, 2021 03:29
calcuating multiple product and total from it
<?php
//calcuating multiple product and total from it
associative array of item ids and their respective quantities
$itemIdsQtys = [];
foreach ($products as $reqItem) {
$itemIdsQtys[$reqItem['id']] = $reqItem['quantity'];
}
// get array of item ids and fetch their respective models
$ids = array_keys($itemIdsQtys);
@santoshstha
santoshstha / wgk.txt
Created April 4, 2021 04:03
Windows Generic Keys
Windows Edition Product Key
Windows 7 Starter 7Q28W-FT9PC-CMMYT-WHMY2-89M6G
Windows 7 Home Basic YGFVB-QTFXQ-3H233-PTWTJ-YRYRV
Windows 7 Home Premium RHPQ2-RMFJH-74XYM-BH4JX-XM76F
Windows 7 Professional HYF8J-CVRMY-CM74G-RPHKF-PW487
Windows 7 Ultimate D4F6K-QK3RD-TMVMJ-BBMRX-3MBMV
Windows 7 Enterprise H7X92-3VPBB-Q799D-Y6JJ3-86WC6
Windows 7 Starter N D4C3G-38HGY-HGQCV-QCWR8-97FFR
Windows 7 Home Basic N MD83G-H98CG-DXPYQ-Q8GCR-HM8X2
@santoshstha
santoshstha / main.dart
Created March 31, 2021 14:12 — forked from Ramesh-X/main.dart
FCM Flutter, Navigate on Notification Click
import 'package:bloc/bloc.dart';
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_messaging/firebase_messaging.dart';
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
// Start the App
void main() => runApp(MainApp());
@santoshstha
santoshstha / !NOTE.md
Created March 30, 2021 04:56 — forked from carlomigueldy/!NOTE.md
Setup a Laravel Storage driver using Google Drive API
Step 1: Generate a Self-Signed Certificate using OpenSSL
I'll use OpenSSL to generate the certificate on Ubuntu. OpenSSL is installed on Mac OSX by default and the commands are exactly the same.
OpenSSL will generate 2 files which consist of a private key and a public key. Even though most people refer to an SSL/TLS certificate in the singular sense, it is the combination of the private key and the public key that makes a certificate.
Before running the OpenSSL command to generate a self-signed certificate, I'm going to create a certificate configuration file that will specify the certificate bits and the Subject Alternative Names. The Subject Alt Names are required in Google Chrome 58 and later, and is used to match the domain name and the certificate. If the domain name is not listed in the certificate's Subject Alternative Names list, you'll get a NET::ERR_CERT_COMMON_NAME_INVALID error message.
Create the Certificate Configuration File
sudo nano localhost.conf
---
title: Setting Up Laravel in Ubuntu / DigitalOcean
keywords: servers, laravel, coderstape, coder's tape
description: Let's take a look at settting up a server from scratch for Laravel.
date: April 1, 2019
tags: servers, laravel
permalink: setting-up-laravel-in-ubuntu-digitalocean
img: https://coderstape.com/storage/uploads/GZTXUbyGum2xeUZM9qBD5aPv8EKLwG3C8RGcRon4.jpeg
author: Victor Gonzalez
authorlink: https://github.com/vicgonvt
@santoshstha
santoshstha / git-commit-csv-export.sh
Created March 1, 2021 07:25 — forked from ghinda/git-commit-csv-export.sh
git csv export of commits in the last month
git log --since='last month' --pretty=format:'%h;%an;%ad;%s' --author='Ionut Colceriu' > ~/log.csv