Skip to content

Instantly share code, notes, and snippets.

View bugcy013's full-sized avatar
🪄
Focusing

Dhanasekaran Anbalagan bugcy013

🪄
Focusing
View GitHub Profile
# gnome-keyring is required by AIR, gdebi is required to install the balsamiq
# package which will fail as “bad quality” in the Ubuntu Software Center. You can
# skip the gdebi install if you’re using X File Package (or probably anything
# other than Ubuntu Software Center) to install .deb packages.
sudo apt-get install gnome-keyring gdebi gdebi-core
# Lots of sites say you need to install ia32-libs, which don’t exist in the Ubuntu
# repositories. Here is what’s required (taken from this post on askubuntu.com
# http://askubuntu.com/questions/404160/cannot-install-adobe-air-on-13-10-i386-pkgs-dont-exist
# and this other post on askubuntu.com http://askubuntu.com/a/440540/8750 )
# Copyright (c) 2011, Xabier (slok) Larrakoetxea
# Copyright (c) 2011, Iraide (Sharem) Diaz
#
# 3 clause/New BSD license:
# opensource: http://www.opensource.org/licenses/BSD-3-Clause
# wikipedia: http://en.wikipedia.org/wiki/BSD_licenses
#
#-----------------------------------------------------------------------
# This script allows to upload to Fileserve with FTP various files at the same time
#

Installation

  1. Copy the contents of masterfiles into your masterfiles or equivalent repository.
  2. Include all EFL .cf files in your inputs list in the common control body. Example:

efl_lib.cf

bundle common efl_lib
{
#### Start IPython, generate SHA1 password to use for IPython Notebook server
$ ipython
Python 2.7.5 |Anaconda 1.8.0 (x86_64)| (default, Oct 24 2013, 07:02:20)
Type "copyright", "credits" or "license" for more information.
IPython 1.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
## web interface
### port numbers
* name node: 50070
* job tracker: 50030
* data node: 50075
* task tracker: 50060
### operations
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up
# (if you're backing up a user's repos instead, this should be your GitHub username)
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API)
GHBU_PASSWD=${GHBU_PASSWD-"<CHANGE-ME>"} # the password for that account
GHBU_GITHOST=${GHBU_GITHOST-"github.com"} # the GitHub hostname (see comments)
GHBU_PRUNE_OLD=${GHBU_PRUNE_OLD-true} # when `true`, old backups will be deleted
#!/bin/sh
# インデックスのプレフィックス
PREFIX="logstash-"
if [ $1 ]; then
PREFIX=$1
fi
# OLDER_THAN日以上経過したインデックスを削除する
OLDER_THAN=30
<!-- capsd-configuration.xml -->
<protocol-plugin protocol="SSH-1920" class-name="org.opennms.netmgt.capsd.plugins.SshPlugin" scan="on">
<property key="banner" value="SSH" />
<property key="port" value="1920" />
<property key="timeout" value="3000" />
<property key="retry" value="1" />
</protocol-plugin>
<!-- poller-configuration.xml -->
<service name="SSH-1920" interval="300000" user-defined="false" status="on">
<protocol-plugin protocol="OracleMonitoring" class-name="org.opennms.netmgt.capsd.plugins.JDBCPlugin" scan="on">
<property key="driver" value="oracle.jdbc.driver.OracleDriver"/>
<property key="user" value="opennms"/>
<property key="password" value="opennms"/>
<property key="url" value="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=OPENNMS_JDBC_HOSTNAME)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)))"/>
<property key="retry" value="1"/>
</protocol-plugin>
@bugcy013
bugcy013 / FT.md
Last active August 29, 2015 14:06 — forked from oza/FT.md