Skip to content

Instantly share code, notes, and snippets.

@ynwd
ynwd / estimation.md
Last active June 9, 2023 02:00
Run fast, pay later

Time estimation is used to predict the amount of time that will be required to complete a task. We have talked about how a central part of being a project manager involves planning. Carefully performing key steps of your planning process, such as time estimation, can have a big impact on the success of your project. Conversely, flawed time estimation is the root cause of many failed projects. That means many projects fail because project managers and teams fail to accurately estimate the time that it will take to complete tasks.

Let’s discuss the following case study, which discusses how inaccurate time estimation can affect a project.

Run fast, pay later: A case study on time estimation

Kendra just scored a project manager role on a new project. It was a highly competitive bid, and the company and Kendra are eager to do a great job.

Kendra realized immediately that the timeline for the project would be almost impossible to execute. However, this was the first big project she was asked to manage. There

@ynwd
ynwd / qemu.md
Created May 26, 2023 03:46
Macos, Qemu and Debian

Install homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install QEMU and other required packages:

brew install qemu
@ynwd
ynwd / Vagrantfile
Last active December 21, 2022 12:52
Alpine and Kubernetes in Vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "generic/alpine317"
config.vm.synced_folder ".", "/vagrant"
config.vm.network "forwarded_port", guest: 6443, host: 6443
config.vm.provider "virtualbox" do |vb|
vb.memory = 4096
@ynwd
ynwd / setup_oauth.md
Last active July 26, 2022 03:05
Cara Setup Oauth2 di Kong Gateway
@ynwd
ynwd / podman-docker-compose.md
Created June 24, 2022 08:56
How to run docker-compose on podman and macos

podman

Install podman and docker-compose

> brew install podman
> brew install docker-compose

Create a symlink so podman can be executed with "docker" command.

@ynwd
ynwd / settings.json
Created March 25, 2022 02:54
vscode formatOnSave
{
"editor.formatOnSave": false,
"[javascript, python]": {
"editor.formatOnSave": true
}
}
@ynwd
ynwd / main.js
Created February 13, 2022 04:43
Very Simple Bull Queue without Redis
const Queue = require('bull')
const q = new Queue('my-first-queue')
setTimeout(async () => {
const data = { message: "my task" }
await q.add(data)
}, 5000)
q.process((job, done) => {
@ynwd
ynwd / docker-compose.yml
Created February 13, 2022 04:34
Very Simple Bull Queue
version: "3.9"
services:
redis:
image: redis:6-alpine
ports:
- 6379:6379
@ynwd
ynwd / consumer.js
Created February 13, 2022 00:01
Bull Queue Hello World
const Queue = require('bull')
const q = new Queue('my-first-queue', {
redis: { port: 6379, host: "localhost" }
})
q.process((job, done) => {
done(null, 'succes')
})
q.on('completed', (job) => {
@ynwd
ynwd / sebelum_refactor.go
Created January 31, 2022 15:15
SOLID: prinsip liskov
package main
import "fmt"
type A struct{}
func (a A) Test() {
fmt.Println("Printing A")
}