- Use apple silicon
- MacBook Pro(14inch、2021)
- Apple M1 Pro
- 16GB
- Signup haggingface
reference: https://zenn.dev/ktakayama/articles/6c627e0956f32c
#/bin/sh | |
################# Usage ######################## | |
# ./check_s3_backup_policy.sh AWS_PROFILE_NAME | |
################################################ | |
PROFILE=$1 | |
if [ -z "$PROFILE" ]; then | |
echo "Usage: $0 <aws-profile>" | |
exit 1 |
delimiter // | |
create procedure insert_loop(in x int) | |
begin | |
declare max_id int; | |
declare i int; | |
set i = 0; | |
select max(id) into max_id from article; | |
while i < x do | |
set i = i + 1; | |
insert into article values (max_id + i, concat('article', i), concat('body_', i)); |
services=( | |
"AWS::EC2::CustomerGateway" | |
"AWS::EC2::EIP" | |
"AWS::EC2::Host" | |
"AWS::EC2::Instance" | |
"AWS::EC2::InternetGateway" | |
"AWS::EC2::NetworkAcl" | |
"AWS::EC2::NetworkInterface" | |
"AWS::EC2::RouteTable" | |
"AWS::EC2::SecurityGroup" |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
) | |
func main() { |
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
cnt := 14 | |
for i := 0; i <= cnt; i++ { |
reference: https://zenn.dev/ktakayama/articles/6c627e0956f32c
package main | |
import ( | |
"bufio" | |
"fmt" | |
"math/rand" | |
"os" | |
"strconv" | |
"time" | |
) |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"path/filepath" | |
) | |
func fileList(dir string) []string { | |
files, err := ioutil.ReadDir(dir) |
//アクティブシートの取得 | |
spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); | |
sheetname = 'シート1' | |
sheet = spreadsheet.getSheetByName(sheetname) | |
//最終行の取得 | |
lastRow = sheet.getLastRow() | |
//よくある存在する行分ループするやつ | |
//この場合のlineNumは行番号を入れるとどの行から始めるか変更できる |
# kubernetes create labels | |
kubectl label nodes <NODE> <key>=<value> | |
# kubernetes delete labels | |
kubectl label nodes <NODE> <key>- |