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
/home/git/labhub/log/*.log { | |
daily | |
missingok | |
rotate 5 | |
compress | |
dateext | |
delaycompress | |
notifempty | |
copytruncate | |
lastaction |
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/bash | |
######################################### | |
#Function: auto fdisk | |
#Usage: bash auto_fdisk.sh | |
#Author: Customer service department | |
#Company: Alibaba Cloud Computing | |
#Version: 2.0 | |
######################################### | |
count=0 |
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
def call_block | |
puts "Start of method" | |
yield | |
yield | |
yield | |
puts "End of method" | |
end |
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
# Be sure to restart your server when you modify this file. | |
# Your secret key is used for verifying the integrity of signed cookies. | |
# If you change this key, all old signed cookies will become invalid! | |
# Make sure the secret is at least 30 characters and all random, | |
# no regular words or you'll be exposed to dictionary attacks. | |
# You can use `rake secret` to generate a secure secret key. | |
# Make sure your secret_key_base is kept private |
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 'rubygems' | |
require 'rubyzip' | |
require 'find' | |
require 'zip/zip' | |
puts "" | |
puts "------------------File Search and Zip-----------------------------" | |
puts "" | |
print "Enter the search path : " | |
searchpath = gets |
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 'find' | |
puts "" | |
puts "-----------------------File Search-----------------------------------" | |
puts "" | |
print "Enter the search path : " | |
searchpath = gets | |
searchpath = searchpath.chomp | |
puts "" | |
print "Enter the search pattern : " | |
pattern = gets |
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/bin/env bash | |
on_die() { | |
echo | |
echo byebye proxy | |
echo | |
networksetup -setsocksfirewallproxystate "Ethernet 2" off #close the proxy | |
# the name can be "wifi" or "Ethernet 1", just see what is listed in "network preference" | |
} |
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
#!/usr/bin/env ruby | |
## for mac | |
#/Users/git/.rvm/rubies/ruby-1.9.3-p385/bin/ruby | |
require_relative '../lib/gitlab_init' | |
# | |
# GitLab shell, invoked from ~/.ssh/authorized_keys | |
# |
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/bash | |
if [ `uname -m` = "x86_64" ]; then | |
ARCH="linux64" | |
else | |
ARCH="linux32" | |
fi | |
#AEGIS_UPDATE_SITE="http://update.aegis.aliyun.com" | |
AEGIS_UPDATE_SITE="http://aegis.oss.aliyuncs.com" |