Skip to content

Instantly share code, notes, and snippets.

View glarivie's full-sized avatar

Guillaume L. glarivie

View GitHub Profile
@glarivie
glarivie / Image.js
Last active February 7, 2018 15:18
Hide <img /> on error with React (how to hide default browser broken image icon on React)
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
class Image extends PureComponent {
static propTypes = {
disabled: PropTypes.bool,
}
static defaultProps = {
disabled: true,
@glarivie
glarivie / raspi-setup-gitea.md
Last active February 15, 2018 16:10 — forked from mirhec/raspi-setup-gitea.md
Installing Gitea on Raspberry Pi with nginx, SSL and automatic backups

Setup Gitea on Raspberry Pi (3)

These instructions are based on this article: https://www.alexruf.net/2016/05/23/setup-gogs-git-service.html.

Setup Raspberry Pi with minimal Raspbian image. You need to connect to the HDMI port and set the following:

sudo raspi-config

There you need to enable the SSH server and you should change the hostname.