Skip to content

Instantly share code, notes, and snippets.

Avatar
⚛️

DNI9 DNI9

⚛️
  • Kolkata, West Bengal
View GitHub Profile
@DNI9
DNI9 / FirefoxDeveloperEdition.desktop
Created Mar 15, 2021
Firefox Developer Edition Desktop File for Linux
View FirefoxDeveloperEdition.desktop
[Desktop Entry]
Version=1.0
Name=Firefox Developer Edition
GenericName=Web Browser
Exec=/opt/firefox/firefox %U
Terminal=false
StartupNotify=true
Icon=/opt/firefox/browser/chrome/icons/default/default128.png
Type=Application
Categories=Network;WebBrowser;Favorites;
@DNI9
DNI9 / README.md
Created Mar 11, 2021 — forked from revant/README.md
Arch Linux on Lenovo IdeaPad 330-15ARR
View README.md

Required Kernel params

loglevel=3 iommu=pt acpi_backlight=native
  • iommu=pt Solves sudden freeze of graphics Arch Forum Link
  • acpi_backlight=native Solves back light "failed" message during boot Arch Wiki
  • Use it with other params e.g. loglevel=3 iommu=pt acpi_backlight=native apparmor=1 security=apparmor quiet
@DNI9
DNI9 / Manjaro.md
Created Mar 11, 2021 — forked from marcorichetta/Manjaro.md
Manjaro KDE Installation on Lenovo Ideapad 330S-15ARR
View Manjaro.md

Booting Manjaro

  1. Download latest Manjaro Architect iso
  2. Burn the iso to a usb following the steps from the Manjaro wiki
  3. On Lenovo BIOS
    1. Disable Secure boot
    2. Set USB boot configuration on UEFI only.
    3. Save changes and press F12 to choose from boot menu.
  4. On Manjaro GRUB menu, add the ivrs_ioapic[32]=00:14.0 grub parameter. Source
View meson_uninstall.py
#!/usr/bin/env python3
# NOTE: This is only useful until Meson 0.38.0 which includes an `uninstall` target.
import argparse
from contextlib import suppress
from os import path, remove
parser = argparse.ArgumentParser()
parser.add_argument('--dry-run', action='store_true')
View git-ssh-setup.md

Setup SSH for Github

Check for existing SSH keys by ls -al ~/.ssh

Generating SSH keys

ssh-keygen -t ed25519 -C "your_email@example.com"

Adding to ssh-agent

@DNI9
DNI9 / eslint_prettier_airbnb.md
Created Nov 9, 2020 — forked from bradtraversy/eslint_prettier_airbnb.md
ESLint, Prettier & Airbnb Setup
View eslint_prettier_airbnb.md

VSCode - ESLint, Prettier & Airbnb Setup

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
@DNI9
DNI9 / bash-colors.md
Created Nov 9, 2020 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.
View bash-colors.md

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@DNI9
DNI9 / VSCodeSettings.txt
Created Dec 28, 2019
Useful for VScode
View VSCodeSettings.txt
"workbench.editor.enablePreviewFromQuickOpen": false
"breadcrumbs.enabled": true
"explorer.openEditors.visible": 0
"editor.minimap.renderCharacters": false,
"editor.minimap.maxColumn": 200,
"editor.minimap.showSlider": "always"
"editor.renderWhitespace": "all"
"editor.smoothScrolling": true
"editor.cursorBlinking": "phase"
"editor.cursorSmoothCaretAnimation": true
@DNI9
DNI9 / Useful_linux_packages.md
Last active Jul 14, 2019
Some useful linux packages
View Useful_linux_packages.md

1. Grub Customizer

Customize order of OS in grub menu if have dual booted, to install place these in terminal

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer