Skip to content

Instantly share code, notes, and snippets.

View tsubasaxZZZ's full-sized avatar

Tsubasa Nomura tsubasaxZZZ

View GitHub Profile
@tsubasaxZZZ
tsubasaxZZZ / shellscript.md
Created May 2, 2023 04:29
シェルスクリプトのテンプレ
#!/bin/sh

set -e

# Return current date and time with passed log message
log() {
    echo "$(date '+%Y-%m-%d %H:%M:%S'): $1" | tee -a log
}
@tsubasaxZZZ
tsubasaxZZZ / install-full.md
Last active December 24, 2022 06:10
AKSEdge install memo
PS C:\temp\AKS-Edge-main\tools> New-AksEdgeDeployment -JsonConfigFilePath .\mydeployconfig-WiFi.json

[12/24/2022 14:50:59] Validating AksEdge network parameters...

 - * Name:AKSEdgeSwitch - Type:External
 - * Name:Wi-Fi is Up

[12/24/2022 14:51:07] Network parameter validation terminated successfully
@tsubasaxZZZ
tsubasaxZZZ / join.kql
Created December 15, 2022 10:14
KQLの墓場
| join kind=leftouter (
resources
| where type == "microsoft.containerservice/managedclusters"
| extend aksname = tostring(name)
| join kind=leftouter (
resources
| where type == 'microsoft.compute/virtualmachinescalesets'
| extend resourceGroup=tolower(tostring(resourceGroup))
| join kind=leftouter (
resources
@tsubasaxZZZ
tsubasaxZZZ / HCX.md
Last active November 14, 2022 00:35
AVS

HCX でつなぐ

@tsubasaxZZZ
tsubasaxZZZ / policy.json
Created August 24, 2021 12:34
診断設定をしていないBLOBを検出する Azure Policy
{
"properties": {
"displayName": "Check Storage Account diagnostics",
"policyType": "Custom",
"mode": "All",
"metadata": {
"category": "Monitoring",
"createdBy": "c9827269-33fe-47ac-ab33-70524aeaa523",
"createdOn": "2021-08-24T09:50:34.9090586Z",
"updatedBy": "c9827269-33fe-47ac-ab33-70524aeaa523",
@tsubasaxZZZ
tsubasaxZZZ / setupns.sh
Last active August 6, 2021 08:33
ブリッジとnamespaceの作成
#!/bin/sh
echo 1 > /proc/sys/net/ipv4/ip_forward
ip netns add ns1
ip netns add ns2
ip netns exec ns1 ip link set lo up
ip netns exec ns2 ip link set lo up
ip link add br0 type bridge
@tsubasaxZZZ
tsubasaxZZZ / README.md
Last active July 26, 2021 02:46
Windows 評価版を製品版に変更する
@tsubasaxZZZ
tsubasaxZZZ / README.md
Last active November 16, 2021 16:17
SLI/SLO
@tsubasaxZZZ
tsubasaxZZZ / docker.md
Last active November 5, 2020 03:22
docker hands-on
app.UseEndpoints(endpoints =>
{
    endpoints.MapGet("/", async context =>
    {
        var greeting = Environment.GetEnvironmentVariable("Greeting");
        if(String.IsNullOrEmpty(greeting))
        greeting = "Hello World!";
        await context.Response.WriteAsync(greeting + " Tsubasa");
 });