Tuesday, February 15, 2022
Import kong configuration snapshot
Monday, December 20, 2021
Error build Golang with SQlite on Docker
"Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work."
Add RUN cmd with option in Dockerfile
RUN go build -a -ldflags "-linkmode external -extldflags '-static' -s -w" -o main
Sunday, December 19, 2021
MacOS Internet Recovery Error -1007F
Internet Recovery Error -1007F
1. press "Command + Option/Alt + R + P" reboot loop 3 times
2. press "Option/Alt + R" for internet recovery
Friday, November 19, 2021
TMUX wsl redering error, when split pane
edit windows terminal settings.json file
"experimental.rendering.forceFullRepaint": true
Sunday, August 22, 2021
Update docker-compose
$ sudo apt-get remove docker-compose
$ sudo curl -L "https://github.com/docker/compose/releases/download/v2.13.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
$ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
Thursday, August 19, 2021
Caching your GitHub credentials in Git
git config --global credential.helper 'cache --timeout=10000000' ;16 week
git config --global credential.helper 'cache --timeout=604800' ;7 days
1 day 86400 second
7 day 604800 second
30 day 2592000 second
Tuesday, August 17, 2021
Install Linux Alpine on VMware
# Install Linux Alpine template:
- setup-alpine
- keyboard us,us
- disk install lvm
- type install sys
reboot
# setup hostname and ip address:
edit file /etc/network/interface
auto eth0
iface eth0 inet static
address 192.168.2.16
netmask 255.255.255.0
gateway 192.168.2.254
hostname YOUR-HOSTNAME
echo "YOUR-HOSTNAME" > /etc/hostname
hostname -F /etc/hostname
# Set dns:
edit file /etc/resolv.conf
nameserver 8.8.8.8
nameserver 4.4.4.4
reboot
# add repositories /etc/apk/repositories:
edit /etc/apk/repositories
http://dl-cdn.alpinelinux.org/alpine/latest-stable/community/
apk update
apk upgrade
# create user admin:
adduser admin
# install docker:
apk add docker
apk add docker-compose
# add user admin to docker group:
addgroup admin docker
# start docker on boot:
rc-update add docker boot
service docker start
# install net-snmp:
apk add net-snmp
edit /etc/snmp/snmpd/conf
agentAddress udp:0.0.0.0:161
rocommunity SNMP_SECRET_KEY default
# start snmp on boot:
rc-update add snmpd boot
service snmpd start
# install open-vm-tools:
apk add open-vm-tools
# start open-vm-tools on boot:
rc-update add open-vm-tools boot
service open-vm-tools start
# install git:
apk add git
# install vim:
apk add vim
edit /home/${USER}/.vimrc
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set visualbell
edit /home/${USER}/.inputrc
set bell-style none #disable bell
# test snmp services:
snmpwalk -c SNMP_SECRET_KEY -v2c YOUR_SERVER_IPADDRESS
ALCATEL 6900
write memory copy running certified reload from working no rollback-timeout
-
SET LLDP System NAME: system name ALL-Uplink system location SIAM-FL11 SHOW LLDP Configure: show lldp config or show lldp local-syste...
-
grant execute on utl_http to wc grant execute on dbms_lock to wc; BEGIN DBMS_NETWORK_ACL_ADMIN.create_acl ( acl => ...
-
:system view system-view or sys :show all config dis current-configuration :create vlan vlan vlan_number :show ip interface ...