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 | |
# | |
# /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 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 | |
# Author: Santiago López Denazis | |
# License: GPL v.3+ | |
# Description: Simple Redis init.d script conceived to work on RH 6.5 | |
source /etc/rc.d/init.d/functions | |
[ -f /etc/sysconfig/redis ] && { | |
source /etc/sysconfig/redis |
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
" Filename: telnet.vim | |
" Language: Telnet command syntax | |
" Maintainer: sldenazis <sldenazis@linux.com> | |
" Revision: 0.1 | |
if version < 600 | |
syntax clear | |
elseif exists("b:current_syntax") | |
finish | |
endif |
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 python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
import time | |
import telepot | |
import re | |
def handle(msg): | |
content_type, chat_type, chat_id = telepot.glance(msg) |
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 | |
export PATH=/bin:/sbin:/usr/bin:/usr/sbin | |
function getFileConfig() | |
{ | |
local file_config="/etc/rundeck/rundeck-config.properties" | |
echo ${file_config} | |
} |
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
// ==UserScript== | |
// @name stopjumpopr | |
// @namespace stopjumpopr | |
// @include https://opr.ingress.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
document.body.innerHTML= document.body.innerHTML.replace(/answerCtrl\.goToLocation\(\'streetViewHeader\'\)/g,""); |
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
// ==UserScript== | |
// @name selectallstars | |
// @namespace selectallstars | |
// @include https://opr.ingress.com/recon | |
// @version 0.2 | |
// @grant none | |
// ==/UserScript== | |
var newButtons = document.createElement('div'); |
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
# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 | |
# $Id: $ | |
DESCRIPTION="Manage gradle symlinks" | |
MAINTAINER="sldenazis@argentoo.org" | |
SVN_DATE='20170830' | |
VERSION=${SVN_DATE} | |
find_targets() { | |
local f |
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
--- | |
- hosts: all | |
become: yes | |
vars: | |
remote_path: /etc/grafana | |
local_path: ./ | |
tasks: |
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
function is_in_array { | |
# Return 0 if element is found, 1 if not | |
if [[ $# -lt 2 ]]; then | |
echo "Usage: $FUNCNAME string array" >&2 | |
else | |
local element=${1} i="" | |
shift | |
declare -a list=$@ | |
for i in ${list[@]}; do | |
if [[ $i == $element ]]; then |