Skip to content

Instantly share code, notes, and snippets.

View Enity's full-sized avatar

Boroda Enity

View GitHub Profile
# Создать юзера
useradd -m -d /home/enity enity
passwd enity
usermod -a -G sudo enity
# ssh
ssh-keygen -C "enity.w@gmail.com"
eval "$(ssh-agent -s)"
ssh-add -K ~/.ssh/id_rsa
@Enity
Enity / metro.js
Last active January 22, 2020 18:15
Rent Shared Structs
const metroList = {
devyatkino: {
name: 'Девяткино',
color: 'red',
},
grajdanskii: {
name: 'Гражданский проспект',
color: 'red',
},
akademicheskaya: {
@Enity
Enity / .dockerignore
Last active August 2, 2019 16:15
Golang microservice gitlab-ci
.git
.dockerignore
LICENSE
README.md
.gitignore
Dockerfile
docker-compose.yml
.DS_Store
/target
.vscode
@Enity
Enity / GitCommands.md
Last active November 25, 2020 15:01
Git commands

На винде офнуть crlf

git config --global core.autocrlf false
git config --global core.eol lf

Убрать вим

git config --global core.editor "nano"
@Enity
Enity / RiderTheme.icls
Created October 22, 2018 21:51
Rider Color Theme
<scheme name="MyTheme" version="142" parent_scheme="ReSharper Dark">
<metaInfo>
<property name="created">2018-10-23T00:31:02</property>
<property name="ide">Rider</property>
<property name="ideVersion">2018.2.3.0.0</property>
<property name="modified">2018-10-23T00:31:25</property>
<property name="originalScheme">MyTheme</property>
</metaInfo>
<colors>
<option name="LINE_NUMBERS_COLOR" value="666772" />
@Enity
Enity / info.js
Last active May 30, 2018 22:39
User info from js
const info = {
timeOpened:new Date(),
timezone:(new Date()).getTimezoneOffset()/60,
pageon(){return window.location.pathname},
referrer(){return document.referrer},
previousSites(){return history.length},
browserName(){return navigator.appName},