- Create an empty repo in BitBucket
git clone --bare git@github.com:user/repo.gitcd repo.gitgit push --mirror git@bitbucket.org:user/repo.git
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
| 1/https://www.drupal.org/project/backstretch module provide set backgroud full page | |
| 2/hook_process_page custom logo any page, etc | |
| 3/https://www.drupal.org/project/views_merge_rows |
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
| #!/usr/bin/env sed -f | |
| # whitespace at end of lines | |
| s/\s\+$// | |
| # fix comma followed by non-space character | |
| # don't be picky, this is correct even for text! | |
| /function/!s/\(,\)\(\S\)/\1 \2/g | |
| # fix comments may not appear after statements |
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
| #!/usr/bin/env bash | |
| # Use single quotes instead of double quotes to make it work with special-character passwords | |
| PASSWORD='12345678' | |
| PROJECTFOLDER='gdson' | |
| # create project folder | |
| sudo mkdir "/sites/${PROJECTFOLDER}" | |
| # update / upgrade |
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 | |
| # Install dependencies | |
| # older ubuntus | |
| #apt-get install build-essential libsqlite3-dev ruby1.9.1-dev | |
| # xenial | |
| apt install build-essential libsqlite3-dev ruby-dev | |
| # Install the gem | |
| gem install mailcatcher --no-ri --no-rdoc |
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 localhost; | |
| root /Users/wahyudibo/Projects/mylabs/php/nginx; | |
| #error_page 404 /404.html; | |
| # redirect server error pages to the static page /50x.html | |
| # |
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
| pipeline { | |
| agent any | |
| environment { | |
| PACKAGE="github.com/abtris/bee" | |
| GOPATH="/Users/abtris/go" | |
| GOROOT="/usr/local/opt/go/libexec" | |
| } | |
| stages { | |
| stage('Preparation') { | |
| steps { |
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 Declarative Pipeline is defined within a 'pipeline' block. | |
| pipeline { | |
| // agent defines where the pipeline will run. | |
| agent { | |
| // This also could have been 'agent any' - that has the same meaning. | |
| label "" | |
| // Other possible built-in agent types are 'agent none', for not running the | |
| // top-level on any agent (which results in you needing to specify agents on | |
| // each stage and do explicit checkouts of scm in those stages), 'docker', |
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
| #!groovy | |
| @Library('github.com/walkmod/jenkins-pipeline-shared@maven') _ | |
| pipeline { | |
| agent any | |
| stages { | |
| stage ('Fixing Release'){ | |
| steps { | |
| walkmodApply( |