I hereby claim:
- I am jerson on github.
- I am pardacho (https://keybase.io/pardacho) on keybase.
- I have a public key ASB445ZhwKsd2yuI2I4ZfdeFlZU-Bu6LP0eCYt3ht54JKQo
To claim this, I am signing this object:
version: '3' | |
services: | |
drone-server: | |
image: drone/drone | |
ports: | |
- 80:8000 | |
volumes: | |
- ./drone:/var/lib/drone/ | |
restart: always |
version: '3.3' | |
services: | |
namenode: | |
image: uhopper/hadoop-namenode:2.7.2 | |
ports: | |
- 8020:8020 | |
- 50070:50070 | |
volumes: | |
- ./tmp/namenode:/hadoop/dfs/name | |
environment: |
package main | |
import ( | |
"bytes" | |
"code.google.com/p/go.crypto/openpgp" | |
"encoding/base64" | |
"io/ioutil" | |
"log" | |
"os" | |
) |
I hereby claim:
To claim this, I am signing this object:
// Package main is a sample macOS-app-bundling program to demonstrate how to | |
// automate the process described in this tutorial: | |
// | |
// https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5 | |
// | |
// Bundling the .app is the first thing it does, and creating the DMG is the | |
// second. Making the DMG is optional, and is only done if you provide | |
// the template DMG file, which you have to create beforehand. | |
// | |
// Example use: |
This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.
While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.
# This file contains the fastlane.tools configuration | |
# You can find the documentation at https://docs.fastlane.tools | |
# | |
# For a list of all available actions, check out | |
# | |
# https://docs.fastlane.tools/actions | |
# | |
# For a list of all available plugins, check out | |
# | |
# https://docs.fastlane.tools/plugins/available-plugins |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"net/http" | |
"github.com/gorilla/mux" | |
) |
#!/bin/bash -i | |
#using shebang with -i to enable interactive mode (auto load .bashrc) | |
set -e #stop immediately if any error happens | |
# Install Open SDK | |
apt update | |
apt install openjdk-8-jdk -y | |
update-java-alternatives --set java-1.8.0-openjdk-amd64 | |
java -version |