Skip to content

Instantly share code, notes, and snippets.

https://swiperjs.com/swiper-api
https://swiperjs.com/demos
@Bhavya8181
Bhavya8181 / Disable CTRL + C or CTRL+ U || Disable Right Click
Created February 12, 2024 05:53 — forked from jack2jm/Disable CTRL + C or CTRL+ U || Disable Right Click
This gist can help you to prevent from view page source using ctrl + u. also this helps you to disable right click.
<script type="text/javascript">
// To To Disable ctrl+c, ctrl+u
jQuery(document).ready(function($){
document.oncontextmenu = document.body.oncontextmenu = function() {return false;}
$(document).keydown(function(event) {
var pressedKey = String.fromCharCode(event.keyCode).toLowerCase();
console.log(pressedKey);
// i, c, j -> open inspect element view
// ctr + u or c -> pag src
// f12 - 123
<!DOCTYPE html>
<html>
<head>
<title></title>
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/plyr/3.6.4/plyr.min.css" integrity="sha512-bMLolM8mWTXYQSC2gQOLyDdkmodSAbbRFbDoISUCRS7mFJrP3fBHJo3YR8+2Yy9n7+iVGawVpCe6KVd/E5+TNA==" crossorigin="anonymous" /> -->
<link rel="stylesheet" href="https://cdn.plyr.io/3.6.3/plyr.css" />
</head>
<body>
<div style="width: 500px;" class="plyr__video-embed" id="player">
<iframe width="560" height="315" src="https://www.youtube.com/embed/eVIozKR9p50" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="https://cdn.plyr.io/3.6.3/plyr.css" />
</head>
<body>
<!--Add a Simple HTML5 Video tag-->
<div id="container">
<video
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<div style="padding: 30px">
<style type="text/css">
.ag-format-container{width:90%;margin:0 auto}
********** Add A Record ***********
1.An A record with @ pointing to your server’s public IP address.
2. An A record with www pointing to your server’s public IP address.
************* check if apache installed or not *****
sudo apache2ctl configtest -> it will return not found commmand
install
sudo apt update
sudo apt install apache2
sudo ufw app list //check firewall list
1. sudo apt install apache2-utils
(https://sleeplessbeastie.eu/2020/02/26/how-to-generate-password-digest-for-basic-authentication-of-http-users/)
Create .htaacess file
2. htpasswd -c /home/pwww/.htpasswd jerry
{Following command will creates a new file and stores a record in it for user jerry. The user is prompted for the password. If the file exists and cannot be read, or cannot be written, it is not altered and htpasswd will display a message and return an error status.}
1. make file of migrations
php artisan make:migration create_users_table
2. with table
php artisan make:migration create_users_table --create=users
php artisan make:migration add_votes_to_users_table --table=users
3. up & down method
public function up()
{
Master Link - https://developers.google.com/search/apis/indexing-api/v3/prereqs
---------------------------
Step: 1
1. Create project first. Give Name like Domain. (eg. example.com)
2. Enable Indexing API (https://console.developers.google.com/start/api?id=indexing.googleapis.com&credential=client_key)
(They are asking for - Data (select *appilcation data*))
2. Open the Service accounts page. If prompted, select a project. (https://console.developers.google.com/iam-admin/serviceaccounts)