Skip to content

Instantly share code, notes, and snippets.

View tamimibrahim17's full-sized avatar
🎯
Focusing

Tamim Ibrahim tamimibrahim17

🎯
Focusing
  • Tikweb
  • Bangladesh
View GitHub Profile
@tamimibrahim17
tamimibrahim17 / run.php
Created April 1, 2021 14:09
run file where query will run
<?php
$file_name = $_GET['lock_file'] ?? rand();
$status_file = $file_name.'.lock';
$file_name = $file_name.'.csv';
$line = 0;
while( $line < 5 ){

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@tamimibrahim17
tamimibrahim17 / install_php.sh
Created October 13, 2020 10:48 — forked from nlubisch/install_php.sh
Install PHP7+ with all extensions
#!/usr/bin/env bash
sudo apt-get update && apt-get upgrade
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt install \
php7.0 \
php7.0-bcmath \
@tamimibrahim17
tamimibrahim17 / bd-mobile-number-validation.js
Created July 22, 2020 10:10
Bangladeshi Mobile Number validation in javascript using regex patter
// phone numbers
var numbers = ['01988123456','+8801988123456','8801988123456','01788123456','+8801788123456','8801788123456','01688123456','+8801688123456','8801688123456','01388123456','+8801388123456','8801588123456','01588123456','8801888123456','01888123456'];
function validate_bdnumber(number)
{
pattern = /^\+?(88)?0(19|14|17|13|18|16|15)\d{8}$/
return number.match(pattern) ? true : false;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>test</title>
</head>
<body>
<form action="" id="test">
<input name="invoice_items[0][ProductName]" class="invoice_item" value="Shoe (14cm)" type="text">
<input name="invoice_items[0][UnitPrice]" class="invoice_item" value="800" type="text">
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>test</title>
</head>
<body>
<form action="" id="test">
<input name="invoice_items[0][ProductName]" class="invoice_item" value="Shoe (14cm)" type="text">
<input name="invoice_items[0][UnitPrice]" class="invoice_item" value="800" type="text">
@tamimibrahim17
tamimibrahim17 / shortlist.txt
Created December 2, 2019 05:54
Short list of commonly sensitive or vulnerable web paths
2g
2.php
2.tar
2.tar.bz2
2.tar.gz
2.txt
2.zip
3
30
300
010-editor: 010 Editor
0-ad: 0 A.D.
0xed: 0xED
115browser: 115Browser, 115浏览器
1clipboard: 1Clipboard
1password: 1Password
1password-cli: 1Password CLI
245cloud: 245cloud
33-rpm: 33 RPM
360safe: 360 Total Security
@tamimibrahim17
tamimibrahim17 / evangelizing-corner-shape-1-powered-by-augmented-ui-prompt.markdown
Created September 27, 2019 06:31
Evangelizing corner-shape #1, powered by Augmented-UI: Prompt

Evangelizing corner-shape #1, powered by Augmented-UI: Prompt

Evangelizing corner-shape #1

What is this?

Just trying what I can to bring the once much talked about corner-shape back to relevance. For the first of possibly many installments, I am using augmented-ui by James0x57 to show why angled/beveled corners would be preferable for certain designs as opposed to rounded corners. Though to be fair, augmented-ui's website is quite the showcase all it's own. Seriously, go check it out.

About the pen

This is my first attempt at using augmented-ui. For this pen, I wanted to create a basic message prompt with angled corners.

Links