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
sudo phpbrew install 5.4.45 \ | |
+default \ | |
+mysql \ | |
+hash \ | |
+iconv \ | |
+gd \ | |
+apxs2=/usr/bin/apxs -- \ | |
--with-gd \ | |
--enable-gd-natf \ | |
--with-jpeg-dir \ |
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
# This script production following aliases. | |
# | |
# alias ..='cd ../' | |
# alias ...='cd ../../' | |
# alias ....='cd ../../../' | |
# alias .....='cd ../../../../' | |
# alias ......='cd ../../../../../' | |
# alias .......='cd ../../../../../../' | |
# alias ........='cd ../../../../../../../' | |
# alias .........='cd ../../../../../../../../' |
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
#!/bin/sh | |
# Created by: Alex Saavedra | |
# Date created: 2011-05-11 | |
# Last modified: 2010-05-11 | |
# Purpose: ProcessMaker backup. | |
# Change log: | |
# Syntax: | |
# backup.sh <periodicity> <period> | |
# Parameters: | |
# <periodicity> = weekly, monthly, yearly |
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 | |
/** | |
* Pluck an array of values from an array. (Only for PHP 5.3+) | |
* | |
* @param $array - data | |
* @param $key - value you want to pluck from array | |
* | |
* @return plucked array only with key data | |
*/ | |
function array_pluck($array, $key) { |
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
#Exec=/usr/bin/google-chrome-stable %U | |
Exec=/opt/google/chrome/chrome %U |
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
def projects = [:]; | |
projects['first-repo'] = [ | |
name: 'First multibranch pipeline', | |
repo: 'repo-first' | |
] | |
projects['second-repo'] = [ | |
name: 'Second multibranch pipeline', | |
repo: 'repo-second' |
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
Started by user Piotr Sobieszczański | |
[Wed Jul 11 12:43:22 UTC 2018] Starting branch indexing... | |
ERROR: [Wed Jul 11 12:43:23 UTC 2018] Could not fetch branches from source 7aceea81-226f-4094-a96c-fbb8773cc981 | |
java.lang.ClassCastException: jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl cannot be cast to jenkins.scm.api.trait.SCMSourceTrait | |
at jenkins.scm.api.trait.SCMSourceContext.withTraits(SCMSourceContext.java:245) | |
at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:534) | |
at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:357) | |
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:267) | |
at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:633) |
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
Label: Comments | |
Machine name: comment | |
Descritpion: This field manages configuration and presentation of comments on an entity. | |
Provider: comment | |
--- | |
Label: Date | |
Machine name: datetime | |
Descritpion: Create and store date values. | |
Provider: datetime | |
--- |
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
{ | |
"variables": { | |
"aws_access_key": "", | |
"aws_secret_key": "" | |
}, | |
"builders": [{ | |
"type": "amazon-ebs", | |
"access_key": "{{user `aws_access_key`}}", | |
"secret_key": "{{user `aws_secret_key`}}", | |
"region": "eu-north-1", |
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
aws.setup-credencials () | |
{ | |
FILE=$HOME/accessKeys.csv; | |
if test -f "$FILE"; then | |
echo "Reading from $FILE"; | |
aws configure set aws_access_key_id $(tail -n1 $HOME/accessKeys.csv | cut -d, -f1); | |
aws configure set aws_secret_access_key $(tail -n1 $HOME/accessKeys.csv | cut -d, -f2); | |
else | |
echo "Missing $FILE"; | |
fi |