Skip to content

Instantly share code, notes, and snippets.

@dimMaryanto93
dimMaryanto93 / .00-README.md
Last active August 6, 2023 06:09
Docker + Swarm: Pemula sampai Mahir

DevOps Docker: Pemula sampai Mahir

Belajar menjadi DevOps menggunakan Docker buat temen-temen yang masih pemula sampai mahir, Materi yang dibahas diantaranya

  1. Docker Container
  2. Docker Volume
  3. Docker Network
  4. Docker Dockerfile
  5. Docker Compose
  6. Docker Machine
@carlolars
carlolars / .wsl-git.md
Last active August 1, 2025 16:35
HOWTO: Use WSL and its Git in a mixed development environment

How to setup a development environment where Git from WSL integrates with native Windows applications, using the Windows home folder as the WSL home and using Git from WSL for all tools.

Note if using Git for Windows, or any tool on the Windows side that does not use Git from WSL then there will likely be problems with file permissions if using those files from inside WSL.

Tools

These are the tools I use:

  • git (wsl) - Command line git from within WSL.
  • Fork (windows) - Git GUI (must be used with wslgit)
  • wslgit - Makes git from WSL available for Windows applications. Important! Follow the installation instructions and do (at least) the first optional step and then the Usage in Fork instructions.
@MrJadaml
MrJadaml / new-mocks-pattern-rfc.md
Last active August 21, 2020 14:40
RFC to change the mocks module convention.

Summary

Mocks are designated by a .mocks.js extensions and would be co-located with their corresponding module.

Basic example

├── SomeComponent
  ├── __snapshots__/
 ├── SomeComponent.scss
@sarfarazansari
sarfarazansari / nodejs_aws_s3_file_upload.js
Last active March 15, 2024 09:40
How to upload files to AWS S3 with NodeJS - AWS-SDK? With the help of this library you can upload any kind of file to s3. (NODEJS, AWS-SDK, S3)
/**
* we are going to upload file to s3 via node js by using
* aws-sdk - required
* busboy - required
* uuid - optional - for image renaming purpose
* with this library you can upload any kind of file to s3 via node js.
*/
const AWS = require('aws-sdk');
const UUID = require('uuid/v4');
@agrcrobles
agrcrobles / android_instructions_29.md
Last active February 15, 2025 21:03 — forked from patrickhammond/android_instructions.md
Setup Android SDK on OSX with and without the android studio

Hi, I am a fork from https://gist.github.com/patrickhammond/4ddbe49a67e5eb1b9c03.

A high level overview for what I need to do to get most of an Android environment setup and maintained on OSX higher Catalina and Big Sur with and without Android Studio been installed.

Considering the SDK is installed under /Users/<your_user>/Library/Android/sdk folder which is the Android Studio preferred SDK location, but it works fine under /usr/local/share/android-sdk as well, which is a location pretty much used on CI mostly.

Prerequisites:

https://github.com/shyiko/jabba instead ?

Master Interview Questions


SECTION - Contents

TODO / PAradignms

Functional Programming key words

first-class functions

@wesbos
wesbos / async-await.js
Created February 22, 2017 14:02
Simple Async/Await Example
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works
const axios = require('axios'); // promised based requests - like fetch()
function getCoffee() {
return new Promise(resolve => {
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee
});
}
Go to https://us-west-2.console.aws.amazon.com/console/home?region=us-west-2#
Click on Services -> EC2
Instances (on the left)
Launch Instance
Select OS (I like ubuntu)