Skip to content

Instantly share code, notes, and snippets.

View enm10k's full-sized avatar
💭
I may be slow to respond.

enm10k enm10k

💭
I may be slow to respond.
View GitHub Profile
@enm10k
enm10k / main.dart
Created December 17, 2024 10:14
Flutter CustomClipper Sample
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
import boto3
import json
import sys
def get_secret_value(secret_arn):
client = boto3.client('secretsmanager')
return client.get_secret_value(SecretId=secret_arn)['SecretString']
if __name__ == "__main__":
if len(sys.argv) != 2:
import boto3
import pprint
def get_s3_bucket_names(client):
res = client.list_buckets()
return [bucket["Name"] for bucket in res["Buckets"]]
def check_if_s3_bucket_is_empty(client, name):
import json
import urllib.request
SLACK_INCOMING_WEBHOOK_URL = 'https://hooks.slack.com/services/***'
def notify_to_slack(text):
body = {
'text': text,
}
$steam_user_id = "***"
$steam_game_id = "***"
$timestamp = [DateTimeOffset]::Now.ToUnixTimeSeconds()
$src = "C:\Program Files (x86)\Steam\userdata\$steam_user_id\$steam_game_id\remote"
$dest = "$src-$timestamp"
echo "src: $src"
echo "dest: $dest"
package main
import (
_ "github.com/mattn/go-sqlite3"
"xorm.io/xorm"
)
type Hoge struct {
Id int64 `xorm:"pk autoincr"`
}
import Foundation
import Security
var pem = """
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
"""
// ヘッダーとフッターを削除
provider "aws" {
profile = "test"
region = "ap-northeast-1"
}
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
name = "test"
cidr = "10.0.0.0/16"
[abcjs]
X: 1
T: Cooley's
M: 4/4
L: 1/8
K: Emin
|:D2|EB{c}BA B2 EB|~B2 AB dBAG|FDAD BDAD|FDAD dAFD|
EBBA B2 EB|B2 AB defg|afe^c dBAF|DEFD E2:|
|:gf|eB B2 efge|eB B2 gedB|A2 FA DAFA|A2 FA defg|
# TODO: If you have a lot of resources, you should check nextToken and enable pagination.
import boto3
import json
client = boto3.client("ecr")
res = client.describe_repositories(maxResults=1000)
repo_names = [D["repositoryName"] for D in res["repositories"]]