This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//replace it with your own key | |
$key = 'TVpI8MlRPQcUH0mOyrKKrJgnIcVM9kXb8Ke6XZkJXW7WyHYbUDMYdNMWgq9e'; | |
$encrypted_str = encrypt_string('John Doe is Here'); | |
$decrypted_str = decrypt_string($encrypted_str); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
$active_group = 'default'; | |
$query_builder = TRUE; | |
$db['default'] = array( | |
'dsn' => '', | |
'hostname' => 'Driver={SQL Server};Server=DESKTOP-123456;Database=database_name', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function binarySearch(arr = [], b_start, b_end, x){ | |
if (b_end < b_start) | |
return false; | |
var mid = Math.floor((b_end + b_start)/2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$ALGORITHM = 'AES-128-CBC'; | |
$IV = '12dasdq3g5b2434b'; | |
$error = ''; | |
if (isset($_POST) && isset($_POST['action'])) { | |
$password = isset($_POST['password']) && $_POST['password']!='' ? $_POST['password'] : null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$hourly_rate = 2.5; | |
$startTime = new DateTime("2020-05-14 08:00:00"); | |
$endTime = new DateTime("2020-05-14 17:00:00"); | |
$duration = $startTime->diff($endTime); //$duration is a DateInterval object | |
$worked_hours = (int)$duration->format("%H"); | |
echo $worked_hours * 2.5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 adb backup -noapk com.developername.appname | |
2 dd if=backup.ab bs=24 skip=1|openssl zlib -d > backup.tar; | |
3 tar -xvf backup.tar | |
https://medium.com/@k1d_bl4ck/how-to-extract-the-database-and-other-things-from-an-enterprise-android-app-2194a52b249b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
date_default_timezone_set('Asia/Manila'); | |
function isBetween($from, $till, $input) { | |
$fromTime = strtotime($from); | |
$toTime = strtotime($till); | |
$inputTime = strtotime($input); | |
return($inputTime >= $fromTime and $inputTime <= $toTime); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
💬 Get Google-Reviews with PHP cURL & without API Key | |
===================================================== | |
**This is a dirty but usefull way to grab the first 8 most relevant reviews from Google with cURL and without the use of an API Key** | |
How to find the needed CID No: | |
- use: [https://pleper.com/index.php?do=tools&sdo=cid_converter] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"brgy":"Agsoso", | |
"Lat":"9.7897", | |
"Lon":"123.8203" | |
}, | |
{ | |
"brgy":"Badbad Occidental", | |
"Lat":"9.8030", | |
"Lon":"123.8133" |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"rows": [ | |
{ | |
"type": 3, | |
"data": { | |
"source": 3, | |
"id": 1, | |
"x": 0, | |
"y": 733 | |
}, |
OlderNewer