Skip to content

Instantly share code, notes, and snippets.

View kenichi-shibata's full-sized avatar
🇯🇵
working

Kenichi Shibata kenichi-shibata

🇯🇵
working
View GitHub Profile
@kenichi-shibata
kenichi-shibata / InstallGuide.md
Created March 13, 2023 16:50 — forked from paill/InstallGuide.md
How to setup your Mac and Development Environment for OS-X Yosemite

Setting up your Mac

Geting an Admin Account

  • In order to install and configure your Mac, you need to be an Administrator on your computer. Either, contact Paul or Charlie, and they will create an account for you.

Installing of Software

Homebrew

@kenichi-shibata
kenichi-shibata / InstallGuide.md
Created March 13, 2023 16:50 — forked from paill/InstallGuide.md
How to setup your Mac and Development Environment for OS-X Yosemite

Setting up your Mac

Geting an Admin Account

  • In order to install and configure your Mac, you need to be an Administrator on your computer. Either, contact Paul or Charlie, and they will create an account for you.

Installing of Software

Homebrew

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2012 Matt Martz
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@kenichi-shibata
kenichi-shibata / gist:ccc8585d2e9b9260d03ac0eab1d5d386
Created February 14, 2023 11:37
install rosetta 2 apple m1
softwareupdate --install-rosetta --agree-to-license
resource "aws_iam_role" "this" {
count = local.enabled ? 1 : 0
name = "${var.function_name}-${local.region_name}"
assume_role_policy = join("", data.aws_iam_policy_document.assume_role_policy.*.json)
permissions_boundary = var.permissions_boundary
}
data "aws_iam_policy_document" "assume_role_policy" {
count = local.enabled ? 1 : 0
@kenichi-shibata
kenichi-shibata / oreilly-live-events.py
Created January 11, 2023 16:34 — forked from suhailpatel/oreilly-live-events.py
A CLI to interact with the O'Reilly Live Events site
#!/usr/bin/python3
import cmd, json, sys, traceback
from collections import defaultdict
from dataclasses import dataclass
from typing import List, Dict
import requests
# This is part of Suhail's talk on the Infrastructure and Ops Superstream
# track for O'Reilly
@kenichi-shibata
kenichi-shibata / blame-praise.py
Created October 18, 2022 12:35 — forked from amarao/blame-praise.py
Example of argparse with subparsers for python
#!/usr/bin/env python
import argparse
def main(command_line=None):
parser = argparse.ArgumentParser('Blame Praise app')
parser.add_argument(
'--debug',
action='store_true',
help='Print debug info'
@kenichi-shibata
kenichi-shibata / blame-praise.py
Created October 18, 2022 12:34 — forked from amarao/blame-praise.py
Example of argparse with subparsers for python
#!/usr/bin/env python
import argparse
def main(command_line=None):
parser = argparse.ArgumentParser('Blame Praise app')
parser.add_argument(
'--debug',
action='store_true',
help='Print debug info'
@kenichi-shibata
kenichi-shibata / links
Created August 23, 2022 16:41
python formatting and linting + ipython interactive