Skip to content

Instantly share code, notes, and snippets.

View saifuddin's full-sized avatar

Saifuddin Fakhri saifuddin

  • Nashville, TN
View GitHub Profile
# Dockerfile extending the generic Node image with application files for a
# single application.
FROM gcr.io/google_appengine/nodejs
ARG COMMIT=local
ARG TAG=local
# Check to see if the the version included in the base runtime satisfies
# '>=10.14', if not then do an npm install of the latest available
# version that satisfies it.
RUN /usr/local/bin/install_node '>=10.14'
COPY . /app/
@saifuddin
saifuddin / rsa.js
Created November 18, 2022 02:49 — forked from sohamkamani/rsa.js
An example of RSA Encryption implemented in Node.js
const crypto = require("crypto")
// The `generateKeyPairSync` method accepts two arguments:
// 1. The type ok keys we want, which in this case is "rsa"
// 2. An object with the properties of the key
const { publicKey, privateKey } = crypto.generateKeyPairSync("rsa", {
// The standard secure default length for RSA keys is 2048 bits
modulusLength: 2048,
})
@saifuddin
saifuddin / HowToSharedRepoModelOnGitHub.md
Created October 27, 2019 00:21 — forked from seshness/HowToSharedRepoModelOnGitHub.md
Shared Repository Model for Pull Requests and Code Review

The Shared Repository Model

$ git clone git@github.com:berkeley-food-recommendations/data-gathering.git

You're cloning the main repository - be careful! We're going to enforce a "no committing to master directly" rule, so no committing directly to master, please.

Short Version

@saifuddin
saifuddin / coordinates
Created November 6, 2012 21:00
Coordinates
3.1382101877534776,101.61040842533112
3.157966984110212,101.71162962913513
2.939312193275677,101.69245719909668
2.75307512553801,101.70644760131836
@saifuddin
saifuddin / places
Created November 6, 2012 20:56
Places
Centrepoint
Petronas Twin Tower
Jabatan Perdana Menteri
KLIA