Skip to content

Instantly share code, notes, and snippets.

View phpcodertop's full-sized avatar
🏠
Available for remote work

Ahmed Maher Halima phpcodertop

🏠
Available for remote work
View GitHub Profile
@phpcodertop
phpcodertop / script.sh
Created April 14, 2018 22:44
install ipvtl trial and hack its trial
#!/bin/bash
echo "Downloading ipvtl Software \n"
cd /home
wget http://www.ipvideotrans.com/download/ipvtl_trial-x64.tar.xz
@phpcodertop
phpcodertop / item-item-collaborative-filtering.php
Last active February 24, 2018 06:31
Item-item collaborative filtering
<?php
// code by Mahmoud Gamal
function similarity($str1, $str2)
{
$str2 = strtoupper($str2);
$str1 = strtoupper($str1);
$len1 = strlen($str1);
$len2 = strlen($str2);
$max = max($len1, $len2);
@phpcodertop
phpcodertop / gist:9519f0b722b5fba5074a86d32b17e5e2
Created February 4, 2018 00:56 — forked from pwlin/gist:1248250
php custom encrypt/decrypt
<?php
function encrypt($string, $key=5) {
$result = '';
for($i=0, $k= strlen($string); $i<$k; $i++) {
$char = substr($string, $i, 1);
$keychar = substr($key, ($i % strlen($key))-1, 1);
$char = chr(ord($char)+ord($keychar));
$result .= $char;
}
return base64_encode($result);
Windows Registry Editor Version 5.00
; Open files
; Default Git-Bash Location C:\Program Files\Git\git-bash.exe
[HKEY_CLASSES_ROOT\*\shell\Open Git Bash]
@="Open Git Bash"
"Icon"="C:\\Program Files\\Git\\git-bash.exe"
[HKEY_CLASSES_ROOT\*\shell\Open Git Bash\command]
@="\"C:\\Program Files\\Git\\git-bash.exe\" \"--cd=%1\""
@phpcodertop
phpcodertop / _ide_helper.php
Created April 28, 2017 21:33 — forked from barryvdh/_ide_helper.php
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using https://github.com/barryvdh/laravel-ide-helper
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.4.11 on 2017-02-14.
*
* @author Barry vd. Heuvel <[email protected]>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
exit("This file should not be included, only analyzed by your IDE");