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
@thingsiplay
thingsiplay / proton
Last active December 10, 2024 18:05
Proton script
#!/bin/sh
# Execute Windows programs with Proton from Steams installation folder, without
# starting Steam client.
#
# 1. Create a directory for Proton environment to run in. As an example make a
# folder "proton" in your home directory. This folder must exist in order
# to make Proton work.
#
# 2. Point the variable "env_dir" in this script to that folder or...
@zats
zats / REMAP_M1_KEYS.MD
Last active July 15, 2025 05:54
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()