View drupal-module-xmlsitemap-custom.php
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
<?php | |
/** | |
* Implements hook_cron(). | |
*/ | |
function MYMODULE_cron() { | |
MYMODULE_xmlsitemap_links(); | |
} | |
/** |
View logstash-ossec-alerts.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
input { | |
file { | |
type => "ossec" | |
path => "/var/ossec/logs/alerts/alerts.log" | |
sincedb_path => "/opt/logstash/" | |
codec => multiline { | |
pattern => "^\*\*" | |
negate => true | |
what => "previous" | |
} |
View git-config-multiple-remotes
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
[remote "all"] | |
url = first@git.url | |
fetch = +refs/heads/*:refs/remotes/all/* | |
url = second@git.url |
View .gitignore
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
.sass-cache | |
.idea | |
.elasticbeanstalk | |
yusuf-local | |
node_modules | |
# Compiled source # | |
################### | |
*.com | |
*.class |
View collectd-metrics-dashboard.json
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
{ | |
"title": "Metrics", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "collectd_type = \"memory\" and type_instance = \"used\"", | |
"alias": "Used", | |
"color": "#EF843C", | |
"id": 0, |
View db_backup.sh
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 | |
WEBSITES_ROOT=/var/www | |
BACKUP_ROOT=/var/backups/websites | |
# Checks to see if arguments are provided | |
if [ $2 ] | |
then | |
BUCKET=$2 | |
else |
View ssh_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
Host some-name | |
Hostname server-address(ip or hostname) | |
User username | |
ForwardAgent yes | |
# The first parameter is the port which you will access from | |
# your local computer. The second is the IP & Port on the remote | |
# server that you want to access | |
LocalForward 8085 127.0.0.1:80 |
View syncthing.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
description "Syncthing P2P sync service" | |
start on (local-filesystems and net-device-up IFACE!=lo) | |
stop on runlevel [!2345] | |
env STNORESTART=yes | |
env HOME=/home/demouser | |
setuid "demouser" | |
setgid "demouser" |
View vmstart-webserver.bat
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
"C:\Program Files\Oracle\VirtualBox\VBoxHeadless" -startvm "ubuntu-webserver-11.04-64" -p 3340 |
View nginx-rutorrent.enabled
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
server { | |
listen 80; | |
server_name some.server.name; | |
root /home/ubuntu/websites/rutorrent; | |
index index.html index.htm index.php; | |
location / { | |
try_files $uri $uri/ =404; | |
allow 10.9.0.0/24; |
OlderNewer