Skip to content

Instantly share code, notes, and snippets.

View sliim35's full-sized avatar
💭
👻

Maksim Dvoinishnikov sliim35

💭
👻
  • 20:08 (UTC +04:00)
View GitHub Profile
@sliim35
sliim35 / ssh.md
Created May 29, 2019 06:40 — forked from bradtraversy/ssh.md
SSH & DevOps Crash Course Snippets

SSH Cheat Sheet

This sheet goes along with this SSH YouTube tutorial

Login via SSH with password (LOCAL SERVER)

$ ssh brad@192.168.1.29

Create folder, file, install Apache (Just messing around)

$ mkdir test

$ cd test

Cheatsheets

SSH CLI

Generate new key

$ ssh-keygen -t rsa
$ ssh-keygen -t rsa -C "your.email@example.com" -b 4096
"editor.fontFamily": "'Operator Mono SSm'",
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"emphasis", "storage", "comment", "entity.other.attribute-name", "entity.other.attribute-name.html", "entity.other.attribute-name.tag.jade", "entity.other.attribute-name.tag.pug", "markup.italic", "keyword.control", "variable.language"
],
"settings": {
"fontStyle": "italic"
}
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
@sliim35
sliim35 / autofill.css
Created August 30, 2018 06:22
Change standard behavior of input autofill in Chrome
/* Change Autocomplete styles in Chrome*/
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
@sliim35
sliim35 / regularexpressions.js
Last active October 12, 2018 07:26
Regular expression cheat sheet
let re;
// Literal Characters
re = /hello/;
re = /hello/i;
// Metacharacter Symbols
re = /^h/i; // Must start with
re = / world$/i; // Must ends with
re = /^hello$/i; // Must begin and end with
re = /h.llo/i; // Matches any ONE character
@sliim35
sliim35 / docker-help.md
Last active April 12, 2019 06:14 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Cheatsheets

See containers

$ docker ps
$ docker ps -all
$ docker-compose ps
@sliim35
sliim35 / Settings.json
Last active August 7, 2019 12:39
VSCode Settings
{
"workbench.colorTheme": "Dracula",
"workbench.iconTheme": "vscode-icons",
"editor.tabSize": 2,
"editor.wordWrap": "on",
"editor.formatOnSave": true,
"prettier.singleQuote": true,
"prettier.eslintIntegration": true,
"gitlens.advanced.messages": {
"suppressShowKeyBindingsNotice": true
@sliim35
sliim35 / README-Template.md
Created March 3, 2018 07:22 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites