Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.
Note that you need the https://brew.sh/ package manager installed on your machine.
brew install fish
Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.
Note that you need the https://brew.sh/ package manager installed on your machine.
brew install fish
#!/usr/bin/env bash | |
# Make sure to `brew install jq coreutils` | |
NODESAPI=/api/v1/nodes | |
function getNodes() { | |
kubectl get --raw $NODESAPI | jq -r '.items[].metadata.name' | |
} |
:root { | |
--slate-50: #f8fafc; | |
--slate-100: #f1f5f9; | |
--slate-200: #e2e8f0; | |
--slate-300: #cbd5e1; | |
--slate-400: #94a3b8; | |
--slate-500: #64748b; | |
--slate-600: #475569; | |
--slate-700: #334155; |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.4784277081489563</real> |
module.exports = { | |
parser: '@typescript-eslint/parser', | |
parserOptions: { | |
project: 'tsconfig.json', | |
sourceType: 'module', | |
}, | |
plugins: ['@typescript-eslint/eslint-plugin'], | |
extends: [ | |
'plugin:@typescript-eslint/recommended', | |
'plugin:unicorn/recommended', |
This is a suggested workflow for building npm modules locally. The particular context will be focused on building a React component lib, but the workflow can be applied for any npm module.
yarn link
is a really great tool for local development. It builds a global npm module that
is symlinked to your local repo. So when you make a change to the repo, the global module is
automatically updated.
import { computed } from '@vue/composition-api'; | |
import { isEqual } from 'lodash'; | |
export default class FormState { | |
constructor() { | |
this.initialFormVals = {}; | |
this.formVals = {}; | |
this.loading = true; | |
this.submitted = false; |
#!/usr/bin/env bash | |
# ~/.macos — https://mths.be/macos | |
# Close any open System Preferences panes, to prevent them from overriding | |
# settings we’re about to change | |
osascript -e 'tell application "System Preferences" to quit' | |
# Ask for the administrator password upfront | |
sudo -v |
#!/bin/bash | |
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it! | |
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS. | |
# This script needs to be run from the volume you wish to use. | |
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh | |
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars. | |
# Get active services: launchctl list | grep -v "\-\t0" | |
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents |
{ | |
"ignoreUploadFiles": [ | |
"state.*", | |
"syncLocalSettings.json", | |
".DS_Store", | |
"sync.lock", | |
"projects.json", | |
"projects_cache_vscode.json", | |
"projects_cache_git.json", | |
"projects_cache_svn.json", |