Skip to content

Instantly share code, notes, and snippets.

View finethanks's full-sized avatar
🚀
To the moon

Nikolay Kazakov finethanks

🚀
To the moon
View GitHub Profile
@finethanks
finethanks / pass.md
Created January 17, 2022 14:51 — forked from abtrout/pass.md
Using password-store with git repository synching

Password-store keeps your passwords (or any other sensitive information) saved in GnuPG encrypted files organized in ~/.password-store. For more information about GPG, consult the GNU Privacy Handbook.

Getting started

To get started, install pass and generate a keypair.

$ brew install pass
$ gpg --gen-key
$ gpg --list-keys
kubectl exec -it front-front-99b4569f5-9gsrv --namespace deploy-service-front -- /bin/bash
kubectl --namespace=deploy-service-front get pods
kubectl --namespace=deploy-service-front get events --watch
git tag -l | grep -v "v1.2" | grep -v "v1.1" | xargs -n 1 git push --delete origin --no-verify
// start diff
const diffList = {};
Object.keys(this.props).forEach((key) => {
diffList[key] = this.props[key];
});
Object.keys(nextProps).forEach((key) => {
const prop = nextProps[key];
if (diffList[key]) {
#!/bin/bash
for d in * ; do
if [[ ! -d $d ]]; then
continue
fi
echo ""
echo "$d"
cd $d
git pull --all
// # Landing
// Отправка данных формы 1
gtag("event", "submit", {
"event_category": "form",
"event_label": form.dataset.label
});
// Отправка данных формы 2
gtag("event", "submit", {
@finethanks
finethanks / common.ts
Created April 9, 2019 10:43
Описание redux-think actions
import { Action, ActionCreator } from 'redux';
import { ThunkAction } from 'redux-thunk';
import { SET_COMMISSIONS_LEVELS } from '~/redux/reducer/users/actions';
import State from '@state';
import { IReducerUserCommissionsLevel } from '~/redux/reducer/users/types';
import { noop } from 'lodash';
export const SEND_REST_REQUEST = 'SEND_REST_REQUEST';
type HttpMethod = 'get' | 'post' | 'delete' | 'patch';
import React from 'react';
import { connect } from 'react-redux';
import State from '@state';
import { sendGetRequest } from '~/redux/systemActions/common';
interface IDefaultProps {
title: string;
test: string;
}
[program:server_asn]
directory=/var/www/mtt-app/mtt-app/nodeapp/
command=node server.js
autostart=true
autorestart=true
stderr_logfile=/var/www/mtt-app/mtt-app/nodeapp/logs/server_asn.error
stdout_logfile=/var/www/mtt-app/mtt-app/nodeapp/logs/server_asn.log
#
rsync -avn --no-o \
--groupmap=deployer:www-data \
--exclude=bitrix \
--exclude=upload \
--exclude=sites/main \
/var/www/sitefolder/ \
deployer@10.62.7.22:/var/www/sitefolder/