Skip to content

Instantly share code, notes, and snippets.

View duluca's full-sized avatar
💭
😎

Doguhan Uluca duluca

💭
😎
View GitHub Profile
@duluca
duluca / package.json
Created September 3, 2014 17:33
remote-retro-hapi
{
"name": "remote-retro-hapi",
"version": "0.0.1-1",
"description": "A tool to host retrospectives for Agile Scrum projects with remote members",
"main": "server.js",
"engines": {
"node": "0.10.x"
},
"scripts": {
"postinstall": "bower install",
@duluca
duluca / package.json
Created January 5, 2017 14:23 — forked from kgroat/package.json
An example of how to use npm as a build tool along with TypeScript
{
"name": "playground",
"version": "1.0.0",
"main": "server/app.js",
"private": true,
"scripts": {
"clean": "npm run clean:client && npm run clean:server",
"clean:client": "rm -rf public/*.* && rm -rf public/**/*.* && rm -rf src/ts/*.js && rm -rf src/ts/**/*.js",
"clean:server": "rm -rf server/*.{js,d.ts} && rm -rf server/**/*.{js,d.ts}",
"compile": "npm run compile:client && npm run compile:sass && npm run compile:server && npm run compile:static",
@duluca
duluca / StartingWithDocker.md
Last active June 30, 2020 02:20
Starting with Docker

What is Docker?

  • Docker is an open platform for developing, shipping, and running applications.
  • Combines a lightweight container virtualization platform with workflows and tooling that help manage and deploy applications.

Why is Containerization Important?

  • Containerization allows for encapsulation of app specific configuration concerns.
  • Encapsulation allows for decoupling of dependencies, so each app can depend on different versions.
  • Simpler dependency management results in a low friction IT environment, less things to learn and break.
  • Low friction allows to ship code faster, test faster, deploy faster, shortening the cycle between writing code and running code.
@duluca
duluca / http-server.js
Created March 12, 2017 00:47
No plug-in http server for Node.js
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8080;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), "public", uri);
@duluca
duluca / common-commands.md
Last active September 11, 2018 14:20
Commonly Used, but Oft-Forgotten CLI Commands

Commonly Used, but Oft-Forgotten CLI Commands

MacOS

  • zip -e my_zip_file.zip your_original_file.docx

SSH

  • ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
  • eval "$(ssh-agent -s)"
  • ssh-add -K ~/.ssh/id_rsa use this to add existing key to your terminal session
@duluca
duluca / Legacy System Modernization.md
Last active April 12, 2017 14:18
What is Legacy System Modernization?

Legacy System Modernization

Here is our understanding of what legacy system modernization is vs. what it isn't -- and the importance of doing it in the first place.

Defining Legacy System Modernization

We modernize to rebuild (and rethink) legacy systems to achieve new levels of scalability, maintainability, and flexibility.

Legacy System Modernization is NOT...:

@duluca
duluca / Outline.md
Last active June 20, 2017 16:39
The JavaScript Promise Outline

The JavaScript Promise

A guide to effective, productive and joyful development experience

The JavaScript Promise is about the promise of JavaScript as a whole, including the language, community, libraries, frameworks and tools, enabling you to be a happier, more effective and productive creator for beginners and seasoned software engineers alike.

If you're an absolute beginner, the JavaScript ecosystem offers the gentlest ramp up possible in any web-ready technology stack to bring you up from zero to hero. You don't need to be a long time coder or have a computer science degree to achieve results with JavaScript.

If you're a professional whose needs scale from a single page website to large scale enterprise deployment, who needs reliability, performance, security, code analysis and automated testing, JavaScript is fully capable of meeting and exceeding these needs and do so in a cost effective manner.

The JavaScript Promise aims to open your mind up to the possibilities that are enabled by the JavaS

@duluca
duluca / npm-scripts-for-docker.md
Last active April 8, 2024 09:52
npm scripts for Docker

These are generic npm scripts that you can copy & paste into your package.json file as-is and get access to convinience scripts to manage your Docker images all in one place.

How to Use

npm i -g mrm-task-npm-docker
npx mrm npm-docker

Contribute

Here's the code repository https://github.com/expertly-simple/mrm-task-npm-docker

@duluca
duluca / aws-ecs-deploy-permissions.md
Last active April 14, 2021 06:44
npm scripts for AWS ECS (Blue-Green Deployment)

AWS ECS Deploy Permissions

In order to be able to deploy using the scripts provided by npm scripts for AWS ECS make sure your user is part of an IAM Group that has the following inline policy applied to it.

Note: This may not be complete.

{
    "Version": "2012-10-17",
    "Statement": [