Skip to content

Instantly share code, notes, and snippets.

View bantya's full-sized avatar
🎯
Focussing

Rahul Thakare bantya

🎯
Focussing
  • http://127.0.0.1:4200
  • http://127.0.0.1:8080
  • 15:05 (UTC +05:30)
  • X @rkkth
View GitHub Profile
@bantya
bantya / windows_locations.txt
Last active November 8, 2017 13:41
Info: Windows locations
01. Adobe Typekit fonts storage:
C:\Users\thAKare\AppData\Roaming\Adobe\CoreSync\plugins\livetype\
02. Adobe Extensions folder:
C:\Program Files (x86)\Common Files\Adobe\CEP\extensions\
C:\Users\<username>\AppData\Roaming\Adobe\CEP\extensions\
@bantya
bantya / clear_apps_icon_cache.bat
Created November 6, 2017 09:52
bat: clear windows apps icon cache
@echo off
:: ie4uinit.exe -show
ie4uinit.exe -ClearIconCache
taskkill /IM explorer.exe /F
del /A /Q "%localappdata%\IconCache.db"
del /A /F /Q "%localappdata%\Microsoft\Windows\Explorer\iconcache*"
shutdown /r /f /t 00
@bantya
bantya / revert_app_permissions.txt
Created November 5, 2017 09:44
Windows: Revert the permissions of Apps folder to defaults
icacls "C:\Program Files\WindowsApps" /inheritance:r /remove:g Administrators
@bantya
bantya / secret_folders.txt
Created November 5, 2017 07:41
Windows: Secret folders
explorer shell:system
explorer shell:appsfolder
explorer shell:cookies
explorer shell:cache
explorer shell:savedpictures
explorer shell:appdata
explorer shell:conflictfolder
explorer shell:savedgames
explorer shell:internetfolder
explorer shell:systemcertificates
@bantya
bantya / stop_badrabbit.bat
Last active July 27, 2024 16:49
bat: Stop BadRabbit Ransomeware
@echo off
:: This is not my code, the BadRabbit Ransomeware was posted on a following video:
:: https://www.youtube.com/watch?v=Y6WOpE92vKc
:: Idea for Petya Ransomeware was given on:
:: https://www.bleepingcomputer.com/news/security/vaccine-not-killswitch-found-for-petya-notpetya-ransomware-outbreak/
:: I just made this to make it available easily.
:: For BadRabbit
type NUL > %windir%\cscc.dat
@bantya
bantya / integrity_issue_commands.bat
Created October 23, 2017 14:56
bat: Windows system integrity issue solver commands
:: Commands to Resolve Any System Integrity Issues
dism /online /cleanup-image /checkhealth
dism /online /cleanup-image /scanhealth
dism /online /cleanup-image /restorehealth
:: Helps with the notorious failed or non-responsive installation during the driver migration.
rundll32.exe pnpclean.dll,rundll_pnpclean /drivers /maxclean
@bantya
bantya / AdvancedNewFile.sublime-settings
Last active January 11, 2020 22:52
Sublime: My .sublime-settings files
{
"show_files": true,
"default_extension": ".php",
"folder_permissions": "777",
"file_permissions": "777",
}
@bantya
bantya / Theme - Alpenglow.sublime-settings
Last active January 11, 2020 22:52
Json: Sublime Text 3 Themes Settings
{
"sidebar_no_icon": false,
"folder_no_icon": true,
"tabs_small": true,
"sidebar_size_12": true,
"sidebar_row_padding_large": true,
"status_bar_brighter": true,
"color_inactive_tabs": true,
"tabs_padding_small": true,
"tabs_label_not_italic": true,
@bantya
bantya / Inflect.php
Created September 19, 2017 19:26 — forked from tbrianjones/Inflect.php
A PHP Class for converting English words between Singular and Plural.
<?php
// original source: http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/
/*
The MIT License (MIT)
Copyright (c) 2015
Permission is hereby granted, free of charge, to any person obtaining a copy
@bantya
bantya / access_private_members.php
Created August 25, 2017 13:00
php: Accessing private php class members without reflection
<?php
# A generic property reader abstraction
# https://ocramius.github.io/blog/accessing-private-php-class-members-without-reflection/
$reader = function & ($object, $property) {
$value = & Closure::bind(function & () use ($property) {
return $this->$property;
}, $object, $object)->__invoke();