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 stap | |
############################################################ | |
# connect_stat.stp | |
# Author: Robin Hack <[email protected]> | |
# An example script show process tree of process | |
# which tried to call connect with specific ip address | |
############################################################ | |
function process_tree (ip:string) { |
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
import asyncio | |
import time | |
import threading | |
from time import time | |
SERVER_ADDRESS = ('127.0.0.1', 5566) | |
INTERVAL = 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
[uwsgi] | |
socket=0.0.0.0:4800 | |
master = true | |
single-interpreter = true | |
uid = apache | |
gid = apache | |
pythonpath = /usr/share/graphite | |
pythonpath = /usr/share/graphite/webapp | |
chdir = /usr/share/graphite/webapp | |
plugins=python |
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
cat /usr/share/grafana/grafana-backup.sh | |
#!/bin/bash | |
DB="/var/lib/grafana/grafana.db" | |
BACKUP="/data/backup/grafana/grafana.db-$(date +%Y%m%d).bck" | |
SQLITE=/usr/bin/sqlite3 | |
ZIP=/bin/gzip | |
${SQLITE} ${DB} ".backup ${BACKUP}" | |
${ZIP} ${BACKUP} |
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
{ | |
"id": 3, | |
"title": "perf_test", | |
"originalTitle": "perf_test", | |
"tags": [], | |
"style": "dark", | |
"timezone": "browser", | |
"editable": true, | |
"hideControls": false, | |
"sharedCrosshair": false, |
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
➜ rpmbuild fedora-review -b 1264546 | |
INFO: Processing bugzilla bug: 1264546 | |
INFO: Getting .spec and .srpm Urls from : 1264546 | |
INFO: --> SRPM url: https://github.com/solettaproject/soletta-packaging/releases/download/v3/soletta-0.0.1-beta5.fc22.src.rpm | |
INFO: --> Spec url: https://raw.githubusercontent.com/solettaproject/soletta-packaging/v3/rpm/soletta.spec | |
INFO: Using review directory: /home/piotr/rpmbuild/1264546-soletta | |
INFO: Downloading .spec and .srpm files | |
warning: bogus date in %changelog: Tue Sep 2 2015 Gustavo Lima Chaves <[email protected]> - 0.0.1-beta5 | |
warning: bogus date in %changelog: Tue Sep 2 2015 Gustavo Lima Chaves <[email protected]> - 0.0.1-beta5 | |
INFO: No upstream for (Source2): 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
#!/bin/bash | |
# | |
# log_check_es | |
# | |
# Check ElasticSearch for recent exceptions from the live tomcat servers | |
##Debug | |
#set -x | |
# Exit on Error |
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
## uncomment for https | |
#server { | |
# listen 80; | |
# server_name localhost; | |
# | |
# location / { | |
# return 301 https://$server_name; | |
# } | |
#} |
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
Name: piwik | |
Version: 2.1.0 | |
Release: 1%{?dist} | |
Summary: Free Web Analytics Software | |
Group: Applications/Internet | |
License: GPLv3+ and Public Domain and BSD and (MIT or GPLv2) and (MIT or GPL) and MIT and (BSD or GPLv2) and LGPL and GPL and LGPLv3+ and (MIT or GPLv3) and CC-BY and LGPLv2.1 | |
URL: https://piwik.org/ | |
Source0: https://builds.piwik.org/%{name}-%{version}.tar.gz | |
Source1: %{name}-nginx.conf |
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 | |
# based on: http://blog.kagesenshi.org/2007/06/fedora-repository-mirroring-script.html | |
# mirror root - the place you want the rpms to be downloaded | |
MROOT="/opt/storage/repository" | |
# processor architectures (space separated) | |
ARCHS="x86_64" |
NewerOlder