All of the following information is based on go version go1.17.1 darwin/amd64.
| GOOS | Out of the Box |
|---|---|
aix |
✅ |
android |
✅ |
| // *********************** | |
| // | |
| // Build and deploy different environments with jenkins pipeline | |
| // | |
| // Merge to develop -> triggers development release | |
| // Merge to master without tag -> triggers staging release | |
| // Merge to master with tag -> triggers staging and production release | |
| // Production release requires manual approval on the jenkins job | |
| // | |
| // Configure jenkins pipeline project to pull tags! By default, tags are not pulled! |
| package org.example; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.nio.file.Files; | |
| import javax.xml.bind.DatatypeConverter; | |
| public class ToDataURI { |
| import java.text.SimpleDateFormat | |
| import java.util.* | |
| /** | |
| * Pattern: yyyy-MM-dd HH:mm:ss | |
| */ | |
| fun Date.formatToServerDateTimeDefaults(): String{ | |
| val sdf= SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault()) | |
| return sdf.format(this) | |
| } |
| 1.Override CommonActivity's startActivity and finish | |
| @Override | |
| public void startActivity(Intent intent) { | |
| super.startActivity(intent); | |
| overridePendingTransition(R.anim.from_right_in, R.anim.from_left_out); | |
| } | |
| @Override | |
| public void finish() { | |
| super.finish(); |
| #!/bin/bash | |
| NO_DEV="--no-dev" | |
| if [[ $1 == "dev" ]]; then | |
| NO_DEV="" | |
| fi | |
| git fetch |
Install the XDebug plugin for Atom and then add the following to the config.cson file (Atom > Config…):
"php-debug":
PathMaps: [
"remotepath;localpath"
"/server/path/to/project/;/local/path/to/project/"
]
ServerPort: 9001
| mkdir ~/vim | |
| cd ~/vim | |
| # Staically linked vim version compiled from https://github.com/ericpruitt/static-vim | |
| # Compiled on Jul 20 2017 | |
| curl 'https://s3.amazonaws.com/bengoa/vim-static.tar.gz' | tar -xz | |
| export VIMRUNTIME="$HOME/vim/runtime" | |
| export PATH="$HOME/vim:$PATH" | |
| cd - |
| <?php | |
| /** | |
| * GIT DEPLOYMENT SCRIPT | |
| * | |
| */ | |
| // The commands | |
| $commands = array( | |
| 'echo $PWD', | |
| 'whoami', | |
| 'git reset --hard HEAD', |