Skip to content

Instantly share code, notes, and snippets.

View hongsea's full-sized avatar

Heng Hongsea hongsea

View GitHub Profile

Keybase proof

I hereby claim:

  • I am hongsea on github.
  • I am hongsea (https://keybase.io/hongsea) on keybase.
  • I have a public key ASCRj4vXrCXcBctw01ntlH56hZaRFq2UaCYps4qqXwj8vQo

To claim this, I am signing this object:

#!/bin/bash
#set -x
check_root_access(){
if [[ $(id -u) != 0 ]]; then
echo "This program run as root."
exit 0;
fi
}
subnet 192.168.10.0 netmask 255.255.255.0 {
authoritative;
default-lease-time 3600;
max-lease-time 3600;
option routers 192.168.10.1;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.10.10 192.168.10.200;
# option domain-name "hhs.com";
option domain-name-servers 192.168.10.24, 8.8.8.8, 8.8.4.4;
}

KOOMPI OS DHCPCD

interface br0
metric 300
static ip_address=192.168.10.1/24
static routers=192.168.10.1

interface wlp1s0
metric 200

RUN .NET ON KOOMPIOS

1. Install package base

$ sudo pacman -S dotnet-sdk

2. Create project

FIX NETBEAN FONT MISSING ON KOOMPI OS

1. Install netbean on koompi os

$ pi -S apache-netbeans

2. Fix font

INSTALL SQL SERVER ON KOOMPIOS

1. Install sql server

$ pi -S mssql-server  mssql-tools msodbcsql

2. Once installed, perform the configuration

TERMINAL OUTPUT AND NANO EDITOR COLOR ON KOOMPI OS

1. Add This config to ~/.bashrc

alias ls='ls --color=auto'
alias diff='diff --color=auto'
alias grep='grep --color=auto'
alias ip='ip -color=auto'

INSTALL POSTGRESQL ON KOOMPIOS

1. Install package

$ sudo pacman -Sy postgresql

2. Create directory and change owner

$ sudo mkdir /var/lib/postgres/data