- Install iTerm2 from https://www.iterm2.com/
- Install oh-my-zsh from https://ohmyz.sh/ or https://github.com/robbyrussell/oh-my-zsh
- Set iTerm2 theme tab theme to Dark -
Preferences | Appearance | Tabs | Theme > Dark
- Install Fira Code fonts from https://github.com/tonsky/FiraCode (Clone and navigate to
dstr > ttf
, install all font files by double clicking) - Install Powerline fonts from https://github.com/powerline/fonts
- Set fonts for iTerm2 -
Preferences | Profiles | Text
- Change
Font
to14pt Fira code regular
and CheckUse Ligatures
checkbox - Change
Non ASCII Font
to14pt Fira mono
and CheckUse Ligatures
checkbox
- Change
- Install iTerm2 snazzy theme from https://github.com/sindresorhus/iterm2-snazzy
- Navigate to
Preferences | Profiles | Color Presets > Snazzy
- Navigate to
import axios from "axios"; | |
import { settings } from "../settings"; | |
import { authAPI } from "."; | |
const request = axios.create({ | |
baseURL: settings.apiV1, | |
}); | |
request.interceptors.request.use( | |
(config) => { |
let cam, scene, renderer, | |
clock, smokeMaterial, | |
h, w, | |
smokeParticles = []; | |
const animate = () => { | |
let delta = clock.getDelta(); | |
requestAnimationFrame(animate); |
// @ts-check | |
import { useState, useEffect } from 'react' | |
function getCurrentLocation () { | |
return { | |
pathname: window.location.pathname, | |
search: window.location.search | |
} | |
} |
Below are my personal notes related to the Nvidia Jetson Nano Dev-board.
Nvidia allows your to fine tune the performance of your Jetson nano. More on this here.
sudo /usr/bin/jetson_clocks.sh --show
declare const IS_ACTION_FETCH: unique symbol | |
/** | |
* Fetch fabric with statuses actions | |
* @param {(payload: Payload) => Promise<Result>} fetcher | |
* @param {{ | |
* onDone?: (result: Result, store: Store) => void | |
* onFail?: (error: unknown, store: Store) => void | |
* }} hooks | |
* @returns {{ |
// // BEFORE | |
// export const doSome = declareAction( | |
// (payload, store) => some() | |
// ) | |
// export const myAtom = declareAtom(initState, on => [ | |
// on(doSome, (state, payload) => state + payload), | |
// ]) | |
// // NOW |
############################################# | |
### Proxmox V & Docker-CE + Portainer # | |
############################################# | |
## Rescue System | |
# Erase other disks | |
dd if=/dev/zero of=/dev/sda bs=1M count=100 | |
dd if=/dev/zero of=/dev/sdb bs=1M count=100 | |
# You can install debian 10 via the guide: |
Below are a list of System Preference pane URLs and paths that can be accessed with scripting to assist users with enabling macOS security settings without having to walk them through launching System Preferences, finding panes, and scrolling to settings. Not all panes have an accessible anchor and some are OS specific.
To find the Pane ID of a specific pane, open the System Preferences app and select the desired Preference Pane. With the pane selected, open the ScriptEditor.app and run the following script to copy the current Pane ID to your clipboard and display any available anchors:
tell application "System Preferences"
set CurrentPane to the id of the current pane
set the clipboard to CurrentPane