Skip to content

Instantly share code, notes, and snippets.

@cakyus
cakyus / CentOS-Kambing.repo
Last active January 14, 2019 03:24
Centos 6 Yum Repository Configuration using Kambing Server
[Contrib]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/$releasever/contrib/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6
[CentOSPlus]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/$releasever/centosplus/$basearch/
@cakyus
cakyus / nmon.bash
Last active January 14, 2019 03:47
Nmon data collector
#!/bin/bash
# Nmon data collector
# https://gist.github.com/cakyus/19f3c44c3fe027b06f58162974e9bd30
#
# Notes
# 1. Log directory must exist and user has write permission
# 2. Crontab example: 0 0 * * * /bin/bash /root/bin/nmon.bash
#
# This script did not:
# 1. Process nmon log
@cakyus
cakyus / index.html
Last active October 15, 2019 09:52
Text Tools
<!DOCTYPE html>
<html>
<head>
<title>Text Tool</title>
<style>
article {
position: relative;
}
nav {
position: absolute;
@cakyus
cakyus / make.sh
Last active June 25, 2021 13:31
make in bash
#!/bin/sh
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.