2019/01/27

k8s show nfs content

kubectl get pods kubectl describe pod somepod kubectl exec nfs-server-pod-name -c containerInPod -it -- /bin/bash    showmount -e localhost    ls ...

2019/01/25

window10 C drive 謎の容量圧迫

C Diverが50G位の空きがあったが、突然赤くなった。。70Mしか空きがない。。。 各FolderのSizeをCheck、明らかに合わない 怪しい物を探し、 C:¥Windows¥Temp C:¥Windows¥Temp1 が50G位の大きさで、 削除して解決。...

git rebase merge

Mergeを取り消したく、 git rebase -i でしたが、MergeのCommitが出ない git rebase -i -p commit-number  で解決し...

2019/01/24

golang graphql input parameter Args array

``` func someApi() *graphql.Field { return &graphql.Field{ Type: someType, Args: graphql.FieldConfigArgument{ "a": &graphql.ArgumentConfig{ Type: graphql.String, }, "b": &graphql.ArgumentConfig{ Type: graphql.String, }, "c": &graphql.ArgumentConfig{ Type: graphql.NewList(graphql.Int), }, }, Resolve: func(p graphql.ResolveParams) (interface{}, error) { return someType } `...

git change upstream branch

git branch -vv git branch --set-upstream-to origin/someBranch (git branch -u origin/someBran...

2019/01/21

windows10 sleep wakeup taskschdule

・sleep   shutdown.exe /h ・wakeup  shutdown.exe /r     ー>最上階位特権で実行  ー>SLeepを解除  ー>ログオフでも実行   ・powercfg -h on   休眠モードを有効に ・電源高級オプション  TaskScheduleよりSleep解除を...

2019/01/06

linux usb iso

#ISOをUSBにする sudo dd if=./xx.iso of=/dev/...

centos mount ntfs

``` su yum -y --enablerepo=epel install dkms fuse-ntfs-3g fdisk -l mkdir /mnt/a mout -t ntfs-3g /dev/sdb1 /mount/a NTFS-3G is an open source implementation of NTFS that includes read and write support. NTFS-3G developers use the FUSE file system to facilitate development and to help with portability. vi /etc/fstab ...