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
  • 08:45 (UTC -12:00)
  • X @rkkth
View GitHub Profile
@bantya
bantya / timthumb.php
Created May 13, 2016 18:57 — forked from aabir/timthumb.php
TimThumb Image Lib for PHP
<?php
/**
* TimThumb by Ben Gillbanks and Mark Maunder
* Based on work done by Tim McDaniels and Darren Hoyt
* http://code.google.com/p/timthumb/
*
* GNU General Public License, version 2
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* Examples and documentation available on the project homepage
@bantya
bantya / stop_badrabbit.bat
Last active September 17, 2021 16:00
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 / VideoStream.php
Created October 14, 2016 17:58 — forked from ranacseruet/VideoStream.php
PHP VideoStream class for HTML5 video streaming
<?php
/**
* Description of VideoStream
*
* @author Rana
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial
*/
class VideoStream
{
private $path = "";
@bantya
bantya / profiles.json
Created January 15, 2020 06:35
Terminal: My config file.
// 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",
"defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"requestedTheme": "system",
"profiles":
@bantya
bantya / youtube-dl-download-pluralsight-videos.md
Created December 25, 2020 09:12 — forked from ivanskodje/youtube-dl-download-pluralsight-videos.md
youtube-dl for downloading pluralsight videos

Downloading Videos from Pluralsight

Disclaimer

Pluralsight do not permit users to download their videos.
If you are an user of pluralsight you have agreed with their ToS,
and are thusly refrained from doing so.
Use this knowledge at your own risk.

youtube-dl for Windows

@bantya
bantya / CCFilesFromFileExplorerRemove.reg
Last active June 21, 2021 05:05
REG: Registry hacks for Windows 10
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CLSID\{0E270DAA-1BE6-48F2-AC49-4E2781B29975}]
@="Creative Cloud Files"
"System.IsPinnedToNameSpaceTree"=dword:00000000
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{0E270DAA-1BE6-48F2-AC49-4E2781B29975}]
@="Creative Cloud Files"
"System.IsPinnedToNameSpaceTree"=dword:00000000
@bantya
bantya / hhrc.bat
Created June 2, 2021 14:07
A utility to create htmlhint rc file.
A utility to create htmlhint rc file
@bantya
bantya / af.bat
Created June 2, 2021 09:39
Create Angular modules and components.
:: af utility to create Angular modules and components. (af = angular file)
::
:: syntax: af [m|c] <name> <c:module name>
::
:: e.g: > af m utils
:: = create module named utils
:: > af c search utils
:: = create a search component in utils module
::
:: author: github.com/bantya
@bantya
bantya / angular-filename
Created May 29, 2021 13:44
VS Code Angular snippet filename transformation
{
// https://github.com/microsoft/vscode/issues/78110#issuecomment-524676592
"f-filename": {
"prefix": "f-filename",
"body": [
"${TM_FILENAME_BASE/((^[a-z])|[-.]([a-z]))/${2:/upcase}${3:/upcase}/g}"
],
"description": "filename"
}
}
@bantya
bantya / Randoms.cs
Created February 2, 2021 06:42
C# Random String Generator
// www.github.com/bantya
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace Utils