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 | |
# USAGE: odoo.sh 11 | |
# from directory where addons are | |
# Create a database named odoo_11_db_xxxx | |
$VOLUME_PATH="/virt/docker" | |
VERSION=$1 | |
shift | |
DEV="all" | |
if [ "$VERSION" == "9" ] || [ "$VERSION" == "8.0" ]; then |
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 | |
# | |
#gitea-ispconfig: https://gist.github.com/amon-ra/3b242d7d1dc829152ca00c92714e42cc | |
echo "---------------------" >> /tmp/gitea_ispconfig.log | |
if [ $(git rev-parse --is-bare-repository) = true ] | |
then | |
REPOSITORY_BASENAME=$(basename "$PWD") | |
REPOSITORY_DIR=$PWD | |
else |
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 | |
#https://gist.github.com/amon-ra/3b242d7d1dc829152ca00c92714e42cc | |
#https://gist.github.com/amon-ra/46409526aa3a4cadb308b67fba68d215 | |
OWNER="$(stat -c "%U:%G" $1)" | |
git --work-tree=$1 --git-dir=$2 checkout -f | |
chown -R $OWNER $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 | |
/** | |
* ISPConfig Icingia2 HTTP Service Plugin for ISPConfig Version 3.1.2 and above. | |
* | |
* This class extends ISPConfig's vhost management with the functionality to manage icingia2 HTTP services. | |
* | |
* This Plugin requires Icinga2 (https://www.icinga.com/products/icinga-2/) | |
* The config files add a variable named "vars.http_vhosts" to an existing icinga2 host. | |
* With the matching icinga2 service configuration a icinga2 service will be added for each entry contained in "vars.http_vhosts". |
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 | |
global $multisite_hosts; | |
$multisite_hosts = Array('somosnoticias.dev.entomelloso.oondeo.es','entomelloso.dev.entomelloso.oondeo.es', 'somoscastillalamancha.dev.entomelloso.oondeo.es'); | |
function run_cron(){ | |
global $multisite_hosts; | |
$host=array_pop($multisite_hosts); | |
if (!$host) | |
return; |
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
git reset --soft HEAD~i | |
git commit -a -m "fixed #123, error en los permisos de la carpeta /web" | |
where i is number of commits |
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 | |
#USAGE: apt-build -aptget /usr/local/bin/apt-src-only.sh install $package | |
PARAMS=$* | |
if [[ $* == *"build-dep"* ]]; then | |
PACKAGES_TO_BUILD=$(apt-get -s $PARAMS 2> /dev/null | grep -e '^Inst ' | awk -F '[ \(]' '{print $2"="$4}') | |
apt-build --aptget $0 install $PACKAGES_TO_BUILD | |
else | |
apt-get $* |
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 | |
prof_flag("Start"); | |
include '../lib/database.php'; | |
include '../lib/helper_func.php'; | |
prof_flag("Connect to DB"); | |
connect_to_db(); |
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/python | |
#pyinstaller mysql-python | |
# | |
import signal | |
import time | |
import logging | |
import pymysql | |
import sys |