Starting a personal node project could be easy; starting a team node project could be challenging.
I am a developer currently working in SEEK Australia.
In my experience, common mistakes developer make when starting a projects are:
- No Linting
Starting a personal node project could be easy; starting a team node project could be challenging.
I am a developer currently working in SEEK Australia.
In my experience, common mistakes developer make when starting a projects are:
package org.bennydict.brainmethodfuckhandles; | |
import java.io.*; | |
import java.lang.invoke.MethodHandle; | |
import java.lang.invoke.MethodHandles; | |
import java.lang.invoke.MethodType; | |
import java.util.HashMap; | |
import java.util.Scanner; | |
public class BrainFuckMethodHandleCompiler { |
When initalizing a Terraform backend, a .terraform/terraform.tfstate
file is written to disk and can include storage account secrets.
Include the Azure Storage key in the Terraform configuration.
Not ideal: the Storage access key is exposed both in the configuration and in the .terraform/terraform.tfstate
file.
Configuration:
/* | |
* Server.cpp | |
* | |
* EventServer is a simple C++ TCP socket server implementation, | |
* to serve as an example to anyone who wants to learn it. | |
* It can interface with the rest of your program using three callback functions. | |
* - onConnect, which fires when a new client connects. the client's fd is passed. | |
* - onDisconnect, which fires when a client disconnects. passes fd. | |
* - onInput, fires when input is received from a client. passes fd and char* | |
* |
FROM openjdk:8-jdk-alpine | |
VOLUME /tmp | |
# see https://devcenter.heroku.com/articles/exec#enabling-docker-support | |
RUN apk add --no-cache curl bash openssh python | |
ADD src/main/docker/heroku-exec.sh /app/.profile.d/heroku-exec.sh | |
RUN chmod a+x /app/.profile.d/heroku-exec.sh | |
ADD src/main/docker/sh-wrapper.sh /bin/sh-wrapper.sh | |
RUN chmod a+x /bin/sh-wrapper.sh |
from http://zqdevres.qiniucdn.com/data/20170907091103/index.html | |
- download ngingx with RTPM module http://nginx-win.ecsds.eu/download/ *nginx 1.7.12.1 Lizard.zip | |
- unzip | |
- create start.bat script | |
@echo off | |
title Start Stream | |
cd /d "C:\nginx" | |
start nginx | |
exit |
{ | |
"emojis": [ | |
{"emoji": "👩👩👧👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "👩‍👩‍👧‍👧", "category": "People & Body (family)", "order": ""}, | |
{"emoji": "👩👩👧👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "👩‍👩‍👧‍👦", "category": "People & Body (family)", "order": ""}, | |
{"emoji": "👩👩👦👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "👩‍👩‍👦‍👦", "category": "People & Body (family)", "order": ""}, | |
{"emoji": "👨👩👧👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "👨‍👩&z |
### Generic Dockerfile demonstrating good practices | |
### Imports | |
# Bad-ish, we do not need Ubuntu for this, nor do we want latest if we are using in a build system, predictable is better | |
FROM ubuntu:latest | |
# Better, using a small image since our app has no dependency on Ubuntu | |
FROM alpine:3.3 |