Skip to content

Instantly share code, notes, and snippets.

View boehs's full-sized avatar
🐕‍🦺
woof

Evan Boehs boehs

🐕‍🦺
woof
View GitHub Profile
@zats
zats / REMAP_M1_KEYS.MD
Last active December 23, 2023 20:32
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
twenty one pilots █████████▎░░░░░░░ 74 plays
Lana Del Rey █▍░░░░░░░░░░░░░░░ 11 plays
Arctic Monkeys █▏░░░░░░░░░░░░░░░ 9 plays
Loossemble █▏░░░░░░░░░░░░░░░ 9 plays
Dua Lipa ▊░░░░░░░░░░░░░░░░ 6 plays
Sophie Ellis-Bextor ▊░░░░░░░░░░░░░░░░ 6 plays
Doja Cat ▋░░░░░░░░░░░░░░░░ 5 plays
Girls Aloud ▋░░░░░░░░░░░░░░░░ 5 plays
Jaxomy ▋░░░░░░░░░░░░░░░░ 5 plays
Lorde ▋░░░░░░░░░░░░░░░░ 5 plays
@rumansaleem
rumansaleem / clean-up-arch-linux.md
Created May 28, 2019 08:51
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
@Daniel-Hug
Daniel-Hug / change-tag.js
Last active November 12, 2021 02:42
JS function: replace tag name but keep element contents. Source: http://stackoverflow.com/a/15086834/552067
// Replace tag name but keep element contents
function changeTag(el, newTagName, keepAttributes) {
var newEl = document.createElement(newTagName);
// Copy the children
while (el.firstChild) {
newEl.appendChild(el.firstChild); // *Moves* the child
}
// Copy the attributes
@ishu3101
ishu3101 / sample-resume.json
Last active January 31, 2024 22:57
Sample Resume in JSON Resume Format
{
"basics": {
"name": "Your first and last name",
"label": "",
"picture": "",
"email": "Your email address",
"phone": "A phone number, with any formatting you like. E.g. (555) 555-5555.",
"degree": "",
"website": "Your website URL",
"summary": "A one-sentence to one-paragraph overview text. Do not include any line-breaks.",
@luruke
luruke / smashingmagazine.js
Last active January 12, 2022 15:34
Source code of the demo "Improving User Flow Through Page Transitions" on Smashing Magazine.
/*
https://www.smashingmagazine.com/2016/07/improving-user-flow-through-page-transitions/
You can copy paste this code in your console on smashingmagazine.com
in order to have cross-fade transition when change page.
*/
var cache = {};
function loadPage(url) {
if (cache[url]) {

Turning Off Github Issues

My friend Michael Jackson turned off github issues on one of his smaller projects. It got me thinking...

Maintainers getting burned out is a problem. Not just for the users of a project but the mental health of the maintainer. It's a big deal for both parties. Consumers want great tools, maintainers want to create them, but maintainers don't want to be L1 tech support, that's why they

@zacwest
zacwest / ios-font-sizes.swift
Last active March 27, 2024 07:16
iOS default font sizes - also available on https://www.iosfontsizes.com
let styles: [UIFont.TextStyle] = [
// iOS 17
.extraLargeTitle, .extraLargeTitle2,
// iOS 11
.largeTitle,
// iOS 9
.title1, .title2, .title3, .callout,
// iOS 7
.headline, .subheadline, .body, .footnote, .caption1, .caption2,
]
@abhisekp
abhisekp / Install Hubflow in Windows.md
Last active June 15, 2023 12:14
How to install hubflow in Windows?

How to install hubflow in Windows?

— by Abhisek Pattnaik <abhisekp@engineer.com>

Clone latest hubflow

git clone https://github.com/datasift/gitflow hubflow
cd hubflow

Copy all git-hf prefixed files to bin directory in git installation directory

@lukehedger
lukehedger / ffmpeg-compress-mp4
Last active April 18, 2024 21:00
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4