Skip to content

Instantly share code, notes, and snippets.

View elcoputra's full-sized avatar
:octocat:
Focusing

ELCO elcoputra

:octocat:
Focusing
View GitHub Profile
@elcoputra
elcoputra / LogitechF310_Macbook.MD
Created July 26, 2023 15:22 — forked from jackblk/LogitechF310_Macbook.MD
Getting Logitech F310 to work with Macbook USB-C port

Connect & use Logitech F310 with Macbook

Since my Macbook Pro only has USB-C port, I used an USB-A to USB-C adapter to connect my F310 to it, but it does not work (pressing MODE button does not turn on the LED).

How to

To make it work:

  • Disconnect F310 from Mac
  • On F310: switch X-input to D-input
  • Hold Logitech button (in the middle)
  • Connect F310 to Mac via adapter, now you can release the Logitech button.
@elcoputra
elcoputra / ImageController.js
Created December 16, 2022 10:07 — forked from nesimtunc/ImageController.js
Minio Server - NodeJS - File Upload & Photo Showing Example
const formidable = require('formidable');
const fs = require('fs');
var Minio = require('minio');
let minioClient = new Minio.Client({
endPoint: config.MINIO.ENDPOINT,
port: config.MINIO.PORT,
accessKey: config.MINIO.ACCESS_KEY,