Skip to content

Instantly share code, notes, and snippets.

View zekhoi's full-sized avatar
⚠️
ⓘ User is suspected to be a part of an online terrorist organization.

Khoironi Kurnia Syah zekhoi

⚠️
ⓘ User is suspected to be a part of an online terrorist organization.
View GitHub Profile
@ixahmedxi
ixahmedxi / settings.json
Created January 2, 2024 08:05
My settings.json
{
"workbench.startupEditor": "none",
"workbench.iconTheme": "moxer-icons",
"workbench.colorTheme": "Aura Dark",
"workbench.settings.editor": "json",
"breadcrumbs.enabled": false,
"explorer.compactFolders": false,
"editor.wordWrap": "bounded",
"editor.tabSize": 2,
"editor.inlineSuggest.enabled": true,
@danielwetan
danielwetan / nodejs-cicd-github-actions.md
Last active October 15, 2025 06:50
Deploy Node.js to VPS using Github Actions

Deploy Node.js to VPS using Github Actions

Steps to deploy Node.js to VPS using PM2 and Github Actions

1. Clone repo to VPS folder

@stomg7969
stomg7969 / state.js
Created May 14, 2019 18:07
FILTER BLOG - state
state = {
userInputContainerClicked: false,
searchTerm: "",
// tags that render are inside of 'passingTags' object.
passingTags: {
search: {
inputTerm: ""
},
price: {
lowHigh: false,
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active October 19, 2025 03:28
Conventional Commits Cheatsheet
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active October 19, 2025 14:21
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@BeattieM
BeattieM / API Contract Example Spec.md
Last active May 14, 2025 15:27
An example of an API contract between the server and front-end devices

#Users

  • User object
{
  id: integer
  username: string
  email: string
  created_at: datetime(iso 8601)
  updated_at: datetime(iso 8601)
}
@rvl
rvl / git-pushing-multiple.rst
Created February 9, 2016 11:41
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@StuartGordonReid
StuartGordonReid / DistanceMetrics.py
Created June 15, 2015 14:36
Implementation of various distance metrics in Python
import math
import random
import csv
import cProfile
import numpy as np
import hashlib
memoization = {}
@mbakaitis
mbakaitis / recursionAlternative.js
Last active July 24, 2023 01:25
Bad Things: Recursive event listener creation
// a way to recurse through ports until an open port is found
// based upon the Node.js documentation
var http = require('http');
var listenerCounter = 1;
var port = 8000;
var HTTPserver = http.createServer(function (request, response) {