Skip to content

Instantly share code, notes, and snippets.

View inlife's full-sized avatar
馃嚭馃嚘
Be Mighty

Vladyslav Hrytsenko inlife

馃嚭馃嚘
Be Mighty
View GitHub Profile
@zats
zats / REMAP_M1_KEYS.MD
Last active April 12, 2025 17:56
Apple M1 MacBook Do Not Disturb Key remapping

Following is a sample of LaungAgent that remaps do not disturb key to Siri (I am using Type to Siri)

This is a lightweight solution not relying on external apps.

Setting up

  1. Create ~/Library/LaunchAgents/com.local.KeyRemapping.plist
  2. Edit it to have following content
@spraddles
spraddles / linkedin-api.js
Last active August 22, 2023 12:15
Linkedin API to create a video post
import axios from 'axios'
import fs, { readFileSync } from 'fs'
import { Blob } from 'buffer'
import { exec } from 'child_process'
import path from 'path'
import stream from 'stream'
import { promisify } from 'util'
import dotenv from 'dotenv'
dotenv.config()