Skip to content

Instantly share code, notes, and snippets.

View DNI9's full-sized avatar
🐧

DNI9 DNI9

🐧
  • India
View GitHub Profile
@DNI9
DNI9 / setup-typescript-eslint-prettier.js
Created June 24, 2022 10:52 — forked from chill-cod3r/setup-typescript-eslint-prettier.js
Automate TypeScript ESLint Prettier + my opinionated ESLint rules
const fs = require('fs');
const cp = require('child_process');
const util = require('util');
const path = require('path');
const exec = util.promisify(cp.exec);
const writeFile = util.promisify(fs.writeFile);
const prettierConfigVscode = {
'editor.codeActionsOnSave': {
@DNI9
DNI9 / android-backup-apk-and-datas.md
Created March 30, 2022 15:24 — forked from AnatomicJC/android-backup-apk-and-datas.md
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

Fetch application APK

@DNI9
DNI9 / README.md
Created March 11, 2021 21:01 — forked from revant/README.md
Arch Linux on Lenovo IdeaPad 330-15ARR

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 March 11, 2021 21:01 — forked from marcorichetta/Manjaro.md
Manjaro KDE Installation on Lenovo Ideapad 330S-15ARR

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
#!/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')
@DNI9
DNI9 / eslint_prettier_airbnb.md
Created November 9, 2020 16:35 — forked from bradtraversy/eslint_prettier_airbnb.md
ESLint, Prettier & Airbnb Setup

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 November 9, 2020 16:34 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

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