This file contains 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 [[ $EUID -ne 0 ]]; then | |
echo "Please run this script as root" 1>&2 | |
exit 1 | |
fi | |
### Functions ### | |
debian_initialize() { |
This file contains 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
# Embedded file name: build/bdist.linux-x86_64/egg/pyovpn/lic/licstore.py | |
import re | |
import os | |
import json | |
import urllib | |
import time | |
from twisted.internet import defer | |
from pyovpnc import unix_time | |
from pyovpn.util.error import Passthru, SimpleError, ErrorTuple | |
from pyovpn.util.atomicfile import atomic_read, atomic_write_new, atomic_write_replace |
This file contains 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 | |
wget http://cdn01.foxitsoftware.com/pub/foxit/reader/desktop/linux/2.x/2.4/en_us/FoxitReader.enu.setup.2.4.4.0911.x64.run.tar.gz | |
gzip -d FoxitReader.enu.setup.2.4.4.0911.x64.run.tar.gz | |
tar xvf FoxitReader.enu.setup.2.4.4.0911.x64.run.tar | |
./FoxitReader.enu.setup.2.4.4.0911\(r057d814\).x64.run |
This file contains 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 | |
RED='\033[0;41;30m' | |
STD='\033[0;0;39m' | |
pause(){ | |
read -p "Press [Enter] key to continue..." fackEnterKey | |
} | |
one(){ |
This file contains 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
# -*- encoding:utf-8 -*- | |
# | |
# CentOSをセキュアにセットアップするFabricスクリプト | |
# | |
# 前提条件 : Fabricインストール済/SSHの公開鍵作成済 | |
# 実行方法 : fab deploy | |
# 検証環境 : CentOS6.6 (さくらのVPS 標準OSインストール) | |
##################################################################### | |
from fabric.api import env, run, sudo, put |
This file contains 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 bash | |
# -------------------------------------------------------------------------------------------- # | |
# Filename k-twsetup.sh | |
# Description Shell script to set Tripwire with KUSANAGI. | |
# Copyright Copyright 2017-2019, mkncLab.com | |
# Link mkncLab.com <https://www.mknclab.com> | |
# Since v2.0.4 | |
# License MIT lincense | |
# -------------------------------------------------------------------------------------------- # | |
set -Ceu |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
This file contains 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
# ------------------------ | |
# agent | |
# ------------------------ | |
sudo rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm | |
sudo yum list zabbix-agent | |
sudo yum install zabbix-agent | |
sudo firewall-cmd --zone=public --add-port=10050/tcp | |
sudo firewall-cmd --zone=public --add-port=10050/tcp --permanent | |
sudo semanage permissive -a zabbix_agent_t | |
sudo systemctl enable zabbix-agent.service |
This file contains 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 -e | |
echo "Setting up Zabbix agent" | |
wget --quiet http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+trusty_all.deb | |
dpkg -i zabbix-release_3.2-1+trusty_all.deb | |
rm zabbix-release_3.2-1+trusty_all.deb | |
apt-get update --quiet > /dev/null | |
apt-get install zabbix-agent -y --quiet > /dev/null | |
echo "PidFile=/var/run/zabbix/zabbix_agentd.pid | |
LogFile=/var/log/zabbix/zabbix_agentd.log | |
LogFileSize=10 |
This file contains 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 | |
verificaPermissaoUsuario() { | |
ROOT_UID=0 | |
if [ "$UID" -ne "$ROOT_UID" ] ; then | |
echo "É preciso rodar como root" | |
exit 1 | |
fi | |
} |