Skip to content

Instantly share code, notes, and snippets.

View devded's full-sized avatar
🎯
Focusing

Dedar Alam devded

🎯
Focusing
  • Dhaka, Bagladesh
View GitHub Profile
@devded
devded / Check Website Support on Network
Created May 12, 2020 12:56
FTP website didn't support all ISP network. This Script help to find the website support on network or not sending a fetch request.
async function check(url){
let cors = "https://cors-anywhere.herokuapp.com/"; //This API enables cross-origin requests to anywhere.
let checkUrl= cors+url; //Merge cors and checking website url to avoid the cross-origin requests error
let response = await fetch(checkUrl); //JavaScript can send network requests to the server
if (response.ok) {
alert("Website Support On Your Network"); // if HTTP-status is 200-299
} else {
alert("Website Not Support On Your Network");
@devded
devded / Copy From TextField
Last active May 31, 2020 09:41
Copy From Text Field Useing Javascript
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Copy From TextFIeld</title>
</head>
<body>
<input id="name" type="text" />
<button id="copy">Copy</button>
</body>
Note: I don't know where does this thread belongs. If I'm on the incorrect section, move it to the correct one.
Many people are literally just selling this method and I feel like sharing this out so that you don't have to pay because the seller just don't do a minute of work to get you the drive.
So moving straight towards the method:
Step I:
Go to this link: https://td.fastio.me/ (mirrors to be left at the last)
Step II:
Type your desired drive's name at the first field and your Gmail on the bottom field.
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* Firefox */
input[type=number] {
-moz-appearance: textfield;
1: Open Sign Up Page: https://skl.sh/2OJsE8v
2: Use These Cards Numbers to generate right one:
1: 510458xxxxxxxxxx (Updated)
2: 549458xxxxxxxxxx (try one of them)
3: Gen Free Account Numbers: https://namso-gen.com
4: Select Active Account Number Number: https://www.mrchecker.net/card/ccn2/
if it does not work with real gmail id then create fakeone it will work : https://temp-mail.org/
@devded
devded / TestGist
Last active November 23, 2020 21:26
git init Initialize a local Git repository
git clone ssh://[email protected]/[username]/[repository-name].git Create a local copy of a remote repository
git status Check status
git add [file-name.txt] Add a file to the staging area
git add -A Add all new and changed files to the staging area
git commit -m "[commit message]" Commit changes
git rm -r [file-name.txt] Remove a file (or folder)
1. Mail Template
https://github.com/leemunroe/responsive-html-email-template/blob/master/email.html
2. Convert CSS to Inline CSS
https://templates.mailchimp.com/resources/inline-css/
3. Remove <html> <head> & </body> tag
4. Convert to one line
https://www.textfixer.com/html/compress-html-compression.php

create a new repository on the command line

echo "# ter" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/devded/ter.git
git push -u origin main
@devded
devded / Firebase.md
Created April 12, 2021 21:37 — forked from victorbruce/Firebase.md
My journey with Firebase so far. Cheatsheet to serve as a quick reference when developing firebase applications

Firebase

Set up firebase and Deploy

  • Head over to firebase. Sign in and create a project.

  • Copy your project settings under Firebase SDK snippet into your local project (ie your project's api key, auth domain, databaseURL, etc)

  • Create a file (firebase.js or config.js Any name that suits you is fine)

Git important command


First setup

git config --global user.email "[email protected]"

git config --global user.name "Your Name"