Compare commits

..

4 Commits

Author SHA1 Message Date
Julien Le Coupanec
8249479622 Merge pull request #328 from biswajitdas-007/javascript
String methods added
2025-11-19 22:47:59 +01:00
Julien Le Coupanec
65ad8bf5d3 Merge pull request #425 from its-coded-coder/master
Add one liner to kill process on port
2025-11-19 22:46:24 +01:00
its-coded-coder
dba33d6681 Add one liner to kill process on port 2025-08-22 19:37:08 +03:00
Biswajit Das
9d8c46566b String methods added 2023-03-18 14:03:03 +05:30
3 changed files with 18 additions and 11 deletions

View File

@@ -6,9 +6,9 @@
<!-- Document Summary --> <!-- Document Summary -->
<!DOCTYPE html> <!-- Tells the browser what type of document to expect. This specific declaration implies that the document uses HTML5, the latest version of HTML --> <!DOCTYPE html> <!-- Tells the browser that HTML5 version of HTML to be recognized by the browser -->
<html lang="en"></html> <!-- The HTML lang attribute is used to identify the language of text content on the web. This information helps search engines return language specific results --> <html lang="en"></html> <!-- The HTML lang attribute is used to identify the language of text content on the web. This information helps search engines return language specific results, -->
<head></head> <!-- Contains information specific to the page like title, styles, and scripts --> <head></head> <!-- Contains Information specific to the page like title, styles and scripts -->
<title></title> <!-- Title for the page that shows up in the browser title bar --> <title></title> <!-- Title for the page that shows up in the browser title bar -->
<body></body> <!-- Content that the user will see --> <body></body> <!-- Content that the user will see -->
@@ -16,9 +16,9 @@
<!-- Document Information --> <!-- Document Information -->
<base/> <!-- Useful for specifying relative links in a document --> <base/> <!-- Usefull for specifying relative links in a document -->
<style></style> <!-- Contains styles for the html document --> <style></style> <!-- Contains styles for the html document -->
<meta/> <!-- Contains additional information about the page, author, page description, and other hidden page info --> <meta/> <!-- Contains additional information about the page, author, page description and other hidden page info -->
<script></script> <!-- Contains all scripts internal or external --> <script></script> <!-- Contains all scripts internal or external -->
<link/> <!-- Used to create relationships with external pages and stylesheets --> <link/> <!-- Used to create relationships with external pages and stylesheets -->
@@ -26,7 +26,7 @@
<!-- Document Structure --> <!-- Document Structure -->
<h1></h1> ... <h6></h6> <!-- All six levels of heading with 1 being the most prominent and 6 being the least prominent --> <h1></h1> ... <h6></h6> <!-- All six levels of heading with 1 being the most promiment and 6 being the least prominent -->
<p></p> <!-- Used to organize paragraph text --> <p></p> <!-- Used to organize paragraph text -->
<div></div> <!-- A generic container used to denote a page section --> <div></div> <!-- A generic container used to denote a page section -->
<span></span> <!-- Inline section or block container used for creating inline style elements --> <span></span> <!-- Inline section or block container used for creating inline style elements -->
@@ -39,7 +39,7 @@
<strong></strong> and <b></b> <!-- Makes text contained in the tag as bold --> <strong></strong> and <b></b> <!-- Makes text contained in the tag as bold -->
<em></em> and <i></i> <!-- Alternative way to make the text contained in the tag as italic --> <em></em> and <i></i> <!-- Alternative way to make the text contained in the tag as italic -->
<del></del> <!-- Creates a strike through the text element --> <del></del> <!-- Creates a strike through the text element -->
<pre></pre> <!-- Preformatted monospace text block with some spacing intact --> <pre></pre> <!-- Preformatted monospace text block with some spacing intact -->
<blockquote></blockquote> <!-- Contains long paragraphs of quotations often cited --> <blockquote></blockquote> <!-- Contains long paragraphs of quotations often cited -->
<abbr></abbr> <!-- Contains abbreviations while also making the full form avaialable --> <abbr></abbr> <!-- Contains abbreviations while also making the full form avaialable -->
@@ -56,7 +56,7 @@
<!-- Links Formatting --> <!-- Links Formatting -->
<a href="url"></a> <!-- Used to link to external or internal pages of a website --> <a href="url"></a> <!-- Used to link to external or internal pages of a wbesite -->
<a href="mailto:email@example.com"></a> <!-- Used to link to an email address --> <a href="mailto:email@example.com"></a> <!-- Used to link to an email address -->
<a href="name"></a> <!-- Used to link to a document element --> <a href="name"></a> <!-- Used to link to a document element -->
<a href="#name"></a> <!-- Used to link to specific div element --> <a href="#name"></a> <!-- Used to link to specific div element -->
@@ -87,7 +87,7 @@
<!-- Supported attributes --> <!-- Supported attributes -->
method="somefunction()" <!-- Contains the type of request (GET, POST... etc) which dictates how to send the data of the form --> method="somefunction()" <!-- Contains the type of request (GET, POST... etc) which dictates how to send the data of the form -->
enctype="" <!-- Dictates how the data is to be encoded when the data is sent to the web server --> enctype="" <!-- Dictates how the data is to be encoded when the data is sent to the web server. -->
autocomplete="" <!-- Specifies if the autocomplete functionality is enabled or not --> autocomplete="" <!-- Specifies if the autocomplete functionality is enabled or not -->
novalidate <!-- Dictates if the form will be validated or not --> novalidate <!-- Dictates if the form will be validated or not -->
accept-charset="" <!-- Identifies the character encoding upon form submission --> accept-charset="" <!-- Identifies the character encoding upon form submission -->
@@ -120,7 +120,7 @@ multiple <!-- Allows for multiple optio
required <!-- Requires that a value is selected before submitting the form --> required <!-- Requires that a value is selected before submitting the form -->
autofocus <!-- Specifies that the dropdown automatically comes to focus once the page loads --> autofocus <!-- Specifies that the dropdown automatically comes to focus once the page loads -->
<optgroup></optgroup> <!-- Specifies the entire grouping of available options --> <optgroup></optgroup> <!-- Specifies the entire grouping of available options -->
<option value=""></option> <!-- Defines one of the available options from the dropdown list --> <option value=""></option> <!-- Defines one of the avaialble option from the dropdown list -->
<button></button> <!-- A clickable button to submit the form --> <button></button> <!-- A clickable button to submit the form -->
@@ -142,7 +142,7 @@ autofocus <!-- Specifies that the dropdo
<!-- Objects and iFrames --> <!-- Objects and iFrames -->
<object data=""></object> <!-- Describes and embeds a file type including audio, video, PDF's, images --> <object data=""></object> <!-- Describes and embed file type including audio, video, PDF's, images -->
<!-- Supported attributes --> <!-- Supported attributes -->
type="" <!-- Describes the type of media embedded --> type="" <!-- Describes the type of media embedded -->

View File

@@ -95,3 +95,9 @@ arr.reduce(callback[, initialValue]) // Apply a function against
arr.reduceRight(callback[, initialValue]) // Apply a function against an accumulator and each value of the array (from right-to-left) as to reduce it to a single value. arr.reduceRight(callback[, initialValue]) // Apply a function against an accumulator and each value of the array (from right-to-left) as to reduce it to a single value.
arr.some(callback[, initialValue]) // Returns true if at least one element in this array satisfies the provided testing function. arr.some(callback[, initialValue]) // Returns true if at least one element in this array satisfies the provided testing function.
arr.values() // Returns a new Array Iterator object that contains the values for each index in the array. arr.values() // Returns a new Array Iterator object that contains the values for each index in the array.
// String methods
String.charAt(index) // Returns the character at the specified index in a string.
String.indexOf(character) // Returns the index of the first occurrence of a specified value in a string.
String.substring(starting_index, ending_index) // Returns a new string that is a subset of the original string.
String.substring(starting_index) // Returns a substring from starting index to last index of string.

View File

@@ -21,6 +21,7 @@ cat /proc/<process_id>/maps # Show the current virtual memory usage of a Linux
ip r # Display ip of the server ip r # Display ip of the server
lsof -i :9000 # List process running on port 9000 lsof -i :9000 # List process running on port 9000
kill -9 $(lsof -t -i:PORT) # Kill the process running on whichever port specified
journalctl -u minio.service -n 100 --no-pager # List last 100 logs for specific service journalctl -u minio.service -n 100 --no-pager # List last 100 logs for specific service