[transport.https.properties]
proxyPort = 443
[server]
hostname = "knnect.lk"
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\Controller; | |
| use App\Utils\Paginator; | |
| use Doctrine\ORM\EntityManagerInterface; | |
| use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Symfony\Component\HttpFoundation\Response; |
>>> docker exec -it CONTAINERID /bin/sh
/app # telnet
/bin/sh: telnet: not found
/app # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-243-gf26e75a186 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-229-g087f28e29d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
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
| What else can you do? | |
| How to clone repository to a specific commit? (full clone) | |
| # Create empty repository to store your content | |
| git clone <url> | |
| git reset <sha-1> --hard | |
| More info: | |
| How to clone single branch? |
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
| -- If you want to generate a new Guid (uniqueidentifier) in SQL server the you can simply use the NEWID() function. | |
| SELECT NEWID() | |
| GO | |
| -- This will return a new random uniqueidentifier e.g. | |
| E75B92A3-3299-4407-A913-C5CA196B3CAB | |
| To select this Guid in in a variable | |
| --assign uniqueidentifier in a variable | |
| DECLARE @EmployeeID uniqueidentifier |
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
| DROP PROCEDURE IF EXISTS fillupdate; | |
| DELIMITER // | |
| CREATE PROCEDURE fillupdate() | |
| BEGIN | |
| DECLARE nbdate INT DEFAULT 0; | |
| DECLARE dt DATETIME DEFAULT 0; | |
| SET dt = '2016-01-01'; | |
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
| Example infrastructure outage incident report | |
| Friday, May 13, 2077 | |
| By the Example Security Team | |
| Earlier this week we experienced an outage in our API infrastructure. Today we’re providing an incident report that details the nature of the outage and our response. | |
| The following is the incident report for the Example Security outage that occurred on April 30, 2077. We understand this service issue has impacted our valued developers and users, and we apologize to everyone who was affected. |
Here's a little walkthrough of how Yannick and I are using feature branches and pull requests to develop new features and adding them to the project. Below are the steps I take when working on a new feature. Hopefully this, along with watching the process on Github, will serve as a starting point to having everyone use a similar workflow.
Questions, comments, and suggestions for improvements welcome!
When starting a new feature, I make sure to start with the latest and greatest codebase:
git checkout master
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
| ini_set('soap.wsdl_cache_enabled', 0); | |
| ini_set('soap.wsdl_cache_ttl', 900); | |
| ini_set('default_socket_timeout', 15); | |
| $params = array('param1'=>$param1); | |
| $wsdl = 'http://service_url/method?WSDL'; |
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
| import cx_Oracle | |
| def perform_query(query, bind_variables): | |
| connection = db_pool.acquire() | |
| cursor = connection.cursor() | |
| cursor.execute(query, bind_variables) | |
| result = cursor.fetchall() | |
| cursor.close() | |
| db_pool.release(connection) | |
| return result |