Skip to content

Instantly share code, notes, and snippets.

@cs-fedy
Last active January 16, 2023 17:12
Show Gist options
  • Select an option

  • Save cs-fedy/b6582942f086d92cd7891d073cecc156 to your computer and use it in GitHub Desktop.

Select an option

Save cs-fedy/b6582942f086d92cd7891d073cecc156 to your computer and use it in GitHub Desktop.
my settings

installing chocolatey(windows package manager):

  1. run power shell as administrator.
  2. type Set-ExecutionPolicy Bypass -Scope Process -Force; `iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')).

Chocolatey packages:

  • install dart: choco install dart-sdk.
  • install flutter: choco install flutter.
  • install google chrome: choco install google-chrome-x64.
  • install python: choco install python.
  • install winrar: choco install winrar.
  • install android studio: choco install androidstudio.
  • install firefox: choco install firefox.
  • install spotify: choco install spotify.
  • install adobe reader: choco install adobereader.
  • install nodejs: choco install nodejs.
  • install git: choco install git.
  • install anaconda 3: choco install anaconda3.
  • install discord: choco install discord.
  • install driver booster: choco install driverbooster.
  • install atom: choco install atom.
  • install uninstaller: choco install iobit-uninstaller.
  • install pycharm: choco install pycharm-community.
  • install notion: choco install notion.
  • install obs: choco install obs-virtualcam.
  • install postman: choco install postman.
  • install twitch: choco install twitch.
  • install vscode: choco install vscode.
  • install docker compose: choco install docker-compose.
  • install docker cli: choco install docker-cli.
  • install docker desktop: choco install docker-desktop.
  • install postgresSQL: choco install postgresql12.
  • install intellij idea: choco install intellijidea-community
  • install R studio: choco install r.studio
  • install R: choco install r
  • install java jdk: choco install openjdk
  • install figma: choco install figma
  • install power toys: choco install powertoys
  • install maven: choco install maven
  • install PHP: choco install php
  • install golang: choco install golang
  • install goland: choco insall goland
  • install mongodb compas: choco install mongodb-compass --version=1.21.2
  • install ngrok: choco install ngrok.portable

terminal settings:

  • oh my zsh settings:
    sudo apt install zsh
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    
    sudo apt-get install fonts-powerline
    code ~/.zshrc # to customize it
    
    1. Change the ZSH_THEME="random". Your terminal sessions should be looking very fancy. Now hit ctrl+shift+3 to cycle through different options.

installing nodejs:

  • using bash, install NVM like so:

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
    
  • If using Zsh, open the ~/.zshrc file and update the plugins: plugins=(git nvm).

  • Install the recommended LTS version of Node. It will automatically install NPM and Node: nvm install 12.16.1.

installing git:

  1. Install the latest version of git: sudo apt install git.
  2. If you work with Github it can be useful to cache your git credentials to avoid typing your username/password on every remote push:
    git config --global user.name "name here"
    git config --global user.email "hello@gmail.com"
    git config --global credential.helper cache --timeout=3600
    

installing python:

To install python run the following at the WSL:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update && upgrade
sudo apt install python3.10 python3-pip ipython3 

Write and Run a C Program in WSL:

Install the build-essential packages: sudo apt-get install build-essential.

working with anaconda:

  1. download anaconda from: https://www.anaconda.com/products/individual/get-started
  2. add execution mode to anaconda downloaded file: chmod u+x Anaconda3-2020.07-Linux-x86_64.sh

working with postgres:

  1. run sudo apt-get install postgresql or using snapcraft sudo snap install postgresql to install postgres.
  2. type sudo passwd postgres to change the password of the user postgres. postgresQl console cheat sheet.
  3. Switch over to the postgres account on your server by typing: sudo -i -u postgres

setup psql

cowsay, fortune and lolcat Combined Together:

  1. install cowsay: sudo apt-get install cowsay.
  2. install fortune: sudo apt-get install fortune.
  3. install lolcat: sudo snap install lolcat.
  4. run echo 'fortune | cowsay -f tux | lolcat' >> ~/.zshrc command.

install docker and docker-compose:

  1. Uninstall old versions: sudo apt-get remove docker docker-engine docker.io containerd runc

  2. SET UP THE INSTALLATION REPOSITORY: sudo apt-get update && sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common

  3. Add Docker’s official GPG key: $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

  4. Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88 by searching for the last 8 characters of the fingerprint: sudo apt-key fingerprint 0EBFCD88

  5. Use the following command to set up the stable repository: sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(. /etc/os-release; echo "$UBUNTU_CODENAME") stable", The variable $ (. /etc/os-release; echo “$ubuntu-codename”) ensures that you are using the right distribution of your Linux Mint.

  6. INSTALL DOCKER ENGINE: sudo apt-get update && sudo apt-get install docker-ce docker-ce-cli containerd.io

  7. Verify that Docker Engine is installed correctly by running the hello-world image: sudo docker run hello-world

mongodb:

installation process:

  1. Install gnupg and its required libraries using the following command: sudo apt-get install gnupg

  2. Import the public key used by the package management system: wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -

  3. Create the list file /etc/apt/sources.list.d/mongodb-org-4.4.list for your version of Ubuntu: echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list

  4. Reload local package database: sudo apt-get update

  5. Install the MongoDB packages: sudo apt-get install -y mongodb-org

Run MongoDB Community Edition:

To run and manage your mongod process, you will be using your operating system’s built-in init system.

If you are unsure which init system your platform uses, run the following command: ps --no-headers -o comm 1

Then select the appropriate tab below based on the result:

  • systemd - select the systemd (systemctl) tab below.
  • init - select the System V Init (service) tab below.
  1. Start MongoDB: sudo systemctl start mongod

If you receive an error similar to the following Failed to start mongod.service: Unit mongod.service not found. when starting run the following command first: sudo systemctl daemon-reload then run sudo systemctl start mongod again.

  1. Verify that MongoDB has started successfully: sudo systemctl status mongod

You can optionally ensure that MongoDB will start following a system reboot by issuing the following command: sudo systemctl enable mongod

  1. Stop MongoDB: sudo systemctl stop mongod
  2. Restart MongoDB: sudo systemctl restart mongod
  3. Begin using MongoDB: mongo

Uninstall MongoDB Community Edition:

  1. Remove Packages: sudo apt-get purge mongodb-org*
  2. Remove MongoDB databases and log files: sudo rm -r /var/log/mongodb && sudo rm -r /var/lib/mongodb

use intellij idea to run processing:

follow this article: https://happycoding.io/tutorials/java/processing-in-java

update java to version 15:

  1. sudo add-apt-repository ppa:linuxuprising/java
  2. sudo apt update
  3. sudo apt install oracle-java15-installer

other softwares:

  • On Linux Mint 20, /etc/apt/preferences.d/nosnap.pref needs to be removed before Snap can be installed. This can be accomplished from the command line: sudo rm /etc/apt/preferences.d/nosnap.pref && sudo apt update
  • snapd can be installed from the command line: sudo apt install snapd
  1. postman: snap install postman
  2. figma: sudo snap install figma-linux
  3. discord: sudo snap install discord
  4. miro: sudo snap install miro --edge
  5. vscode: sudo snap install code --classic
  6. emote: sudo snap install emote
  7. resolve: download it from the official website https://www.blackmagicdesign.com/products/davinciresolve/
  8. google chrome: download it from the official website https://www.google.com/chrome/
  9. firefox: sudo snap install firefox
  10. spotify: sudo snap install spotify
  11. pycharm: sudo snap install pycharm-community --classic
  12. slack: sudo snap install slack --classic
  13. todoist: sudo snap install todoist
  14. IDEA Community: sudo snap install intellij-idea-community --classic
  15. Android studio: sudo snap install android-studio --classic
  16. Atom: sudo snap install atom --classic
  17. RStudio: run this sudo apt update && sudo apt install r-base then https://rstudio.com/

processing python:

vs-code settings:

used font:

  1. fira code v2
  2. Anonymous Pro

theme/colors settings:

  1. Horizon themes - A beautifully warm dual theme for Visual Studio Code.
  2. morgan.codes-theme - A bright, modern, contrasting theme - created for you, by Morgan Richardson.
  3. Material Icon Theme - Material Design Icons for Visual Studio Code.
  4. Bracket Pair Colorizer - A customizable extension for colorizing matching brackets.
  5. Just Black: Dark Theme With Syntax Highlighter!
  6. vscode-icons: Icons for Visual Studio Code.
  7. Min Theme: A minimal theme that comes in dark and light.
  8. Carbon Product Icons: Carbon Product Icons for VS Code.
  9. Vitesse Theme: Vitesse theme for VS Code.
  10. file-icons: File-specific icons in VSCode for improved visual grepping.
  11. HackTheBox: A Visual Studio Code theme built for hackers BY hackers.

used extensions:

  1. Gruvbox Material: Gruvbox with Material Palette.
  2. Auto Close Tag - Automatically add HTML/XML close tag, same as Visual Studio IDE or Sublime Text.
  3. Auto Rename Tag - Auto rename paired HTML/XML tag.
  4. Debugger for Chrome - Debug your JavaScript code in the Chrome browser, or any other target that supports the Chrome Debugger protocol.
  5. ES7 React/Redux/GraphQL/React-Native snippets - Simple extensions for React, Redux and Graphql in JS/TS with ES7 syntax.
  6. Highlight Matching Tag - Highlights matching closing or opening tag.
  7. Live Server - Launch a development local Server with live reload feature for static & dynamic pages.
  8. Live Share - Real-time collaborative development from the comfort of your favorite tools.
  9. Markdown PDF - Convert Markdown to PDF.
  10. npm - npm support for VS Code.
  11. npm Intellisense - Visual Studio Code plugin that autocompletes npm modules in import statements.
  12. Prettify JSON - Visual Studio Code Prettify JSON Extension.
  13. Python - Linting, Debugging (multi-threaded, remote), Intellisense, Jupyter Notebooks, code formatting, refactoring, unit tests, snippets, and more.
  14. Quokka.js - Live Scratchpad for JavaScript.
  15. Remote - WSL - Open any folder in the Windows Subsystem for Linux (WSL) and take advantage of Visual Studio Code's full feature set.
  16. Path Intellisense - Visual Studio Code plugin that autocompletes filenames.
  17. C/C++ for Visual Studio Code (Preview): C/C++ support for Visual Studio Code is provided by a Microsoft C/C++ extension to enable cross-platform C and C++ development on Windows, Linux, and macOS.
  18. pulint: Linting highlights syntactical and stylistic problems in your Python source code, which oftentimes helps you identify and correct subtle programming errors or unconventional coding practices that can lead to errors. For example, linting detects use of an uninitialized or undefined variable, calls to undefined functions, missing parentheses, and even more subtle issues such as attempting to redefine built-in types or functions. Linting is thus distinct from Formatting because linting analyzes how the code runs and detects errors whereas formatting only restructures how code appears.
  19. Dart: Dart language support and debugger for Visual Studio Code.
  20. Flutter: Flutter support and debugger for Visual Studio Code.
  21. C++ Intellisense: C/C++ Intellisense with the help of GNU Global tags.
  22. Docker: Makes it easy to create, manage, and debug containerized applications.
  23. Prettier - Code formatter: It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
  24. Code Spell Checker: A basic spell checker that works well with camelCase code.
  25. Wallaby.js is a developer productivity tool that runs your JavaScript and TypeScript tests immediately as you type, highlighting results in your IDE right next to your code.
  26. IntelliSense for CSS class names in HTML: CSS class name completion for the HTML class attribute based on the definitions found in your workspace.
  27. CSS Flexbox Cheatsheet: VS Code extension that lets you open a flexbox cheatsheet directly in the editor.
  28. Better comments: Improve your code commenting by annotating with alert, informational, TODOs, and more!
  29. code runner: Run code snippet or code file for multiple languages.
  30. Java Extension Pack: Popular extensions for Java development and more.
  31. Visual Studio IntelliCode: AI-assisted development.
  32. Language Support for Java(TM) by Red Hat: Java Linting, Intellisense, formatting, refactoring, Maven/Gradle support and more...
  33. Debugger for Java: A lightweight Java debugger for Visual Studio Code.
  34. Maven for Java: Manage Maven projects, execute goals, generate project from archetype, improve user experience for Java developers.
  35. Java Test Runner: Run and debug JUnit or TestNG test cases.
  36. Project Manager for Java: Manage Java projects in Visual Studio Code.
  37. Remote - Containers: Open any folder or repository inside a Docker container and take advantage of Visual Studio Code's full feature set.
  38. Kubernetes: Develop, deploy and debug Kubernetes applications.
  39. Cloud Code: Makes developing with Kubernetes and Cloud Run feel like working on local code. Cloud Code from Google Cloud, IDE tools for Cloud Native development.
  40. Bridge to Kubernetes: Rapid Kubernetes development for teams.
  41. Pylance: A performant, feature-rich language server for Python in VS Code.
  42. Tailwind CSS IntelliSense: Intelligent Tailwind CSS tooling for VS Code.
  43. Prisma: Adds syntax highlighting, formatting, auto-completion, jump-to-definition and linting for .prisma files.
  44. XML Tools: XML Formatting, XQuery, and XPath Tools for Visual Studio Code.
  45. HTML End Tag Labels: Labels HTML end tags in VSCode.
  46. indent-rainbow: Makes indentation easier to read.
  47. axe Accessibility Linter: Accessibility linting for HTML, React, Markdown, and Vue.
  48. GitLens — Git supercharged: Supercharge the Git capabilities built into Visual Studio Code — Visualize code authorship at a glance via Git blame annotations and code lens, seamlessly navigate and explore Git repositories, gain valuable insights via powerful comparison commands, and so much more.
  49. Add jsdoc comments: Adds jsdoc @param and @return tags for selected function signatures in JS and TS.
  50. Vue: Syntax Highlight for Vue.js.
  51. Vetur: Vue tooling for VS Code.
  52. GO: Rich Go language support for Visual Studio Code.
  53. GitHub Copilot: Your AI pair programmer.
  54. RapidAPI Client: RapidAPI Client is a full-featured HTTP client that lets you test and describes the APIs you build or consume. Designed to work with your VS Code themes, RapidAPI Client makes composing requests, inspecting responses, generating code, and types for application development simple and intuitive.
  55. Rainbow CSV: Highlight CSV and TSV files, Run SQL-like queries.
  56. Vue Language Features (Volar): Language support for Vue 3.
  57. hard hat: Solidity and Hardhat support by the Hardhat team.
  58. solidity: Ethereum Solidity Language for Visual Studio Code.
  59. Theme by language: Change the color theme based on the current file language.
  60. PyLint: Linting support for python files using pylint.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment