Skip to content

Instantly share code, notes, and snippets.

View rdnvndr's full-sized avatar

Andrey Rodionov rdnvndr

View GitHub Profile
@rdnvndr
rdnvndr / BranchModel.md
Last active April 15, 2024 06:40
Удачная модель ветвления для Git
@rdnvndr
rdnvndr / initializer.c
Last active November 29, 2023 14:17 — forked from tenmyo/initializer.c
Initializer/finalizer sample for MSVC and GCC/Clang.
// c - __attribute__((constructor)) equivalent in VC? - Stack Overflow
// http://stackoverflow.com/questions/1113409/attribute-constructor-equivalent-in-vc/2390626#2390626
// Rev.5
// Initializer/finalizer sample for MSVC and GCC/Clang.
// 2010-2016 Joe Lowe. Released into the public domain.
#include <stdio.h>
#include <stdlib.h>
#ifdef __cplusplus
@rdnvndr
rdnvndr / recursively-rename-extension.sh
Created November 3, 2023 23:41 — forked from bzerangue/recursively-rename-extension.sh
Terminal Script: Recursively rename or change file extensions (this example, changing extension from .html to .php)
find . -name "*.html" | while read i; do mv "$i" "${i%.html}.php"; done
@rdnvndr
rdnvndr / PgAdmin4-Nginx-uwsgi.md
Last active November 5, 2022 14:33
Установка PgAdmin4 + Nginx + uwsgi

Установка PgAdmin4 + Nginx + uwsgi

Установка PgAdmin 4

Для установки PgAdmin 4 через pip необходимо выполнить команды:

sudo apt-get install python3-pip build-essential python3-dev libssl-dev libffi-dev
sudo pip3 install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v6.15/pip/pgadmin4-6.15-py3-none-any.whl

Для инициализации конфигурации в директории /usr/local/lib/python3.5/dist-packages/pgadmin4/ необходимо создать файл config_local.py:

@rdnvndr
rdnvndr / Learn-REGex-The-Easy-Way.md
Created February 1, 2018 18:00 — forked from sai10/Learn-REGex-The-Easy-Way.md
Regular expression is a group of characters or symbols which is used to find a specific pattern from a text. And this is a kind of cheat sheet of learning regular expressions.

Learn Regex


What is Regular Expression?

Regular expression is a group of characters or symbols which is used to find a specific pattern from a text.

A regular expression is a pattern that is matched against a subject string from left to right. The word "Regular expression" is a

@rdnvndr
rdnvndr / bash_cheatsheet.md
Created February 18, 2020 05:19 — forked from lee2sman/bash_cheatsheet.md
bash scripting cheatsheet

Bash scripting cheatsheet

  • by Lee2sman
  • Updated 2017-09-18

Bash shebang

  • #!/usr/bin/env bash for portability, or less good, #!/bin/bash

Commenting

@rdnvndr
rdnvndr / jq-cheetsheet.md
Created December 1, 2020 11:29 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@rdnvndr
rdnvndr / KitGit.md
Last active November 17, 2020 15:00
Кратко о Git

Система Git

Говоря о системе управления версиями (VCS) файлов Git необходимо упомянуть об архитектуре её реализации. Именно она определяют преимущества и недостатки.

Полная распределенность

Прежде всего Git — распределённая VCS. Это значит, что мы работаем не с одним репозитарием на сервере, а каждый имеет у себя локальную копию репозитария. Соответственно, такие операции, как checkout и commit производятся с локальным