Skip to content

Instantly share code, notes, and snippets.

View AbhishekGhosh's full-sized avatar
❤️
Happy

Abhishek Ghosh AbhishekGhosh

❤️
Happy
View GitHub Profile
@AbhishekGhosh
AbhishekGhosh / CAA-adoption-notes.md
Last active June 14, 2017 07:25 — forked from roycewilliams/CAA-adoption-notes.md
CAA-adoption-notes.md
.avatar:hover{
border-radius: 50% 50% 50% 50%;
transform: rotate(0deg) scale(0.67) skew(1deg) translate(0px);
-webkit-transform: rotate(0deg) scale(0.67) skew(1deg) translate(0px);
-moz-transform: rotate(0deg) scale(0.67) skew(1deg) translate(0px);
-o-transform: rotate(0deg) scale(0.67) skew(1deg) translate(0px);
-ms-transform: rotate(0deg) scale(0.67) skew(1deg) translate(0px);
}
// How To Make Rounded Avatars http://wp.me/p1lTu0-9VQ
.avatar {
@AbhishekGhosh
AbhishekGhosh / The-Indian-Penal-Code
Created May 24, 2018 11:18 — forked from allomics/The-Indian-Penal-Code
Central Government Act - The Indian Penal Code
Central Government Act - The Indian Penal Code
==============================================
1. Title and extent of operation of the Code.—This Act shall be called the Indian Penal Code, and shall 1 [extend to the whole of India 2 [except the State of Jammu and Kashmir].]
2. Punishment of offences committed within India.—Every person shall be liable to punishment under this Code and not otherwise for every act or omission contrary to the provisions thereof, of which he shall be guilty within 3 [India] 4 [***].
3. Punishment of offences committed beyond, but which by law may be tried within, India.—Any person liable, by any 5 [Indian law] to be tried for an offence committed beyond [India] shall be dealt with according to the provisions of this Code for any act committed beyond [India] in the same manner as if such act had been committed within 6 [India].
7 [ 4 Extension of Code to extra-territorial offences. —The provi­sions of this Code apply also to any offence committed by—
8 [(1) any citizen of India in
@AbhishekGhosh
AbhishekGhosh / wp.sh
Last active September 27, 2019 21:12 — forked from chrisjlee/wp.sh
install wordpress with shell script
#!/bin/bash
echo “Database Name: ”
read -e dbname
echo “Database User: ”
read -e dbuser
echo “Database Password: ”
read -s dbpass
echo “run install? (y/n)”
read -e run
if [ "$run" == n ] ; then
@AbhishekGhosh
AbhishekGhosh / xtrabackup_full_increment_restore.sh
Created October 6, 2019 15:27 — forked from SQLadmin/xtrabackup_full_increment_restore.sh
Automate xtrabackup for FULL/Incremental and restore
#!/bin/bash
# This is my production backup script.
# https://sqlgossip.com
set -e
set -u
usage() {
echo "usage: $(basename $0) [option]"
echo "option=full: Perform Full Backup"
@AbhishekGhosh
AbhishekGhosh / http2_apache2_ubuntu16.04.md
Created September 5, 2020 19:18 — forked from GAS85/http2_apache2_ubuntu16.04.md
How to Enable HTTP/2 in Apache 2.4 on Ubuntu 16.04

Requirements

  • A self-managed VPS or dedicated server with Ubuntu 16.04 running Apache 2.4.xx.
  • For Ubuntu 18.04 please read here --> https://gist.github.com/GAS85/8dadbcb3c9a7ecbcb6705530c1252831
  • A registered domain name with working HTTPS (TLS/SSL). HTTP/2 only works alongside HTTPS because most browsers, including Firefox and Chrome, don’t support HTTP/2 in cleartext (non-TLS) mode.
@AbhishekGhosh
AbhishekGhosh / ESP32-Web-Controlled-Servo.ino
Created July 1, 2023 09:31 — forked from elktros/ESP32-Web-Controlled-Servo.ino
Code for ESP32 Web Controlled Servo.
#include <WiFi.h>
const int servoPin = 16; /* GPIO16 */
const char* ssid = "ESP32-WiFi"; /* Add your router's SSID */
const char* password = "12345678"; /*Add the password */
int dutyCycle = 0;
//int position1 = 0;