Skip to content

Instantly share code, notes, and snippets.

@wildwind123
wildwind123 / git_command.txt
Last active December 12, 2022 00:19
usefull git command
// disable changes of chmod
git config core.fileMode false
// change remote origin with personal token
git remote set-url origin https://personal_token@github.com
@wildwind123
wildwind123 / test.cli
Created October 24, 2022 11:14
CLI argument, ansible semaphore.
[
"--extra-vars",
"git_branch=test"
]
@wildwind123
wildwind123 / config.yaml
Created October 13, 2022 02:52
Example ip config linux /etc/netplan/
network:
ethernets:
ens160:
addresses:
- 192.168.1.2/16
gateway4: 192.168.0.1
nameservers:
addresses:
- 8.8.8.8
version: 2
@wildwind123
wildwind123 / nginx.yaml
Created October 1, 2022 07:52
php-fpm nginx kubernetes example
# example of kubernetes config file php+nginx
# some volume types
# if use minikube should run command
# minikube mount /home/ganbatte/Desktop/project:/home/host2
# create file index.php on shared path /home/ganbatte/Desktop/project/minikubeshared
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-conf
data: