Skip to content

Instantly share code, notes, and snippets.

@akhrabrov
akhrabrov / generate-ssh-key.sh
Created November 30, 2019 22:43 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@akhrabrov
akhrabrov / themes.js
Last active May 27, 2019 14:37
Merge theme providers in styled components
import React from 'react';
import { ThemeProvider }, styled from 'styled-components';
const globalTheme = {
mainColor: 'black',
borderColor: '#99abb3',
borderRadius: '7px',
mixins: {
link: `
color: red;
@akhrabrov
akhrabrov / eslintCore.md
Last active April 19, 2019 12:29
eslint core rules

Main rules

  • extends "eslint:recommended"

  • quotes: double - quotes: ["error", "double"]

  • semicolons - required - semi: ["error", "always"]

  • 2 spaces, CRLF - "indent": ["error", 2]

  • use strict required - strict: ["error", "global"]

  • https://eslint.org/docs/rules/max-len.html - ["error", { "code": 120 }, { "ignoreTemplateLiterals": true }]