Skip to content

Instantly share code, notes, and snippets.

View tuanpt-0634's full-sized avatar
💭
Everything will be 200 OK

Pham Tuan tuanpt-0634

💭
Everything will be 200 OK
View GitHub Profile
@tuanpt-0634
tuanpt-0634 / CMakeLists.txt
Last active October 31, 2022 02:50
CPack Wix copy file in current MSI folder to installation folder
set(CPACK_WIX_PATCH_FILE "${CMAKE_SOURCE_DIR}/packaging/wix/CopyConfigFile.xml")
@tuanpt-0634
tuanpt-0634 / for-switch-continue.php
Created August 7, 2020 11:47
PHP for, switch continue
<?php
function writeLine($message)
{
echo $message . PHP_EOL;
}
$values = [1, 2, 42, 3];
foreach ($values as $value) {
switch ($value) {
case 1:
@tuanpt-0634
tuanpt-0634 / foreach-try.php
Created August 7, 2020 11:45
Foreach Try Inline
<?php
$options = [1, 2, 3];
foreach ($options as $option) try {
if ($option == 2) {
throw new \Exception('2 is missing!!');
}
echo $option . PHP_EOL;
} catch (\Exception $ex) {
echo "Exception: ", $ex->getMessage(), "\n";
@tuanpt-0634
tuanpt-0634 / devops_best_practices.md
Created July 6, 2020 00:50 — forked from jpswade/devops_best_practices.md
Devops Best Practices Checklist

Find the original here article here: Devops Best Practices

DevOps started out as "Agile Systems Administration". In 2008, Andrew Shafer did a talk called "Agile Infrastucture" addressing issues around involving more of the company in the same disciplines as programmers.

In 2009, Patrick Debois created "DevOpsDays" conference to help to bring it to light. However, it wouldn't begin to trend until about 2010, when people would begin to describe it as a standalone discipline.

Today, DevOps goes beyond just developers, systems administration and infrastructure, its about [dev, ops, agile, cloud