Skip to content

Instantly share code, notes, and snippets.

View Ladicle's full-sized avatar
WFH

Aya (Igarashi) Ozawa Ladicle

WFH
View GitHub Profile
@Ladicle
Ladicle / README.org
Last active February 18, 2024 21:14
Emacs Configuration ver. 2022

Ladicle’s Emacs Configuration ver.2022

https://user-images.githubusercontent.com/1159133/156761456-4be104ae-4cb3-420e-81c7-8abd00497d51.png

Outline

Package Management (link)

  • leaf-keywords
    • el-get
    • hydra
  • package-utils
@Ladicle
Ladicle / red_and_black.py
Last active October 26, 2021 13:02
red and black
BLACK = "."
RED = "#"
HUMAN = "@"
DIRECTIONS = [(-1, 0), (0, 1), (1, 0), (0, -1)] # up right down left
def red_and_black(col, row, point, graph):
stack = [point]
cnt = 0
while stack:
@Ladicle
Ladicle / 01-setup-vpa
Last active March 12, 2021 06:07
Manual Testing Log for kubernetes/autoscaler#3902
$ minikube start --memory=8Gi --cpus=4
😄 minikube v1.17.1 on Darwin 10.15.7
✨ Automatically selected the docker driver. Other choices: hyperkit, virtualbox, ssh
👍 Starting control plane node minikube in cluster minikube
🚜 Pulling base image ...
💾 Downloading Kubernetes v1.20.2 preload ...
> preloaded-images-k8s-v8-v1....: 491.22 MiB / 491.22 MiB 100.00% 5.91 MiB
🔥 Creating docker container (CPUs=4, Memory=8192MB) ...
🐳 Preparing Kubernetes v1.20.2 on Docker 20.10.2 ...
▪ Generating certificates and keys ...
// Initialize all known client auth plugins.
_ "k8s.io/client-go/plugin/pkg/client/auth"
@Ladicle
Ladicle / github.css
Last active November 24, 2018 09:25
@font-face {
font-family: octicons-link;
src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZqoD3SilVaXZCER3/I7AtxEJLtzzuZfI+VVkprxTlXShWKb3TBecG11rwoNlmmn1P2WYcJczl32etSpKnziC7lQyWe1smVPy/Lt7Kc+0vWY/gAgIIEqAN9we0pwKXreiMasxvabDQMM4riO+qxM2ogwDGOZTXxwxDiycQIcoYFBLj5K3EIaSctAq2kTYiw+ymhce7vwM9jSqO8JyVd5RH9gyTt2+J/yUmYlIR0s04n6+7Vm1ozezUeLEaUjhaDSuXHwVRgvLJn1tQ7xiuVv/ocTRF42mNgZGBgYGbwZOBiAAFGJBIMAA
@Ladicle
Ladicle / theme.fish
Last active August 2, 2018 15:32
linux-desktop-2018
add-apt-repository ppa:satyajit-happy/themes ppa:papirus/papirus
apt update; and install adapta-gtk-theme papirus-icon-theme
@Ladicle
Ladicle / setup-ubuntu.sh
Last active June 11, 2018 04:11
initialization scripts for Ubuntu
#!/bin/bash
set -exu
# install dependencies in apt
sudo apt update && sudo apt upgrade
sudo apt install \
git \
emacs \
fish \
@Ladicle
Ladicle / diff bookinfo manifest and istio-injected manifest
Last active December 7, 2017 01:45
$ diff <normal-bookinfo-manifest> <istio-injected-manifest>
33a34,36
> annotations:
> sidecar.istio.io/status: injected-version-releng@0d29a2c0d15f-0.2.12-998e0e00d375688bcb2af042fc81a60ce5264009
> creationTimestamp: null
36a40
> strategy: {}
38a43,45
> annotations:
> sidecar.istio.io/status: injected-version-releng@0d29a2c0d15f-0.2.12-998e0e00d375688bcb2af042fc81a60ce5264009
> creationTimestamp: null
@Ladicle
Ladicle / sound
Last active April 17, 2017 16:47
Sound command for OSX
#!/bin/bash -e
# Note:
# This script depends on "audiodevice" command.
# You need to install it in advance.
# http://whoshacks.blogspot.jp/2009/01/change-audio-devices-via-shell-script.html
function usage() {
cat <<EOF
Usage: $(basename $0) [options] [commands]
diff --git gojson/gojson.go gojson/gojson.go
index 567a416..fdb8acf 100644
--- gojson/gojson.go
+++ gojson/gojson.go
@@ -45,6 +45,7 @@ package main
import (
"flag"
"fmt"
+ "go/format"
"io"