Skip to content

Instantly share code, notes, and snippets.

@id4ehsan
id4ehsan / how_to_change_imei.txt
Created June 9, 2018 20:54
redmi 5 plus imei change
https://dl.google.com/android/repository/platform-tools-latest-windows.zip
adb shell
su
setprop sys.usb.config diag,adb
cd /dev/block/platform/soc/7824900.sdhci/by-name
ls -lap
@id4ehsan
id4ehsan / mirillis_hosts_patch.bat
Created June 8, 2018 19:55
an implementation to add item to hosts in CMD
SET NEWLINE=^& echo.
FIND /C /I "176.31.241.10" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^ 127.0.0.1 176.31.241.10>>%WINDIR%\system32\drivers\etc\hosts
FIND /C /I "54.148.249.18" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^ 127.0.0.1 54.148.249.18>>%WINDIR%\system32\drivers\etc\hosts
FIND /C /I "54.68.188.84" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^ 127.0.0.1 54.68.188.84>>%WINDIR%\system32\drivers\etc\hosts
@id4ehsan
id4ehsan / speedup.bat
Created June 4, 2018 13:51
Increase Internet Speed
ipconfig /all
ping -t 192.168.1.1
ipconfig/renew
ipconfig/flushdns
netsh interface tcp set global autotuning=disable
netsh interface tcp set heuristics disabled
@id4ehsan
id4ehsan / pk.txt
Last active April 15, 2025 21:31
Product keys
Product
GVLK
Office 2013 Professional Plus
YC7DK-G2NP3-2QQC3-J6H88-GVGXT
Office 2013 Standard
@id4ehsan
id4ehsan / homelinkgrab.php
Created April 13, 2018 03:33
data grabber
<?php
$servername = "localhost";
$username = "cp29857_test";
$password = "g0nd4l0f123";
$myDB = "cp29857_test";
try {
$conn = new PDO("mysql:host=$servername;dbname=$myDB", $username, $password);
// set the PDO error mode to exception
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
//echo "Connected successfully";
@id4ehsan
id4ehsan / zeal
Created April 4, 2018 17:58
zeal compile code
# Set Qt Install dir
Set-Variable -Name "qt_dir" -Value "C:\Qt\Qt5.10.1"
$env:Path = "${qt_dir}\5.10.1\mingw53_32\bin;${qt_dir}\Tools\mingw53_32\bin;C:\Program Files\WinRAR;$env:Path"
# Put libarchive to mingw path
unrar libarchive-3.2.1-win32-mingw53.7z -o ${qt_dir}\Tools\mingw53_32\i686-w64-mingw32
# Building sqlite and Put it to mingw path
unrar sqlite-amalgamation-3220000.zip
@id4ehsan
id4ehsan / regex
Created April 4, 2018 17:57
my regex
Remove all PHP Code within the HTML page
<\?php(.+?)\?> ==> <!--/1-->
Change b to strong
<b[^>]*>([^<]*?)</b> ==> <strong>\1</strong>
Change i to em
<i[^>]*>([^<]*?)</i>
<em>\1</em>
@id4ehsan
id4ehsan / admin.html
Last active September 8, 2019 00:44
phptunnel start project
<!DOCTYPE html>
<html lang="en">
<head>
<title>PHPTunnel Server Administration</title>
<link rel="shortcut icon" href="common/server.ico" type="image/x-icon" />
<script defer src="https://use.fontawesome.com/releases/v5.0.8/js/solid.js" integrity="sha384-+Ga2s7YBbhOD6nie0DzrZpJes+b2K1xkpKxTFFcx59QmVPaSA8c7pycsNaFwUK6l" crossorigin="anonymous"></script>
<script defer src="https://use.fontawesome.com/releases/v5.0.8/js/fontawesome.js" integrity="sha384-7ox8Q2yzO/uWircfojVuCQOZl+ZZBg2D2J5nkpLqzH1HY0C1dHlTKIbpRz/LG23c" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
@id4ehsan
id4ehsan / note
Last active September 8, 2019 00:44
short web learning topic
<html>
<head>
<title>PHPTunnel Server Administration</title>
<meta charset="UTF-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
"C:\Program Files\ImageMagick-7.0.7-Q16\convert.exe" favicon.png -bordercolor white -border 0 -clone 0 -resize 16x16 -clone 0 -resize 32x32 -clone 0 -resize 48x48 -clone 0 -resize 64x64 -delete 0 -alpha off -colors 256 favicon.ico
<link rel="shortcut icon" href="favicon.ico">
git reset --hard
git clean -x -d -f
git reset --hard @{u}