Tuesday, September 15, 2020
Show GIT Branch on Bash
Tuesday, September 1, 2020
Unable to 'apt update' my Ubuntu 19.04
sudo sed -i -re 's/([a-z]{2}\.)?th.archive.ubuntu.com|archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
Friday, August 28, 2020
CPU and Memory OID Alcatel 6400
Memory:
name: healthDeviceMemoryLatest
oid: .1.3.6.1.4.1.6486.800.1.2.1.16.1.1.1.9.0
CPU:
name: healthDeviceCpuLatest
oid: .1.3.6.1.4.1.6486.800.1.2.1.16.1.1.1.13.0
Thursday, August 27, 2020
Pretty print json Format in BASH terminal
Pretty print json Format in BASH terminal
ex:
curl -X GET http://localhost:8001 | python3 -m json.tool
create alias in .bashrc :
alias pprint='python3 -m json.tool'
ex:
curl -X GET http://localhost:8001 | pprint
Friday, August 7, 2020
How to change the Docker default subnet IP address
create file : /etc/docker/daemon.json
{
"bip": "11.22.33.1/24"
}
{
"default-address-pools": [
{
"base": "10.10.0.0/16",
"size": 24
}
]
}
restart docker services
Custom PS1 Linux Terminal
Thursday, August 6, 2020
OGG-01004, OCI Error ORA-04098: trigger 'MEIS.ZONE_TG' is invalid and failed re-validation (status = 4098)
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 ...