This file contains hidden or 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 | |
# | |
# General-purpose docker entrypoint that will execute | |
# source .envsh files from /docker-entrypoint.d/ and then | |
# invoke .sh files from the same place. | |
# And then will execute commands specified as parameters | |
set -e | |
entrypoint_log() { |
This file contains hidden or 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
# Checkout master | |
git checkout master | |
# Create new brach from master | |
git checkout -b 51172-order-details-v4 | |
# Merge the branch you worked (ie 51172-order-details-v3) as single commit into new branch (ie 51172-order-details-v4) | |
git merge --squash 51172-order-details-v3 |
This file contains hidden or 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 | |
# Compares DNS records across two nameservers. List of subdomains is taken from zone file | |
# | |
# Based on https://stackoverflow.com/questzions/11024797/compare-dns-on-two-different-nameservers | |
DOMAIN=example.com | |
OLD=ns1.nameserver.com | |
NEW=ns2.nameserver.com | |
ZONEFILE=example.com.zone |
This file contains hidden or 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 Adapter from "ember-data/adapters/json-api"; | |
export default Adapter.extend(); |
This file contains hidden or 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 python2 | |
# Based on: https://serversforhackers.com/running-ansible-2-programmatically | |
import os | |
import sys | |
from ansible.executor import playbook_executor | |
from ansible.inventory import Inventory | |
from ansible.parsing.dataloader import DataLoader |
This file contains hidden or 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
console.log('Creating kurentoClient'); | |
kurento(ws_uri, function(error, kurentoClient) { | |
if (error) return wsError(ws, "ERROR 1: Could not find media server at address" + ws_uri + ". Exiting with error " + error); | |
// Create pipline | |
console.log('Creating MediaPipline'); | |
kurentoClient.create('MediaPipeline', function(error, pipeline) { | |
if (error) return wsError(ws, "ERROR 2: " + error); |
This file contains hidden or 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
var kurento = require('kurento-client'); | |
var express = require('express'); | |
var app = express(); | |
var path = require('path'); | |
var wsm = require('ws'); | |
app.set('port', process.env.PORT || 8080); | |
/* | |
* Definition of constants |
This file contains hidden or 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
root@server [/backup/mysql]# sudo -u ${XB_USER} innobackupex --user=${MYSQL_BACKUP_USER} --password=${MYSQL_BACKUP_PASS} --apply-log --use-memory 2G ${XB_BACKUP} | |
InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy | |
and Percona LLC and/or its affiliates 2009-2013. All Rights Reserved. | |
This software is published under | |
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991. | |
Get the latest version of Percona XtraBackup, documentation, and help resources: | |
http://www.percona.com/xb/p |
This file contains hidden or 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
my $innodb_data_file_path = | |
get_option(\%config, $option_defaults_group, 'innodb_data_file_path'); | |
# run ibbackup as a child process | |
$cmdline = "$option_ibbackup_binary $options"; | |
# Only use --rebuild-indexes in the first xtrabackup call | |
$cmdline_copy = $cmdline; | |
if ($option_rebuild_indexes) { | |
$cmdline = $cmdline . " --rebuild-indexes" |
This file contains hidden or 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 | |
/* | |
+------------------------------------------------------------------------+ | |
| PhalconEye CMS | | |
+------------------------------------------------------------------------+ | |
| Copyright (c) 2013-2014 PhalconEye Team (http://phalconeye.com/) | | |
+------------------------------------------------------------------------+ | |
| This source file is subject to the New BSD License that is bundled | | |
| with this package in the file LICENSE.txt. | | |
| | |
NewerOlder