Skip to content

Instantly share code, notes, and snippets.

@edbob
edbob / GitPUSH
Last active February 9, 2024 15:14
git GitPUSH
git status
git add .
git commit -m ' '
git push -u origin
@edbob
edbob / StartSppMain
Last active March 14, 2024 17:08
spp StartSppMain
#include "../std_lib_facilities.h"
int main()
{
return 0;
}
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
@edbob
edbob / webstoemp-gulpfile.js
Created February 7, 2019 23:04 — forked from jeromecoupe/webstoemp-gulpfile.js
Gulp 4 sample gulpfile.js. For a full explanation, have a look at https://www.webstoemp.com/blog/switching-to-gulp4/
"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");
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
@edbob
edbob / LinuxCommands.txt
Created April 9, 2018 09:26
Linux Basic Commands
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
@edbob
edbob / Provision a database.js
Last active December 25, 2017 23:09
node Provision_database
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} ); }
@edbob
edbob / git.txt
Created December 22, 2017 14:44
git Remove node_module
#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
@edbob
edbob / .gitignore
Last active December 22, 2017 15:18
git Ignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@edbob
edbob / server.js
Created December 22, 2017 14:34
node express add server
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);