Skip to content

Instantly share code, notes, and snippets.

@DmitriyShaydurov
DmitriyShaydurov / reset.css
Created January 4, 2021 08:29 — forked from DavidWells/reset.css
CSS reset. Follow me on the twitters for more tips: https://twitter.com/davidwells
/* http://meyerweb.com/eric/tools/css/reset/
v2.0-modified | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@DmitriyShaydurov
DmitriyShaydurov / insert.sql
Created June 23, 2020 12:19 — forked from bennadel/insert.sql
Using The INSERT INTO ... SET Syntax In MySQL
-- Create a new friend record.
INSERT INTO
friend
SET
name = 'Kim',
isBFF = true,
updatedAt = UTC_TIMESTAMP()
;
-- Return the newly-generated primary-key.
// GET:
const Http = new XMLHttpRequest();
const url='http://example.com/';
Http.open("GET", url);
Http.send();
Http.onreadystatechange=(e)=>{
if (Http.readyState === 4) {
console.log(Http.responseText);
}
}
@DmitriyShaydurov
DmitriyShaydurov / linux-commands.md
Last active December 14, 2019 07:29
Linux commands cheat sheet

Linux Commands, Help & Tips

File system

what path you are in

pwd

show the listings

ls
@DmitriyShaydurov
DmitriyShaydurov / docker-help.md
Created December 14, 2019 05:52 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@DmitriyShaydurov
DmitriyShaydurov / docker_wordpress.md
Created December 14, 2019 05:51 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@DmitriyShaydurov
DmitriyShaydurov / vscode_shortcuts.md
Created December 14, 2019 05:51 — forked from bradtraversy/vscode_shortcuts.md
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@DmitriyShaydurov
DmitriyShaydurov / pdocrash.php
Created December 14, 2019 05:43 — forked from bradtraversy/pdocrash.php
PDO & Prepared Statements Snippets
<?php
$host = 'localhost';
$user = 'root';
$password = '123456';
$dbname = 'pdoposts';
// Set DSN
$dsn = 'mysql:host='. $host .';dbname='. $dbname;
// Create a PDO instance