Assume that you want to set 127.0.0.1:10809 as HTTP proxy and 127.0.0.1:10808 as SOCKS proxy.
This file contains hidden or 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
| :: | |
| :: Aliases for windows command line | |
| :: | |
| :: Installation: | |
| :: | |
| :: - create a folder for your aliases (eg: ```c:\cmd-aliases```) | |
| :: - add that folder to your PATH variable | |
| :: - save this script as setalias.cmd on that folder | |
| :: - run "alias" to see usage | |
| :: |
This file contains hidden or 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 | |
| namespace DDB; | |
| class MySQLi { | |
| private $link; | |
| public function __construct($hostname, $username, $password, $database, $port = '3306') { | |
| mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); | |
| $this->link = new \mysqli($hostname, $username, $password, $database, $port); |
This file contains hidden or 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 | |
| public function addDocument($data = array()) { | |
| // ایجاد یک نمونه از TransactionWrapper با استفاده از registry و اطلاعات اتصال به پایگاه داده | |
| $transactionWrapper = new \DDB\TransactionWrapper($this->registry, DB_HOSTNAME, DB_USERNAME, DB_PASSWORD, DB_DATABASE); | |
| // اجرای تراکنش با استفاده از متد execute | |
| $result = $transactionWrapper->execute(function($tw) use ($data) { | |
| try { | |
| // دریافت شناسه کاربر | |
| $user_id = $this->user->getId(); |
This file contains hidden or 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
| public function addDocument($data = array()) { | |
| $user_id = $this->user->getId(); | |
| $user_selected_date = call_function($this->language->get('function_jtg'), $this->db->escape($data['user_selected_date'])); | |
| $document_note = strip_tags(trim($data['document_note'])); | |
| $this->db->query("INSERT INTO `" . DB_PREFIX . "finance_document` SET `user_id` = '" . $this->db->escape($user_id) . "', `user_selected_date` = '" . $this->db->escape($user_selected_date) . "', `document_note` = '" . $this->db->escape($document_note) . "'"); | |
| $document_id = $this->db->getLastId(); |
This file contains hidden or 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
| # Checked with ipinfo.io | |
| # Soroush Rasanheh Company Ltd | |
| 87.107.96.0/22 | |
| 87.107.88.0/22 | |
| 87.107.68.0/22 | |
| 87.107.52.0/23 | |
| 87.107.51.0/24 | |
| 87.107.42.0/23 | |
| 87.107.34.0/23 | |
| 87.107.24.0/22 |
Make sure these boxes are checked before submitting/approving the PR
- The code works
- The code is easy to understand
- Follows coding conventions
- Names are simple and if possible short
- Names are spelt correctly
- Names contain units where applicable
- There are no usages of magic numbers