Skip to content

Instantly share code, notes, and snippets.

View evgenyantipin's full-sized avatar
🏠
Working from home

Evgeny Antipin evgenyantipin

🏠
Working from home
View GitHub Profile
@nwatab
nwatab / App.tsx
Last active February 18, 2021 15:43
Firebase Authentication sample signin, signup and email verification. SignUp code is complicated and I want to refactor.
import React from 'react';
import { BrowserRouter as Router, Route, Switch} from 'react-router-dom'
import { ThemeProvider } from '@material-ui/styles';
import {Elements} from '@stripe/react-stripe-js';
import {loadStripe} from '@stripe/stripe-js';
import theme from './Theme'
import { AuthProvider } from './Auth'
import SignUp from './SignUp'
@wojtekmaj
wojtekmaj / .gitignore
Last active September 21, 2025 08:41
How to upgrade Yarn to Yarn Modern (v4 at the moment) seamlessly
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
@jbutko
jbutko / handle-file-download-react-axios.js
Last active September 19, 2024 14:28
React, JS, Axios: Download blob file (PDF...)
import axios, { AxiosResponse } from 'axios';
import { get } from 'lodash-es';
const rest = axios.create({
baseURL: 'some base URL goes here',
});
// this one send file as Blob type
const getPdf = () => (
rest.get(`/get-pdf`, {
/*
It's now a package. You can find it here:
https://github.com/joshnuss/svelte-local-storage-store
*/
// Svelte store backed by window.localStorage
// Persists store's data locally
@vaban-ru
vaban-ru / awesomeMask.js
Last active May 19, 2024 12:56
Универсальная маска для России с помощью iMask.js
// ДЕМО: https://codepen.io/vtboren/pen/ZdGRXp
// Подключаем скрипт маски https://unmanner.github.io/imaskjs/
// Функция маски
// Работает сразу на все поля с типом поля tel
function initPhoneMask() {
$('input[type=tel]').each(function(index, element) {
var mask = IMask(element, {
mask: [
@pedrouid
pedrouid / setup-ssl.md
Last active May 31, 2025 17:30
Setup SSL with NGINX reverse proxy

Get a Free SSL Certificate With Let’s Encrypt

Let’s Encrypt is a free, automated, and open Certificate Authority.

  1. Install tools for using the Let's Encrypt certificates using Certbot
  sudo apt-get update \
  sudo apt-get install software-properties-common
@gmolveau
gmolveau / how_to_reverseproxy_proxypass_nginx_letsencrypt.md
Last active February 4, 2026 11:22
How to use nginx as a reverse-proxy with letsencrypt

How to use nginx as a reverse-proxy with letsencrypt

Your infrastructure

generated via plantuml

Imgur

Requirements

@a-barbieri
a-barbieri / README.md
Last active June 6, 2021 21:48
NextJS sitemap generator with dynamic URL

NextJS sitemap generator

Install

The current setup has been tested on Next Js 7.0.0.

You need to install Axios.

$ npm install axios
@hackedunit
hackedunit / install-redis.md
Last active July 14, 2025 13:57
Install and configure Redis on Ubuntu 16.04 with systemd
  1. Install pre-requisities

sudo apt-get install build-essential tcl

  1. Install Redis
cd /tmp
curl -O http://download.redis.io/redis-stable.tar.gz
tar xzvf redis-stable.tar.gz