This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# | |
# /etc/rc.d/init.d/logstash | |
# | |
# Starts Logstash as a daemon | |
# | |
# chkconfig: 2345 20 80 | |
# description: Starts Logstash as a daemon | |
### BEGIN INIT INFO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rufus-scheduler' | |
p [ RUBY_VERSION, RUBY_PLATFORM ] | |
cron_sample = [ | |
"* * * * *", | |
"*/5 * * * *", | |
"*/10 * * * *", | |
"10 4 * * *", | |
"35 */3 * * *", | |
"* */3 * * *", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
you = "you" | |
me = "me" | |
whoRU = (you.eql? me) || case you | |
when "you" then "it's you." | |
else "its me.." | |
end | |
#whoRU == "it's you" | |
whoRU = (you.eql? me) or case you | |
when "you" then "it's you." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rufus-scheduler' | |
require 'awesome_print' | |
require 'logger' | |
SCHEDULE_COUNT = 1000 | |
MAX_THREAD = 224 | |
schedule_samples = { type: "cron", schedule: "* * * * *"} | |
$logger = Logger.new("benchmark.log") | |
scheduler = Rufus::Scheduler.singleton(:max_work_threads => MAX_THREAD) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash -c ' | |
<%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%> | |
export PATH=$PATH:/usr/local/bin | |
if [ ! -f /usr/local/bin/chef-client ]; then | |
#wget <%= "--proxy=on " if knife_config[:bootstrap_proxy] %>http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm | |
#rpm -Uvh epel-release-5-4.noarch.rpm | |
#wget <%= "--proxy=on " if knife_config[:bootstrap_proxy] %>http://rpm.aegisco.com/aegisco/rhel/aegisco-rhel.rpm | |
#rpm -Uvh aegisco-rhel.rpm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Kim Seong Sik | |
email = [email protected] | |
[alias] | |
lg1 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative | |
lg2 = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)— %an%C(reset)' --abbrev-commit | |
lg = !"git lg1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Setting up Vundle - the vim plugin bundler | |
let iCanHazVundle=1 | |
let vundle_readme=expand('~/.vim/bundle/vundle/README.md') | |
if !filereadable(vundle_readme) | |
echo "Installing Vundle.." | |
echo "" | |
silent !mkdir -p ~/.vim/bundle | |
silent !git clone https://github.com/gmarik/vundle ~/.vim/bundle/vundle | |
let iCanHazVundle=0 | |
endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
############################### | |
## | |
baseurl=YOUR_GITLAB_URL | |
logdir=YOUR_LOG_DIRECTORY | |
basedir=YOUR_BASE_DIRECTORY | |
usermail=YOUR_ADMIN_MAIL | |
userpass=YOUR_ADMIN_PASSWORD | |
project_access=20 #00=deined 10=read 20=report 30=admin |