Skip to content

Instantly share code, notes, and snippets.

View rahman541's full-sized avatar
🎯
Focusing

Rahman rahman541

🎯
Focusing
View GitHub Profile
for /r %%F in (*) do if %%~zF==0 del "%%F"

Setting up sublime for most development environment

Setting/Prefrence

  1. Preferences > Settings on User side
  2. Insert the line below:
{
	"always_show_minimap_viewport": true,
	"binary_file_patterns": ["*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip","node_modules/**", "bower_components/**", ".git/**"],
	"bold_folder_labels": true,

Disable ad:

Setting > Advance

offers.left_rail_offer_enabled
offers.sponsored_torrent_offer_enabled
sponsored_torrent_offer
gui.show_plus_upsell
enable_pulse
show_notorrents
offer_autoexec
@rahman541
rahman541 / rename_extension_recursively.bat
Created October 19, 2017 05:22
Rename file extension recursively. Example to jpg
for /R %%x in (*.*) do ren "%%x" *.jpg
@rahman541
rahman541 / enable_cmd_for_cu_update.reg
Last active December 9, 2023 11:53
Enable right click "Open command window here.." option for windows 10
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\cmdprompt]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\cmdprompt\command]
@="cmd.exe /s /k pushd \"%V\""
@rahman541
rahman541 / uac_in_batch.bat
Created October 19, 2017 05:31
Request UAC in Bat File
::::::::::::::::::::::::::::::::::::::::::::
:: Automatically check & get admin rights V2
::::::::::::::::::::::::::::::::::::::::::::
@echo off
CLS
ECHO.
ECHO =============================
ECHO Running Admin shell
ECHO =============================
@rahman541
rahman541 / set_git_bash_default_ssh.reg
Created October 19, 2017 08:35
Set default git bash as default OpenSSH Windows
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\OpenSSH]
"DefaultShellCommandOption"="/"
"DefaultShell"="C:\\Program Files\\Git\\bin\\bash.exe"
@rahman541
rahman541 / proxychain_on_centos.md
Last active December 23, 2024 20:53
Install ProxyChain4 on CentOs

Install ProxyChain4 on CentOs

yum install git
cd ~
git clone https://github.com/rofl0r/proxychains-ng.git 
cd proxychains-ng 
./configure && make && make install  
make install-config
@rahman541
rahman541 / retrieve_log_via_adb.md
Created October 19, 2017 16:51
Get log via ADB

Retrieve logcat dump:

  1. Enable USB debugging. Go into Settings > Applications > Development, and enable the USB debugging option.

  2. Install the Android SDK. You'll need a desktop tool called adb that will help you get error logs.

  3. Make sure your phone can connect. Follow the instructions here to make sure that adb can talk with your device: http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware

  4. Dump logcat data. From your desktop console, type ./adb -d logcat | grep -i SSHTunnel, example app is SSHTunnel.

@rahman541
rahman541 / ES6-Setup.md
Last active May 22, 2023 04:04
ES6 Setup with nodemon

ES6 Setup

npm init -y
npm i --save-dev nodemon
npm add babel-preset-env babel-cli

Create a .babelrc config in your project root. Insert the following

{
 "presets": ["env"]