Skip to content

Instantly share code, notes, and snippets.

View niag's full-sized avatar
:octocat:

Ivan Niagara niag

:octocat:
  • Independent
  • Siberia
View GitHub Profile
@niag
niag / runhttpserver.sh
Created August 17, 2021 02:29
This script starts a local HTTP server for Solaris OS update.
## This script starts a local HTTP server for Solaris OS update.
##
IP=`ifconfig en0 | grep inet | grep -v inet6 | awk '{ print $2 }'`
echo $IP
echo available as "http://$IP:8000"
echo "correct ILOM fw download string is load -source http://$IP:8000/<file>"
## This string is for Python2
python -m SimpleHTTPServer 8000
рекомендации по настройке Oracle:
1. под SGA (System Global Area) Oracle можно отдать 50% оперативной памяти (RAM) с учетом что на машине работает одна БД.
рекомендуемые параметры для RAM=4G:
SHARED_POOL_SIZE=512M
DB_CACHE_SIZE=2G
LARGE_POOL_SIZE=16M
JAVA_POOL_SIZE=160M
PGA_AGGREGATE_TARGET=128M
connect target
run {
allocate channel db_bkp type disk format '/datadisk/backup/database/test2/fullback/test2_%u_%s_%p';
backup full database;
backup current controlfile format '/datadisk/backup/database/test2/ctl_%u.cf';
release channel db_bkp;
}
allocate channel for maintenance type disk;
configure retention policy to redundancy 5;
#!/bin/bash
PATH=/usr/sbin:/usr/bin:/sbin:/bin
/etc/init.d/mysql status | grep 'running' > /dev/null
if [ $? != 0 ]
then
/etc/init.d/apache2 stop && \
/etc/init.d/mysql stop && \
/etc/init.d/mysql start && \
/etc/init.d/apache2 start > /dev/null 2>&1

Keybase proof

I hereby claim:

  • I am niag on github.
  • I am niagara (https://keybase.io/niagara) on keybase.
  • I have a public key ASC2nlDpW3g-DzusB4vsggciu9PC1kPTXEB8VXdWOzk4two

To claim this, I am signing this object:

@niag
niag / 30-randomize-mac-address.conf
Last active September 11, 2018 09:52 — forked from fawkesley/30-randomize-mac-address.conf
MAC address randomization in Ubuntu 17+ (>= 1.4.1): save to /etc/NetworkManager/conf.d/
# /etc/NetworkManager/conf.d/30-randomize-mac-address.conf
# REQUIRES NETWORK MANAGER >= 1.4.1 (Ubuntu Zesty and above)
# Thanks to https://blogs.gnome.org/thaller/2016/08/26/mac-address-spoofing-in-networkmanager-1-4-0/
# This randomize your MAC address for *new* connections
# Be sure to change your existing (saved) connections in
# /etc/NetworkManager/system-connections/*