Skip to content

Instantly share code, notes, and snippets.

View abhiagrawal9's full-sized avatar
🎯
Focused

Abhishek Agrawal abhiagrawal9

🎯
Focused
View GitHub Profile
@abhiagrawal9
abhiagrawal9 / iterm2-solarized.md
Created June 4, 2024 05:21 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

Permanently assigning root privileges to a user on a Unix-based system, like macOS, is generally not recommended due to security risks. However, if you have a specific need for this configuration and understand the associated risks, you can follow these steps:
1. **Backup Your System**: Before making any changes, it's crucial to back up your system to avoid potential data loss or system instability.
2. **Edit the sudoers file**: The sudoers file controls who can run commands with elevated privileges using the `sudo` command.
Open a terminal and run the following command to edit the sudoers file with the `visudo` command:
```
sudo visudo
```
@abhiagrawal9
abhiagrawal9 / New Mac set up
Last active June 6, 2023 03:19
My Shell, Terminal, Formulae and Apps
Shell I use: zsh
Terminal I use: iTerm2
Youtube video link: https://www.youtube.com/watch?v=pTW02GMeI74
=======================
Brew casks and formulae
=======================
formulae
--------
imagemagick
@abhiagrawal9
abhiagrawal9 / .zshrc
Last active June 6, 2023 03:50
My "oh my zsh" configuration
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@abhiagrawal9
abhiagrawal9 / .vimrc
Last active July 8, 2022 16:38
My vim configuration
" Comments in Vimscript start with a `"`.
" If you open this file in Vim, it'll be syntax highlighted for you.
" Vim is based on Vi. Setting `nocompatible` switches from the default
" Vi-compatibility mode and enables useful Vim functionality. This
" configuration option turns out not to be necessary for the file named
" '~/.vimrc', because Vim automatically enters nocompatible mode if that file
" is present. But we're including it here just in case this config file is
" loaded some other way (e.g. saved as `foo`, and then Vim started with
@abhiagrawal9
abhiagrawal9 / settings.json
Last active June 1, 2024 02:02
My VS Code - Custom Settings
{
"editor.fontSize": 13,
"terminal.integrated.fontSize": 13,
"window.zoomLevel": 0.5,
"editor.formatOnSave": true,
"editor.wordWrap": "on",
"editor.wordWrapColumn": 200,
"editor.linkedEditing": true,
"prettier.jsxSingleQuote": true,
"prettier.singleQuote": true,
@abhiagrawal9
abhiagrawal9 / ssh.md
Created September 12, 2021 12:40 — forked from bradtraversy/ssh.md
SSH & DevOps Crash Course Snippets

SSH Cheat Sheet

This sheet goes along with this SSH YouTube tutorial

Login via SSH with password (LOCAL SERVER)

$ ssh brad@192.168.1.29

Create folder, file, install Apache (Just messing around)

$ mkdir test

$ cd test