Skip to content

Instantly share code, notes, and snippets.

View bkanhu's full-sized avatar

B Kanhu Charan bkanhu

View GitHub Profile
@bkanhu
bkanhu / dart.json
Last active March 18, 2021 09:28
Flutter snippets for making stateful and stateless widgets. Open Visual Studio Code press "Control+Shift+P", Search for Snippet, then choose dart. and paste this code to that "dart.json" file and save it.
{
"stateless": {
"prefix": "stless",
"body": [
"class $1 extends StatelessWidget {",
"\t@override",
"\tWidget build(BuildContext context) {",
"\t\treturn Container(",
"\t\t\t$2",
"\t\t);",
@bkanhu
bkanhu / wifi_driver.md
Last active June 23, 2019 08:18
[SOLVED][SOLUTION]: Wi-Fi not working on Lenovo ThinkPad 330 (Realtek RTL8821CE)

A temporary internet connection will be required for downloading packages and driver

Open up a terminal and type the following lines:

git clone https://github.com/tomaspinho/rtl8821ce
cd rtl8821ce
chmod +x dkms-install.sh
chmod +x dkms-remove.sh
sudo ./dkms-install.sh
@bkanhu
bkanhu / beginners_ubuntu.md
Last active November 13, 2024 23:51
A Beginners Guide on Things To Do After Installing Ubuntu.

Beginners Ubuntu

A Beginners Guide To Things To Do After Installing Ubuntu.

1. Check For Updates

sudo apt update && sudo apt upgrade

2. Enable additional repositories for more software

Ubuntu has several repositories from where it provides software for your system. Enabling all these repositories will give you access to more software and proprietary drivers.

@bkanhu
bkanhu / EnableCommandPrompt.reg
Created July 7, 2019 10:52
Add 'Command Prompt' to the Windows Explorer context menu. Just download the script and run once.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Command Prompt\command]
@="C:\\Windows\\System32\\cmd.exe"
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Command Prompt\command]
@="C:\\Windows\\System32\\cmd.exe"
@bkanhu
bkanhu / Spotify_Eliminate_Advertisements
Created December 6, 2020 05:05 — forked from opus-x/Spotify_Eliminate_Advertisements
Eliminate Spotify Advertisements + Complete Server List
##################################################################################
# ELIMINATE SPOTIFY ADS (VERSION 1.2 - 8.5) - UPDATED FREQUENTLY #
##################################################################################
#
# NOTE: SOMETIMES ONLY ANNOUNCEMENT OF AN AD WHILE USING APP VERSION 7.5-7.9?-8.x.
# USING AN OFFICIAL OLDER VERSION SOLVES THIS. TEST IT (APKMIRROR). THIS WILL NOT
# OCCUR USING CHROMECAST / GOOGLE HOME.
#
# COULD NOT SOLVE THE AUDIO AD INRO/OUTRO IN THE APP.
# SUGGESTIONS? WRITE A COMMENT BELOW.
@bkanhu
bkanhu / windows-terminal-settings.json
Last active December 10, 2020 07:25
Windows Terminal custom settings with width height adjustment, set CMD as default instead of PowerShell and add Git Bash
// This file was initially generated by Windows Terminal 1.4.3243.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@bkanhu
bkanhu / settings.json
Created May 25, 2021 19:16
My VS Code Settings 2021
{
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"liveServer.settings.donotShowInfoMsg": true,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
@bkanhu
bkanhu / Discrete_Mathematics.md
Created May 25, 2021 19:22
Discrete Mathematics Syllabus for MCA

Discrete Mathematics

Modules

  • Number Systems
  • Propositions and Logical Operations
  • Counting
  • Relations
  • Graph theory
  • Group theory
  • Lattice theory
[
{
"name": "John Doe",
"designation": "Developer",
"Contact": [
{
"type": "primary",
"number": "9087654321"
},
{