kubectl apply -f mybuild.yaml && tkn taskrun delete run-sample-java-build && kubectl apply -f mybuild-run.yaml
tkn taskrun logs run-sample-java-build -f
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
# 1st stage, build the app | |
FROM maven:3.8.4-openjdk-17-slim as build | |
WORKDIR /helidon | |
# Create a first layer to cache the "Maven World" in the local repository. | |
# Incremental docker builds will always resume after that, unless you update | |
# the pom | |
ADD pom.xml . |
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
using NicoSitePlugin; | |
using Plugin; | |
using SitePlugin; | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.Composition; | |
using System.IO; | |
using System.Text; | |
namespace VCIConnectPlugin |
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
YouTubeやニコニコ動画でIT技術に関連する動画や毎週のITニュースの配信等を活動中。エンタープライズシステムの設計/開発/運用を得意としており、JavaやDevOps、クラウドのエンジニアとしても働いている。<br /> | |
<b>SNS</b> | |
<ul> | |
<li>Twitter: <a href="https://twitter.com/koduki">@koduki</a></li> | |
<li><a href="https://t.co/kBqSAQJMZJ">YouTubeチャンネル</a></li> | |
<li><a href="https://com.nicovideo.jp/live/co4229895">ニコ生</a></li> | |
</ul> |
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
Configuration ADDS | |
{ | |
$DomainName = "nklab.dev" #Get-AutomationVariable -Name "DomainName" | |
$DomainDN = "dc=nklab,dc=dev" #Get-AutomationVariable -Name "DomainDN" | |
# $default_username = "nklab\koduki" | |
# $default_password = "ここにパスワード" | ConvertTo-SecureString -asPlainText -Force | |
# [PSCredential]$default_creds = New-Object System.Management.Automation.PSCredential($default_username,$default_password) | |
# Import the modules needed to run the DSC script |
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
# Read glTF | |
io = open('suika_vci.vci', "rb") | |
## Header | |
glb_h_magic = io.read(4) | |
glb_h_version = io.read(4).unpack("L*")[0] | |
glb_h_length = io.read(4).unpack("L*")[0] | |
### Chunk 0 (JSON) |
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
@Path("/index.html") | |
@GET | |
@Produces(MediaType.TEXT_HTML) | |
public String goIndex() throws IOException, TemplateException, URISyntaxException { | |
return view("index.ftl", Map.of( | |
"hello", "Hello", | |
"world", "World" | |
)); | |
} |
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
FROM debian | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends && \ | |
unoconv \ | |
imagemagick \ | |
xpdf && \ | |
apt-get -y --purge autoremove && \ | |
rm -rf /var/lib/apt/lists/* |
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
String traceparent = headers.getRequestHeaders().getFirst("traceparent"); | |
TraceId traceId = TraceId.fromLowerBase16(traceparent, TRACE_ID_OFFSET); | |
SpanId spanId = SpanId.fromLowerBase16(traceparent, SPAN_ID_OFFSET); | |
TraceOptions traceOptions = TraceOptions.fromLowerBase16(traceparent, TRACE_OPTION_OFFSET); | |
try (Scope ss = tracer | |
.spanBuilderWithRemoteParent("Span Name", SpanContext.create(traceId, spanId, traceOptions)) | |
.setRecordEvents(true) | |
.setSampler(Samplers.alwaysSample()) | |
.startScopedSpan()) { |
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
docker pull gcr.io/google.com/cloudsdktool/cloud-sdk:latest | |
docker run gcr.io/google.com/cloudsdktool/cloud-sdk:latest gcloud version | |
docker run -ti --name gcloud-config gcr.io/google.com/cloudsdktool/cloud-sdk gcloud auth login | |
echo "alias gcloud='docker run -it --rm --volumes-from gcloud-config -v `pwd`:/work --workdir /work gcr.io/google.com/cloudsdktool/cloud-sdk:latest gcloud'" >> ~/.bashrc |