The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
# File: /lib/systemd/system/thumbor.service | |
[Unit] | |
Description=Photo thumbnail service | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/thumbor -c /etc/thumbor.conf | |
[Install] |
const React = require('react') | |
const Landing = require('./Landing') | |
const Search = require('./Search') | |
const Layout = require('./Layout') | |
const Details = require('./Details') | |
const ReactRouter = require('react-router') | |
const data = require('../public/data') | |
const { Router, Route, hashHistory, IndexRoute } = ReactRouter | |
const Store = require('./Store') | |
const { store } = Store |
package main | |
import ( | |
"log" | |
jwt "github.com/dgrijalva/jwt-go" | |
) | |
type User struct { | |
Name string `json:"name"` |
A lot of people run into the problem of running Let's Encrypt's CertBot Tool and an NGINX on the same container host. A big part of this has to do with CertBot needing either port 80 or 443 open for the tool to work as intended. This tends to conflict with NGINX as most people usually use port 80 (HTTP) or 443 (HTTPS) for their reverse proxy. Section 1 outlines how to configure NGINX to get this to work, and Section 2 is the Docker command to run CertBot.
I use Docker Compose (docker-compose) for my NGINX server. My docker-compose.yml file looks something like this:
I got to here after spending hours trying to deploy to an Elastic Beanstalk instance via CircleCi 2.0 so I thought I'd write up what worked for me to hopefully help others. Shout out to RobertoSchneiders who's steps for getting it to work with CircleCi 1.0 were my starting point.
For the record, I'm not the most server-savvy of developers so there may be a better way of doing this.
const el = document.querySelector(".item"); | |
let isResizing = false; | |
el.addEventListener("mousedown", mousedown); | |
function mousedown(e) { | |
window.addEventListener("mousemove", mousemove); | |
window.addEventListener("mouseup", mouseup); |
{ | |
"jest": { | |
"testMatch": [ | |
"**/__tests__/**/*.test.js" | |
], | |
"moduleNameMapper": { | |
"^~/(.*)": "<rootDir>/src/$1" | |
}, | |
"setupFilesAfterEnv": [ | |
"@testing-library/react/cleanup-after-each", |