- Install and configure GitBucket at http://localhost:8080
- Deny anonymous access
- Create a group
hello
- Create a repository
hello/foo
withREADME.md
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
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"net/http" | |
) | |
func main() { |
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
package main | |
import ( | |
"log" | |
"os" | |
"github.com/mitchellh/go-homedir" | |
"k8s.io/client-go/tools/clientcmd" | |
) |
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
package main | |
import ( | |
"crypto/rand" | |
"encoding/binary" | |
"fmt" | |
"github.com/coreos/go-oidc" | |
"golang.org/x/oauth2" | |
) |
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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: kubernetes-dashboard-proxy | |
namespace: kube-system | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: |
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/bash -e | |
# Directory that contains sources | |
SOURCE_DIR="/example/source" | |
# Directory to deploy sources to | |
TARGET_DIR="/example/bin" | |
# Directory to keep old generations | |
STAGING_DIR="/example/staging" |
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
/* | |
Copyright 2017 Hidetake Iwata | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
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
dn: | |
objectClass: glue | |
structuralObjectClass: glue | |
entryUUID: ******** | |
creatorsName: cn=admin,dc=example,dc=org | |
createTimestamp: 20170817063913Z | |
entryCSN: 20170817063913.365569Z#000000#000#000000 | |
modifyTimestamp: 20170817063913Z | |
memberOf: cn=crowd-administrators,dc=example,dc=org | |
modifiersName: cn=admin,dc=example,dc=org |
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 gensim.models.doc2vec import Doc2Vec | |
from gensim.models.doc2vec import TaggedDocument | |
from google.cloud import language | |
def wakachigaki(text): | |
client = language.Client() | |
document = client.document_from_text(text) | |
annotations = document.annotate_text() | |
words = [] |