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 | |
$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
<?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
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 | |
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
<?php | |
//replace it with your own key | |
$key = 'TVpI8MlRPQcUH0mOyrKKrJgnIcVM9kXb8Ke6XZkJXW7WyHYbUDMYdNMWgq9e'; | |
$encrypted_str = encrypt_string('John Doe is Here'); | |
$decrypted_str = decrypt_string($encrypted_str); |
NewerOlder