Skip to content

Instantly share code, notes, and snippets.

View 2KAbhishek's full-sized avatar
🤩
Fixing Tpyos!

Abhishek Keshri 2KAbhishek

🤩
Fixing Tpyos!
View GitHub Profile
@2KAbhishek
2KAbhishek / chrome-remote-desktop
Last active August 6, 2019 02:24
Chrome Remote Desktop Linux setup
#/etc/pam.d/chrome-remote-desktop
auth required pam_unix.so
account required pam_unix.so
password required pam_unix.so
session required pam_unix.so
#/opt/google/chrome-remote-desktop/chrome-remote-desktop
@2KAbhishek
2KAbhishek / lockscreen_nandroid.md
Last active August 6, 2019 03:51
Lockscreen fix after nandroid restore

Go to /data/system/ and delete all files with extension .key and with locksettings in their name

  • password.key
  • pattern.key
  • locksettings.db-wal
  • locksettings.db-shm
  • locksettings.db

/etc/httpd/conf/httpd.conf

Uncomment Include conf/extra/httpd-vhosts.conf

/etc/httpd/conf/extra/httpd-vhosts.conf

Put virtualhost configs here

chmod o+x $HOME

@2KAbhishek
2KAbhishek / Shell_Keybindings.md
Last active May 28, 2024 17:16
Keyboard shortcuts for bash/zsh

Shell Keybindings

Navigation 🚀

Alt + f/b - Move cursor to previous/next word

Ctrl + a/e - Move cursor to beginning/end of command

Ctrl + xx - Toggle between the start of line and current cursor position

{
"basics": {
"name": "Abhishek Kumar Keshri",
"label": "Undergraduate Student",
"picture": "https://raw.githubusercontent.com/2kabhishek/2kabhishek.github.io/master/images/me.jpg",
"summary": "I am a final year engineering student with a soft spot for Open Source Software, Linux and CLI. I am familiar with most of the tech stacks used in the industry today and am always learning new things.",
"website": "https://2kabhishek.github.io",
"email": "iam2kabhishek@gmail.com",
"location": {
"city": "Rampurhat",
@2KAbhishek
2KAbhishek / Debloat_Win10.ps1
Created August 6, 2019 02:43
Powershell Commands for Debloating windows 10
#Remove Apps except store:
Get-AppxPackage -AllUsers | where-object {$_.name –notlike “*store*”} | Remove-AppxPackage
#Remove windows apps:
Get-AppxPackage -allusers | Remove-AppxPackage
#Restore Store:
Add-AppxPackage -register "C:\\Program Files\WindowsApps\Microsoft.WindowsStore_11703.1001.45.0_x64__8wekyb3d8bbwe\AppxManifest.xml" -DisableDevelopmentMode
#Restore all apps :
@2KAbhishek
2KAbhishek / God_Mode.md
Last active August 6, 2019 02:45
God Mode Folder for Windows, contains useful shortcuts for SysAdmins

Create new folder with name GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}

@2KAbhishek
2KAbhishek / vbox_fix.sh
Last active August 6, 2019 02:55
VirtualBox Fix
#Virtualbox Fix, if not working post-install
sudo /sbin/rcvboxdrv setup
@2KAbhishek
2KAbhishek / live.sh
Created August 6, 2019 02:54
Create Live USB using dd
#Replace X with the proper letter from lsblk or be doomed
sudo dd if=/path/to/your/file.iso of=/dev/sdX bs=4M status=progress
@2KAbhishek
2KAbhishek / local_time.sh
Created August 6, 2019 02:56
Use local time, fix for dual-boot
#Local time, useful for dual-booters
sudo timedatectl set-local-rtc 1