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
<template> | |
<div class="container"> | |
<div class="row justify-content-center"> | |
<div class="col-md-8"> | |
<div class="card card-default"> | |
<div class="card-header">Example Component</div> | |
<div class="card-body upload-file-wrapper"> | |
<input | |
type="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
FROM php:7.2.10-apache-stretch | |
RUN apt-get update -yqq && \ | |
apt-get install -y apt-utils zip unzip && \ | |
apt-get install -y nano && \ | |
apt-get install -y libzip-dev libpq-dev && \ | |
a2enmod rewrite && \ | |
docker-php-ext-install pdo_pgsql && \ | |
docker-php-ext-install pgsql && \ | |
docker-php-ext-configure zip --with-libzip && \ |
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/bash | |
# declare an array called array and define 3 vales | |
databases=( drupal fresh lasalle_wp_fts ) | |
username=root | |
password=password | |
filepath=/home/amitavroy/code/backup | |
for i in "${databases[@]}" | |
do | |
filename=${i}_$(date +"%m%d%Y-%k%M") | |
mysqldump -u${username} -p${password} ${i} > ${filepath}/${filename}.sql |
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 | |
/** | |
* Portable PHP password hashing framework. | |
* @package phpass | |
* @since 2.5.0 | |
* @version 0.3 / WordPress | |
* @link http://www.openwall.com/phpass/ | |
*/ | |
# |
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
# Basics | |
sudo apt-get update | |
sudo apt-get install -y git tmux vim curl wget zip unzip htop | |
# Nginx | |
sudo apt-get install -y nginx | |
# PHP | |
sudo add-apt-repository ppa:nginx/stable | |
sudo add-apt-repository -y ppa:ondrej/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
# Installing Apache, PHP and MySQL | |
sudo apt install -y apache2 | |
sudo add-apt-repository -y ppa:ondrej/php | |
sudo apt-get update | |
sudo apt install -y zip unzip git curl | |
sudo apt-get install -y php7.3-fpm php7.3-cli php7.3-gd php7.3-mysql \ | |
php7.3-mbstring php7.3-xml php7.3-curl \ | |
php7.3-bcmath php7.3-sqlite3 php7.3-zip |
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
stages: | |
- test | |
# Variables: these have to match | |
# the .env.example credentials in your Laravel app | |
# use the default homestead/secret combination, since | |
# that database gets created in the edbizarro/gitlab-ci-pipeline-php:7.1 | |
# docker image. | |
variables: | |
MYSQL_ROOT_PASSWORD: root |
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
<script> | |
var t0 = window.performance.now(); | |
</script> | |
<script> | |
var t1 = window.performance.now(); | |
console.log("Call to doSomething took " + (t1 - t0) + " milliseconds.") | |
</script> |
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
<!doctype html> | |
<html lang="en" ng-app="anim"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Test page</title> | |
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script> | |
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.1.5/angular.min.js"></script> | |
<script> | |
var anim = angular.module('anim', []); | |
anim.controller('MainCtrl', ['$scope', function ($scope) { |
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
<div class="example-class<?php echo ($xyz++%2); ?>"> |