- using
pkgutil
# list all your installed packages
pkgutil --pkgs
# show your package info
pkgutil --pkg-info | import { useEffect, useState } from "react"; | |
| import { | |
| NativeEventEmitter, | |
| NativeModules, | |
| Platform, | |
| StatusBar, | |
| } from "react-native"; | |
| const { StatusBarManager } = NativeModules; |
| netsh winsock reset | |
| ipconfig /release | |
| netsh int ip reset | |
| ipconfig /flushdns | |
| ipconfig /renew |
| // Usage: | |
| // const Button = () => { | |
| // const { completion, ...bind } = useTimedEvent(() => { fire(); }, { duration: 1000 }); | |
| // return <button {...bind}>Button</button>; | |
| // }; | |
| import { useEffect, useRef, useState } from "react"; | |
| const useTimedEvent = ( | |
| callback: (() => void) | (() => Promise<void>), |
I wrote this answer on stackexchange, here: https://stackoverflow.com/posts/12597919/
It was wrongly deleted for containing "proprietary information" years later. I think that's bullshit so I am posting it here. Come at me.
Amazon is a SOA system with 100s of services (or so says Amazon Chief Technology Officer Werner Vogels). How do they handle build and release?
| CREATE SEQUENCE country_seq; | |
| CREATE TABLE IF NOT EXISTS country ( | |
| id int NOT NULL DEFAULT NEXTVAL ('country_seq'), | |
| iso char(2) NOT NULL, | |
| name varchar(80) NOT NULL, | |
| nicename varchar(80) NOT NULL, | |
| iso3 char(3) DEFAULT NULL, | |
| numcode smallint DEFAULT NULL, | |
| phonecode int NOT NULL, |
| declare module "*.mdx" { | |
| let MDXComponent: (props: any) => JSX.Element; | |
| export default MDXComponent; | |
| export const frontMatter: FrontMatter[]; | |
| } |
https://www.macobserver.com/tips/deep-dive/evade-macos-many-open-files-error-pushing-limits/
Archived links:
Once your Mac has booted into Recovery Mode, you should click Utilities from the top menu bar, then Terminal. In Terminal, issue the following command:
| # Print Exclusions to verify | |
| sudo /usr/libexec/PlistBuddy -c "Print :Exclusions" /System/Volumes/Data/.Spotlight-V100/VolumeConfiguration.plist | |
| # Patch Exclusions - System reboot may be needed so it shows up in Settings | |
| sudo /usr/libexec/PlistBuddy -c "Add :Exclusions: string /Users/ecklf/OrbStack" /System/Volumes/Data/.Spotlight-V100/VolumeConfiguration.plist | |
| # Patching Permissions may be needed | |
| sudo chown -R $USER:$GROUP /.Spotlight-V100/ sudo chmod -R 777 /.Spotlight-V100/ | |
| # Restart launchd service |