Skip to content

Instantly share code, notes, and snippets.

View garthtee's full-sized avatar
:shipit:

Garth Toland garthtee

:shipit:
View GitHub Profile
@garthtee
garthtee / uninstall.txt
Created February 17, 2023 16:51
Uninstiall Logitech Options Plus on MacOs
When the app name is LogiOptionPlus
Open terminal from /Applications/Utilities/
Copy paste the following command in the terminal
sudo /Library/Application\ Support/Logitech.localized/LogiOptionsPlus/logioptionsplus_agent.app/Contents/Frameworks/logioptionsplus_updater.app/Contents/MacOS/logioptionsplus_updater --full --uninstall
Press enter and type the admin password, Press Enter again
Goto Users\Shared\ - To ensure we don't have any entries related to the LogiOptionsPlus app.
Go to /Library/Application Support/Logitech.localized/ - to ensure we don't have any entries related to the LogiOptionsPlus app.
@garthtee
garthtee / .zshrc
Last active March 21, 2022 12:35
Handy Aliases for your bash/zsh profile
alias mvci="/usr/local/bin/mvn clean install"
alias mvcp="/usr/local/bin/mvn clean package"
alias sbr="mvn spring-boot:run"
alias c="clear" # Thee best!
alias l="ls -alh"
alias port="lsof -i" # Usage: port tcp:8080
alias kill-safe='kill -15' # Usage: kill-safe 12345
alias kill-force='kill -9'
# NPM
alias nerd="npm run dev"
@garthtee
garthtee / settings.json
Created September 6, 2020 14:27
My VSCode settings for developing Javascript
{
"window.zoomLevel": 1,
"workbench.iconTheme": "material-icon-theme",
"editor.tabSize": 2,
"editor.fontSize": 14,
"terminal.integrated.fontSize": 14,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
"eslint.alwaysShowStatus": true,
"git.autofetch": true,
@garthtee
garthtee / AxiosCancelRequestExample.js
Last active December 23, 2022 19:42
An example of an Axios request that can be cancelled.
import React, {
Component,
useEffect
} from 'react';
import axios from 'axios';
const CancelToken = axios.CancelToken;
let cancel;
const AxiosCancelRequestExample = () => {