Skip to content

Instantly share code, notes, and snippets.

@kenianbei
kenianbei / adobe-sucks.sh
Created February 11, 2022 02:49
Kill Adobe Bloat (Mac)
#!/bin/bash
PROCESSES=(
'ACCFinderSync'
'Adobe_CCXProcess'
'AdobeIPCBroker'
'Adobe Desktop Service'
'CrashHandler'
'AdobeCRDaemon'
'Creative Cloud Helper'
@kenianbei
kenianbei / interval.hook.ts
Created April 27, 2022 19:54 — forked from Danziger/interval.hook.ts
✨ Declarative useTimeout (setTimeout), useInterval (setInterval) and useThrottledCallback (useCallback combined with setTimeout) hooks for React (in Typescript)
import React, { useEffect, useRef } from 'react';
/**
* Use setInterval with Hooks in a declarative way.
*
* @see https://stackoverflow.com/a/59274004/3723993
* @see https://overreacted.io/making-setinterval-declarative-with-react-hooks/
*/
export function useInterval(
callback: React.EffectCallback,