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
version: '3' | |
services: | |
php: | |
build: | |
context: . | |
dockerfile: docker_files/php/docker/Dockerfile | |
image: php | |
container_name: php | |
restart: unless-stopped |
This file has been truncated, but you can view the full file.
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
2020/09/02 00:43:55 [INFO] Terraform version: 0.13.1 | |
2020/09/02 00:43:55 [INFO] Go runtime version: go1.14.7 | |
2020/09/02 00:43:55 [INFO] CLI args: []string{"/home/aexdev/apps/terraform", "apply"} | |
2020/09/02 00:43:55 [DEBUG] Attempting to open CLI config file: /home/aexdev/.terraformrc | |
2020/09/02 00:43:55 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2020/09/02 00:43:55 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins | |
2020/09/02 00:43:55 [DEBUG] ignoring non-existing provider search directory /home/aexdev/.terraform.d/plugins | |
2020/09/02 00:43:55 [DEBUG] ignoring non-existing provider search directory /home/aexdev/.local/share/terraform/plugins | |
2020/09/02 00:43:55 [DEBUG] ignoring non-existing provider search directory /usr/share/ubuntu/terraform/plugins | |
2020/09/02 00:43:55 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins |
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
server { | |
listen 80; | |
server_name [project_name]; | |
root /var/www/html/[project_name]/public; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
add_header X-XSS-Protection "1; mode=block"; | |
add_header X-Content-Type-Options "nosniff"; |
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
// a library to wrap and simplify api calls | |
import apisauce from 'apisauce' | |
import Reactotron from 'reactotron' // for IOS | |
const create = (baseURL = 'http://projectsnap.dev/api') => { | |
const api = apisauce.create({ | |
// base URL is read from the "constructor" | |
baseURL, | |
// here are some default headers |
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 | |
class Database { | |
protected $host = 'localhost'; | |
protected $user = 'root'; | |
protected $pass = ''; | |
protected $dbname = 'family'; | |
protected $db; | |
protected $sql_query; | |
protected $result; | |
public function __construct() { |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using MySql.Data.MySqlClient; | |
// require mysl.data on references | |
// author besingamk |
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 | |
/******* | |
database class personalize | |
author : besingamk | |
description: simple database class for simple CRUD application | |
driver : PDO | |
*/ | |
class Database { |
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 | |
$a = 12; | |
for ($b = 1; $b <= $a; $b++ ) { | |
for ($c = 1; $c <= $a; $c++) { | |
$sum = $b * $c; | |
echo $b . " x " . $c . " = " .$sum; | |
echo "<br />"; | |
} |
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
/*audit trail*/ | |
private $logdir = "application/logs/"; | |
private $logfile; | |
private $logs; | |
private function writeFile($logs) { | |
$fileOpen = fopen($this->logdir . $this->logfile, 'a+'); |