git checkout -b 'feature-a'
- git commit -m 'working on feature a'
- git commit -m 'working on feature a'
---
- git commit -m 'working on feature b'
- git commit -m 'working on feature b'
- git commit -m 'working on feature b'
---
This file contains 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
INSERT INTO `users` (`id`, `role_id`, `is_published`, `date_added`, `created_by`, `created_by_user`, `date_modified`, `modified_by`, `modified_by_user`, `checked_out`, `checked_out_by`, `checked_out_by_user`, `username`, `password`, `first_name`, `last_name`, `email`, `position`, `timezone`, `locale`, `last_login`, `last_active`, `online_status`, `preferences`) | |
VALUES | |
(2, 1, 1, '2015-04-01 15:15:07', 1, 'Nobody', NULL, NULL, NULL, NULL, NULL, NULL, 'madmin', '$2y$13$VkE7UjFetqAM13oT4v/VYOfRCGrJ4hbr0zuwRZo6KVfDnNb16WFwy', 'Administrator', 'Uuser', 'user@local.host', NULL, NULL, NULL, NULL, NULL, 'offline', 'N;'); |
This file contains 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\Criteria; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Http\Request; | |
use Prettus\Repository\Contracts\RepositoryInterface; | |
use Prettus\Repository\Contracts\CriteriaInterface; | |
/** |
This file contains 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; | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
# Make site accessible from http://localhost/ | |
server_name _; | |
location / { |
This file contains 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 ubuntu:latest | |
RUN apt-get update | |
RUN apt-get -y install software-properties-common python-software-properties | |
RUN apt-get -y --no-install-recommends install \ | |
ca-certificates \ | |
inetutils-ping \ | |
telnet \ | |
curl \ | |
nano \ | |
net-tools \ |
This file contains 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 | |
session_start(); | |
// define Joomla's framework path | |
// get bootstrap | |
require dirname(dirname(dirname(__FILE__))).'/bootstrap.php'; | |
// Increase error reporting to that any errors are displayed. | |
// Note, you would not use these settings in production. |
This file contains 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
ubuntu:latest | |
RUN apt-get update | |
RUN apt-get -y install software-properties-common python-software-properties | |
RUN apt-get -y --no-install-recommends install \ | |
ca-certificates \ | |
inetutils-ping \ | |
telnet \ | |
curl \ | |
nano \ | |
net-tools \ |
This file contains 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 TempRepository | |
*/ | |
class TempRepository extends EntityRepository | |
{ | |
/** | |
* Find a temp entity using the temps ID | |
* | |
* @throws NoResultException|NonUniqueResultException |
This file contains 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
node('ampsnet') { | |
stage('backup-att') { | |
dir('/home/akeeba/cli') { | |
try { | |
def statusCode = sh returnStatus: true, script: 'php backup.php --profile=1' | |
} catch(Exception e) { | |
if (statusCode < 2) { | |
currentBuild.result = 'SUCCESS' | |
} | |
} |
This file contains 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 | |
$query = array( | |
'refresh_token' => 'xxx', // $this->keys['refresh_token'], | |
'client_id' => 'yyy', //$this->keys[$this->getClientIdKey()], | |
'grant_type' => 'refresh_token', | |
); | |
$url = 'https://api.hubapi.com/auth/v1/refresh?' . http_build_query($query); | |
$ch = curl_init(); |
NewerOlder