Skip to content

Instantly share code, notes, and snippets.

View cinic's full-sized avatar

Alexandr Andreev cinic

View GitHub Profile

🚀 Complete Guide to Your Biome Configuration

📚 What is Linting? (For Beginners)

Linting is like having a smart assistant that reads your code and helps you:

  • Find bugs before they cause problems
  • Follow best practices and coding standards
  • Keep code consistent across your project
  • Learn better coding patterns automatically
@cinic
cinic / Установка Outline VPN на Ubuntu 20.04.md
Last active February 8, 2025 08:29 — forked from JohnyDeath/Установка Outline VPN на Ubuntu 20.04.md
Инструкция по развертыванию собственного VPN-сервиса на базе Outline VPN

Установка Outline VPN на Ubuntu 20.04

Outline VPN - это бесплатный инструмент с открытым исходным кодом, позволяющий развернуть собственную VPN на Вашем собственном сервере или на машине облачного провайдера. Подробную информацию Вы можете узнать здесь и здесь.

В своем составе имеет как графические инструменты, так и средства работы через командную строку. Позволяет использовать VPN как на настольных компьютерах, так и на мобильных устройствах.

Прежде чем начать

Вам нужен сервер. Да, его нужно арендовать, учитывая его местоположение. Например, если Вам нужно получать доступ к ресурсам, которые недоступны в текущем местоположении, но доступны, например, в Канаде, то смело арендуйте виртуальную машину в AWS, Digital Ocean или любом другом месте.

@cinic
cinic / Prettify.ts
Created February 7, 2025 21:29 — forked from palashmon/Prettify.ts
A super useful type helper in TypeScript by Matt Pocock from Twitter
/**
* A TypeScript type alias called `Prettify`.
* It takes a type as its argument and returns a new type that has the same properties as the original type,
* but the properties are not intersected. This means that the new type is easier to read and understand.
*/
type Prettify<T> = {
[K in keyof T]: T[K];
} & {};
pipeline {
agent any
parameters {
string(name: 'server', defaultValue: "C:\\HexawareTraining\\Cohort1\\JenkinsLabs\\apache-tomcat-")
string(name: 'emailTo', defaultValue: "[email protected]")
}
triggers {
@cinic
cinic / README.md
Created August 3, 2022 18:13 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@cinic
cinic / recover-deleted-branch.sh
Created July 7, 2022 14:50 — forked from umayr/recover-deleted-branch.sh
How to recover a deleted branch
## Pre-requisite: You have to know your last commit message from your deleted branch.
git reflog
# Search for message in the list
# a901eda HEAD@{18}: commit: <last commit message>
# Now you have two options, either checkout revision or HEAD
git checkout a901eda
# Or
git checkout HEAD@{18}
@cinic
cinic / bindings.ts
Created January 14, 2022 19:28 — forked from AlexandrHoroshih/bindings.ts
effector + history
import { matchPath, RouteProps } from "react-router";
// historyUpdated event is subscribed to history via history.listen or any other way
export const createPathMatcher = <Match = unknown>(config: {
path: string | string[] | RouteProps;
clock?: Event<any> | Store<any> | Effect<any, any>;
}) => {
return sample({
source: historyUpdated,
#!/bin/bash
#
# Inspects branch name and checks if it contains a Jira ticket number (i.e. ABC-123).
# If yes, commit message will be automatically prepended with [ABC-123].
#
# Useful for looking through git history and relating a commit or group of commits
# back to a user story.
#
@cinic
cinic / pathOr.js
Created February 8, 2019 12:16
Typings for Ramda pathOr method
declare module ramda {
declare type NestedMap<O: Object, P, T> = $Call<(
& (<A, B, C, D, E>([A, B, C, D, E]) => $ElementType<$ElementType<$ElementType<$ElementType<$ElementType<O, A>, B>, C>, D>, E>)
& (<A, B, C, D>([A, B, C, D]) => $ElementType<$ElementType<$ElementType<$ElementType<O, A>, B>, C>, D>)
& (<A, B, C>([A, B, C]) => $ElementType<$ElementType<$ElementType<O, A>, B>, C>)
& (<A, B>([A, B]) => $ElementType<$ElementType<O, A>, B>)
& (<A>([A]) => $ElementType<O, A>)
& (() => T)
), P>
@cinic
cinic / package.json
Created August 30, 2018 17:54
Package for Exchange UI App
{
"name": "exchange",
"version": "1.0.0",
"description": "Exchange frontend application",
"main": "src/index.js",
"author": "cinic",
"license": "UNLICENSED",
"private": true,
"scripts": {
"start": "babel-node server.js",