Skip to content

Instantly share code, notes, and snippets.

View Krupeshgithub's full-sized avatar
:dependabot:
Practice, Patience, & Confidence

Krupesh Krupeshgithub

:dependabot:
Practice, Patience, & Confidence
View GitHub Profile
@Krupeshgithub
Krupeshgithub / pre_commit_message.sh
Last active December 26, 2023 16:39
Github hook ๐Ÿช pre-commit-message with standard commit message format
#!/usr/bin/env bash
# @author: Krupeshgithub
# @version: 0.1
commit_msg=$(cat "$1")
RED="\e[31m"
GREEN="\e[32m"
@Krupeshgithub
Krupeshgithub / pre_push.sh
Last active December 26, 2023 16:38
When user would be apply force push ๐Ÿซธ on protected branch then this script will be stop pushing ๐Ÿ›‘ & script will ask to user for confirmation โœ”๏ธ
#!/usr/bin/env bash
# @author: Krupeshgithub
# @version: 0.1
# You can skip this script with `--no-verify`
RED="\e[41m"
CYEN="\e[96m"
NOCOLOR="\e[0m"
@Krupeshgithub
Krupeshgithub / basic_sequel_language.md
Last active December 26, 2023 16:37
๐Ÿ…ฑ๐Ÿ…ฐ๐Ÿ†‚๐Ÿ…ธ๐Ÿ…ฒ ๐Ÿ†‚๐Ÿ…ด๐Ÿ†€๐Ÿ†„๐Ÿ…ด๐Ÿ…ป ๐Ÿ…ป๐Ÿ…ฐ๐Ÿ…ฝ๐Ÿ…ถ๐Ÿ†„๐Ÿ…ฐ๐Ÿ…ถ๐Ÿ…ด

Sequel Cheat Sheet

Create datbase

create database bank;
create database if not exists bank;

Drop database

@Krupeshgithub
Krupeshgithub / random_users.py
Last active December 26, 2023 16:37
๐™…๐™ช๐™จ๐™ฉ ๐™ง๐™ช๐™ฃ ๐™ฉ๐™๐™ž๐™จ ๐™จ๐™˜๐™ง๐™ž๐™ฅ๐™ฉ ๐™ฉ๐™ค ๐™–๐™™๐™™ 1000 ๐™ง๐™–๐™ฃ๐™™๐™ค๐™ข ๐™™๐™–๐™ฉ๐™– ๐™ž๐™ฃ ๐™ฎ๐™ค๐™ช๐™ง ๐™™๐™–๐™ฉ๐™–๐™—๐™–๐™จ๐™š.
"""
Create table and add multiple random users on database with help
`https://randomuser.me/api?results=1` api.
Big thanks to creat this api: `https://randomuser.me/api?results=1`
"""
import requests
import mysql.connector
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Krupeshgithub
Krupeshgithub / serverless.yml
Created February 9, 2024 18:28
Deploy your lambda function & attach create lambda layers with github actions.
name: Deploy file and layers into Lambda
on:
push:
branches:
- main # Trigger the workflow on push or pull request to the main branch
jobs:
deploy-function:
runs-on: ubuntu-latest