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
gitlab: | |
image: 'gitlab/gitlab-ce:latest' | |
container_name: gitlab | |
restart: always | |
hostname: 'gitlab.mcu.dc' | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'http://gitlab.mcu.dc:8090' | |
gitlab_rails['gitlab_shell_ssh_port'] = 2290 | |
gitlab_rails['smtp_enable'] = true |
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 | |
TIMESTAMP=$(date +'%Y-%m-%d_%Hh%Mm') | |
BACKUP_FOLDER=/mnt/backup/mysql | |
MYSQL_USER=admin | |
MYSQL_PASS=`cat /etc/psa/.psa.shadow` | |
MAX_DAYS=15 | |
DATABASES=`mysql --user=$MYSQL_USER -p$MYSQL_PASS -e "SHOW DATABASES;" | grep -Ev "(Database|information_schema|performance_schema)"` | |
mkdir -p "$BACKUP_FOLDER" |
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 │ject-with tcp-reset | |
# usage: ./senderscore.sh 74.91.28.11 | |
if [ -z "$1" ] | |
then | |
echo "IP is missing as arguemnt." | |
exit | |
fi | |
IP=$1 |
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 | |
/* | |
************************************************************************* | |
* * | |
* WHMCS - The Complete Client Management, Billing & Support Solution * | |
* Copyright (c) WHMCS Ltd. All Rights Reserved, * | |
* Release Date: 24th November 2011 * | |
* Version 5.0 * | |
* * | |
************************************************************************* |
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 -e | |
### Copyright 1999-2015. Parallels IP Holdings GmbH. All Rights Reserved. | |
### Secure plesk clean installation with hostname certificate by Let's Encrypt | |
export PYTHONWARNINGS="ignore:Non-standard path" | |
LE_HOME=${LE_HOME:-"/usr/local/psa/var/modules/letsencrypt"} | |
HOSTNAME=$(hostname) | |
# Use staging server for testing | |
# --server https://acme-staging.api.letsencrypt.org/directory |
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 | |
/** | |
* | |
* Extract all email address from any text content removing duplicated | |
* Return string formated as: TEXT, SQL or CSV | |
* @author Alexander Garzon | |
* | |
*/ | |
class emailXtractor { |
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 | |
ADMIN_PASS=`cat /etc/psa/.psa.shadow` | |
MYSQL_BIN_D=`grep MYSQL_BIN_D /etc/psa/psa.conf | awk '{print $2}'` | |
PRODUCT_ROOT_D=`grep PRODUCT_ROOT_D /etc/psa/psa.conf | awk '{print $2}'` | |
mysql="${MYSQL_BIN_D}/mysql -N -uadmin -p${ADMIN_PASS} psa" | |
query="select name from domains;" | |
domains=`echo $query | $mysql ` |
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 | |
header("Content-Type: text/plain"); | |
function strip_html_tags( $text ) | |
{ | |
$text = preg_replace( | |
array( | |
// Remove invisible content | |
'@<head[^>]*?>.*?</head>@siu', | |
'@<style[^>]*?>.*?</style>@siu', |
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
require("graphics") | |
local window_x = 40 -- Display position from right edge of window | |
local window_y = 40 -- Display position from top edge of window | |
local show_wind = false | |
DataRef("WIND_DIR", "sim/cockpit2/gauges/indicators/wind_heading_deg_mag", "readonly") | |
DataRef("WIND_SPEED", "sim/cockpit2/gauges/indicators/wind_speed_kts", "readonly") | |
DataRef("HEADING", "sim/flightmodel/position/psi", "readonly") |
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
SELECT domains.name as domain, Templates.name as plan, domains.status, clients.type, clients.login, clients.pname, clients.email, clients.external_id, Subscriptions.locked, Subscriptions.synchronized, Subscriptions.custom | |
FROM domains | |
LEFT JOIN clients ON domains.cl_id = clients.id | |
LEFT JOIN Subscriptions ON domains.id = Subscriptions.object_id AND Subscriptions.object_type = 'domain' | |
LEFT JOIN PlansSubscriptions ON Subscriptions.id = PlansSubscriptions.subscription_id | |
LEFT JOIN Templates ON PlansSubscriptions.plan_id = Templates.id | |
WHERE clients.type = 'client' | |
AND clients.parent_id = '1' | |
AND domains.parentDomainId = '0' | |
INTO OUTFILE '/tmp/domains-client.csv'; |