Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# setup_dev.sh - Docker を使わずに開発環境をセットアップするスクリプト
echo "🚀 動画生成アプリケーションの開発環境をセットアップします"
echo "このスクリプトは Python 3.10+ と Node.js 20+ がインストールされていることを前提としています"
# 変数
UV_VERSION="0.6.2"
POETHEPOET_VERSION="0.32.2"
@sibukixxx
sibukixxx / download.rs
Last active July 19, 2023 10:31
download.rs
use async_trait::async_trait;
use reqwest::Client;
use rusoto_core::Region;
use rusoto_s3::{GetObjectRequest, S3Client, S3};
use std::fs::File;
use std::io::{Read, Write};
use std::path::Path;
use tokio::io::AsyncReadExt;
use url::Url;
use data_encoding::BASE64;
@sibukixxx
sibukixxx / ide_shortcut.md
Last active January 28, 2023 08:02 — forked from masa7351/ide_shortcut.md
Visual Studio CodeとIntelliJのショートカット対応表

テキストエディター

目的 Visual Studio Code IntelliJ 補足
行複製 Option + Shift + ↑ or ↓ Command + D Option + Shift + ↑ or ↓はIntelliJでは行入れ替えのショートカットキー
行削除 Command + Shift + K
Command + X ※
※ Clipbordに登録されるので、Command + Vで貼り付けできる
Command + Delete
行追加※行末にいない状態で追加 Command + EnterCommand + Shift + Enter ※※ Shiftをつけてると、上に行が追加される Shif
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
---
################################################################################
#
# Section: Organizations
#
#!/usr/bin/env bash
version=2.0.1
arch=amd64
type=linux
curl -L -O https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${version}/kubebuilder_${version}_${type}_${arch}.tar.gz
tar -zxvf kubebuilder_${version}_${type}_${arch}.tar.gz
mkdir -p ~/.local/bin
mv kubebuilder_${version}_${type}_${arch}/bin/* ~/.local/bin/
#!/bin/bash
EMAIL=<your email>
DOMAIN=<your domain>
apt install certbot -y
certbot certonly --webroot --webroot-path /var/www/html/ --email ${EMAIL} --domain ${DOMAIN}
#!/bin/bash
apt install make gcc -y
git clone https://github.com/ipfs/go-ipfs.git
cd go-ipfs
make install
ipfs init
echo "hello IPFS World" > test1.txt
#!/bin/bash
GO_ZIPFILE=go1.13.1.linux-amd64.tar.gz
GO_URL="https://dl.google.com/go/" + ${GO_ZIPFILE}
cd ~
wget ${GO_URL}
tar -xvf ${GO_ZIPFILE}
mv ~/go /usr/local/
@sibukixxx
sibukixxx / gist:f3bd7e3dd799ead7ee0e854e4ca73b3a
Created March 25, 2018 16:20 — forked from giannisp/gist:ebaca117ac9e44231421f04e7796d5ca
Upgrade PostgreSQL 9.6.5 to 10.0 using Homebrew (macOS)
After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work.
The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0."
Database files have to be updated before starting the server, here are the steps that had to be followed:
# need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default
brew unlink postgresql
brew install [email protected]
brew unlink [email protected]
brew link postgresql
@sibukixxx
sibukixxx / req.txt
Created May 16, 2017 07:42
python modules
boto==2.27
google-api-python-client==1.4.2
typedtuple==0.1.0
enum34==1.0
click>=5.1
toolz>=0.7.4
fn>=0.4.3
pytoml>=0.1.4
ruamel.yaml>=0.10.12
jsonpickle==0.9.3