mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-01-26 13:18:06 -08:00
Compare commits
4 Commits
1584778f08
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8249479622 | ||
|
|
65ad8bf5d3 | ||
|
|
dba33d6681 | ||
|
|
9d8c46566b |
@@ -6,9 +6,9 @@
|
||||
|
||||
<!-- 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 -->
|
||||
<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 -->
|
||||
<!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, -->
|
||||
<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 -->
|
||||
<body></body> <!-- Content that the user will see -->
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
<!-- 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 -->
|
||||
<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 -->
|
||||
<link/> <!-- Used to create relationships with external pages and stylesheets -->
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<!-- 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 -->
|
||||
<div></div> <!-- A generic container used to denote a page section -->
|
||||
<span></span> <!-- Inline section or block container used for creating inline style elements -->
|
||||
@@ -56,7 +56,7 @@
|
||||
<!-- 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="name"></a> <!-- Used to link to a document element -->
|
||||
<a href="#name"></a> <!-- Used to link to specific div element -->
|
||||
@@ -87,7 +87,7 @@
|
||||
|
||||
<!-- Supported attributes -->
|
||||
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 -->
|
||||
novalidate <!-- Dictates if the form will be validated or not -->
|
||||
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 -->
|
||||
autofocus <!-- Specifies that the dropdown automatically comes to focus once the page loads -->
|
||||
<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 -->
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ autofocus <!-- Specifies that the dropdo
|
||||
<!-- 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 -->
|
||||
type="" <!-- Describes the type of media embedded -->
|
||||
|
||||
@@ -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.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.
|
||||
|
||||
// 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.
|
||||
@@ -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
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user