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
  • 10:03 (UTC +05:30)
  • X @rkkth
View GitHub Profile
@bantya
bantya / php_speed_test.php
Last active May 24, 2018 17:48
PHP: Speed test placeholder
<?php
// Adapted from: https://r.je/sprintf.html
$iterations = 500000;
$t1 = microtime(true);
for ($i = 0; $i < $iterations; $i++) {
// Test operation 1 here
@bantya
bantya / hexdump.php
Created May 16, 2018 04:25 — forked from Norcoen/hexdump.php
Dump PHP String as HEX
<?php
/* Found at http://stackoverflow.com/questions/1057572/how-can-i-get-a-hex-dump-of-a-string-in-php */
function hex_dump($data, $newline="\n")
{
static $from = '';
static $to = '';
static $width = 16; # number of bytes per line
@bantya
bantya / Adaptive.sublime-theme
Last active May 22, 2018 15:11
Sublime: A custom Adaptive theme for Sublime Text 3
[
// Created by - http://www.github.com/bantya
/* Sidebar */
{
"class": "sidebar_container",
"layer0.draw_center": false,
"layer0.opacity": 1.0,
},
{
"class": "sidebar_tree",
@bantya
bantya / Sublime Text 3 Scopes
Created April 4, 2018 17:29 — forked from danpe/Sublime Text 3 Scopes
Sublime Text 3 scopes to be used for Snippets Makers / Plugin Developers.
A list of Sublime Text 3 scopes to be used for Snippets Makers / Plugin Developers.
Main Symbol Scopes: entity.name.function, entity.name.type, meta.toc-list
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
BibTex: source.bibtex
C#: source.cs
@bantya
bantya / city.css
Last active February 13, 2018 16:17
css: city site css
* {
user-select: none;
}
#assignEngPopup .modal-dialog {
width: 100%;
}
#toast-container > div {
opacity: 1;
@bantya
bantya / OpenWithSublimeText3.bat
Created January 23, 2018 07:00 — forked from roundand/OpenWithSublimeText3.bat
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 7)
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@bantya
bantya / Oarm.php
Last active December 27, 2017 06:31
PHP: Oarm file
<?php
namespace Robott\Oarm;
/**
* @link https://www.youtube.com/watch?v=63tS3HNmhiE
* @link http://culttt.com/2014/09/01/user-entity-ubiquitous-language/
* @link http://culttt.com/2014/07/07/doctrine-2-different-eloquent/
* @link http://culttt.com/2014/06/23/foundations-crud-laravel-4/
* @link http://culttt.com/2013/12/30/eager-loading-laravel-4/
@bantya
bantya / Side Bar.sublime-menu
Created December 26, 2017 17:34
Sublime Text: Customized Side Bar
[
{
"caption": "aaaaa_side_bar",
"id": "aaaaa_side_bar",
"command": "aaaaa_side_bar",
"args": {
"paths": []
}
},
{
@bantya
bantya / ssl_cert_text.txt
Created November 11, 2017 10:55
Snips: View ssl certificate content
openssl x509 -in {CertificateName}.crt -text
@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