This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git status | |
git add . | |
git commit -m ' ' | |
git push -u origin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "../std_lib_facilities.h" | |
int main() | |
{ | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cls | |
@ECHO OFF | |
title Folder Private | |
if EXIST "Compconfig Locker" goto UNLOCK | |
if NOT EXIST Private goto MDLOCKER | |
:CONFIRM | |
echo Are you sure you want to lock the folder(Y/N) | |
set/p "cho=>" | |
if %cho%==Y goto LOCK | |
if %cho%==y goto LOCK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
// Load plugins | |
const autoprefixer = require("autoprefixer"); | |
const browsersync = require("browser-sync").create(); | |
const cp = require("child_process"); | |
const cssnano = require("cssnano"); | |
const del = require("del"); | |
const eslint = require("gulp-eslint"); | |
const gulp = require("gulp"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://eax.me/git-commands/ | |
--начало | |
Очень важный момент! | |
Когда первый раз делаешь соединение с github | |
1. необходимо сначало создать на сайте репозиторий | |
2. на клиенте создаем SSH keys и закидываем его на github/Settings/SSH keys | |
ssh-keygen -t ed25519 -C "your_email@example.com" | |
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir – make directories | |
Usage: mkdir [OPTION] DIRECTORY… | |
eg. mkdir lhn | |
ls – list directory contents | |
Usage: ls [OPTION]… [FILE]… | |
eg. ls, ls l, ls lhn | |
cd – changes directories | |
Usage: cd [DIRECTORY] | |
eg. cd lhn | |
pwd - print name of current working directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pg = require('pg'); | |
app.get('/db', function (request, response) { | |
pg.connect(process.env.DATABASE_URL, function(err, client, done) { | |
client.query('SELECT * FROM test_table', function(err, result) { | |
done(); | |
if (err) | |
{ console.error(err); response.send("Error " + err); } | |
else | |
{ response.render('pages/db', {results: result.rows} ); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Remove node_modules from git repo | |
#add 'node_modules' to .gitignore file | |
git rm -r --cached node_modules | |
git commit -m 'Remove the now ignored directory node_modules' | |
git push origin master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var expressLayouts = require('express-ejs-layouts'); | |
var bodyParser = require('body-parser'); | |
var colors = require('colors'); | |
var app = express(); | |
var port = process.env.PORT || 8089; | |
//use ajs and express layouts | |
app.set('view engine', 'ejs'); | |
app.use(expressLayouts); |
NewerOlder