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 | |
| /** | |
| * | |
| * @param $password A user defined password | |
| * @return string | |
| * | |
| */ | |
| public function encryptPasswordToRsaBase64(string $password): string | |
| { | |
| $publicKey = fopen('/path/to/public/key.pem', 'r'); |
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
| ... | |
| <tr> | |
| <td bgcolor="#E9E9E9" class="emailcolsplit"> | |
| <table border="0" width="100%" cellpadding="0" cellspacing="0"> | |
| <tr> | |
| <td style="padding-left:20px; padding-bottom:20px;"> | |
| <h2>He revels in disorganization.</h2> | |
| <p>But you don’t have time for confusion. The IBM Journey Designer can help you refine the buyer journey across channels to create exceptional customer experiences.</p> | |
| <img src="images/learn_01.jpg" width="115" height="34" alt=""/> | |
| </td> |
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
| build_settings: | |
| verbose: false | |
| prefer_symlink: false | |
| setup: | |
| composer: | |
| action: "install" | |
| prefer_dist: false | |
| test: |
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
| var rmBtns = document.querySelectorAll('[aria-label="Remove"]') | |
| rmBtns.forEach(function(el) { | |
| el.click(); | |
| }); |
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
| # sarg.conf | |
| # | |
| # TAG: access_log file | |
| # Where is the access.log | |
| # sarg -l file | |
| # | |
| access_log /250Vault/squid/logs/access.log | |
| # TAG: graphs yes|no | |
| # Use graphics where possible. |
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
| #!/bin/sh | |
| # Flush out the list before we begin. | |
| ipfw -q -f flush | |
| # Set rules command prefix | |
| cmd="ipfw -q add" | |
| pif="vtnet0" # interface name of NIC attached to Internet | |
| $cmd 00005 allow all from any to any via vtnet0 |
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 | |
| # Get contents from easylist domain | |
| $content = file_get_contents('easylist.txt'); | |
| # Extract adserver list only | |
| preg_match('/(\!\s\*\*\*\seasylist:easylist\/easylist_adservers\.txt\s\*\*\*)[^"]+(\!\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-Third\-party\sadverts\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\!)/', $content, $extracted, PREG_OFFSET_CAPTURE); | |
| /* | |
| * Remove unnecessary strings from every URL |
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
| #Needs imagemagick library | |
| D:\>for /R %i in (*.jpg) DO identify %i >> result.txt |
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
| To enable PHP in Apache add the following to httpd.conf and restart Apache: | |
| LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.so | |
| The php.ini file can be found in: | |
| /usr/local/etc/php/5.6/php.ini | |
| ✩✩✩✩ PEAR ✩✩✩✩ | |
| If PEAR complains about permissions, 'fix' the default PEAR permissions and config: | |
| chmod -R ug+w /usr/local/Cellar/php56/5.6.10/lib/php |
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 App\Http\Middleware; | |
| use Closure; | |
| class AfterMiddleware{ | |
| /** | |
| * Handle an outgoing request. | |
| * | |
| * @param \Illuminate\Http\Request $request |