Skip to content

Instantly share code, notes, and snippets.

View LivesInSpb's full-sized avatar

Artem LivesInSpb

View GitHub Profile
@LivesInSpb
LivesInSpb / command (ubuntu update->upgrade)
Last active January 9, 2018 09:28
ubuntu update/upgrade
sudo apt-get update
sudo apt-get upgrade
@LivesInSpb
LivesInSpb / txt
Last active January 22, 2019 10:39
List of application for working
mc
htop
ncdu
filezilla
chrome/opera/safari/forefox
PhpStorm
Sublime Text
Nano
Sequel Pro
MySql WorkBench

Keybase proof

I hereby claim:

  • I am livesinspb on github.
  • I am livesinspb (https://keybase.io/livesinspb) on keybase.
  • I have a public key ASD3FkPjLQ-UcKoQlWvWKUBfJgiynKjFWwZzyW0E7YxAkQo

To claim this, I am signing this object:

@LivesInSpb
LivesInSpb / posts.txt
Last active January 11, 2018 09:39
Posts about ...
twig - template engine for PHP
vue.js - JavaScript Framework
Yii 2 - PHP Framework
Symfony - PHP Framework
Node.js -
npm - the package manager for JavaScript
composer
@LivesInSpb
LivesInSpb / commit_if_changed.sh
Last active January 17, 2018 11:44 — forked from JamesSwift/commit_if_changed.sh
Sometimes you want to run an automated "git commit -a" (perhaps as a cron job), but you don't want to clog up your history if nothing has changed. I use the following script to run a commit only if changes have been made.
#!/bin/bash
#cd /path/to/your/git/repo/
if [ "$(git status -s)" ] ; then
echo "Changes detected. Commiting."
git add .
git commit -am "Data time and who..."
else
echo "No changes detected. Commit canceled."
fi
@LivesInSpb
LivesInSpb / highlight_example.html
Created January 24, 2018 14:43
highlight on web page
https://highlightjs.org/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="styles/pojoaque.css">
<script src="highlight.pack.js"></script>
@LivesInSpb
LivesInSpb / nginx.conf
Last active January 24, 2018 14:52
nginx.conf
server
{
listen *:80;
server_name .domain;
charset utf8;
root /home/livesinspb/httpdocs/domains/domain;
access_log /home/livesinspb/httpdocs/logs_all/domain.access.log ;
error_log /home/livesinspb/httpdocs/logs_all/domain.error.log debug;
@LivesInSpb
LivesInSpb / rsa.php
Last active January 26, 2018 10:38
create rsa keys & encode/decode
<?php
$data = 'XCC58-AYA68-75ZUU-19TDZ';
$config = array(
'digest_alg' => 'sha512',
'private_key_bits' => 4096,
'private_key_type' => OPENSSL_KEYTYPE_RSA,
);
@LivesInSpb
LivesInSpb / translate_en_to_ru.txt
Last active February 14, 2018 16:01
translate en to ru
accept - принять
apply - применить
deny - отказать
cancel - отменить
delete - удалить
are you sure? - вы уверены?
password - пароль
login - логин
name - имя
last name - фамилия
@LivesInSpb
LivesInSpb / links.txt
Last active April 12, 2018 12:19
drupal 8