Skip to content

Instantly share code, notes, and snippets.

Playing with code

Shameem Reza shameemreza

Playing with code
Block or report user

Report or block shameemreza

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View max-file-size
// =================
// = Max File Size =
// =================
define( 'AI1WM_MAX_FILE_SIZE', 536870912 * 20 );
View .htaccess
php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value memory_limit 256M
php_value max_execution_time 300
php_value max_input_time 300
shameemreza /
Created Jun 23, 2019
Sublime Text 3 - Useful Shortcuts for v OS

Sublime Text 3 - Useful Shortcuts (Windows)


Shortcut Description
Ctrl+Shift+P command prompt
Ctrl+Alt+P switch project
Ctrl+P go to file
Ctrl+G go to line

Keybase proof

I hereby claim:

  • I am shameemreza on github.
  • I am shameemreza ( on keybase.
  • I have a public key ASCqtB4s9zAkw88KLBhznVz8ieE6lC6udxniAw4XOZRGxQo

To claim this, I am signing this object:

View removing-website-url-field
add_filter('comment_form_default_fields', 'remove_url');
function remove_url($fields)
return $fields;
View block-spammers-ip-address
Order allow,deny
Deny from
Allow from all
View wordpress-spam-comment-htaccess
RewriteEngine On
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.** [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
View disable-html-in-wordpress-comments
function shameem_comment_post( $incoming_comment ) {
$incoming_comment['comment_content'] = htmlspecialchars($incoming_comment['comment_content']);
$incoming_comment['comment_content'] = str_replace( "'", ''', $incoming_comment['comment_content'] );
return( $incoming_comment );
function shameem_comment_display( $comment_to_display ) {
$comment_to_display = str_replace( ''', "'", $comment_to_display );
return $comment_to_display;
add_filter( 'preprocess_comment', 'shameem_comment_post', '', 1);
View wordpress-spam-comment-black-list
Claims you are a winner
For instant access
Accept credit cards
Claims you registered with Some Kind of Partner
For just $ (some amt)
Act now! Don’t hesitate!
Click below
Free access
Additional income
View insertion-sort-java
// Java program for implementation of Insertion Sort
class InsertionSort
/*Function to sort array using insertion sort*/
void sort(int arr[])
int n = arr.length;
for (int i=1; i<n; ++i)
int key = arr[i];
You can’t perform that action at this time.