Skip to content

Instantly share code, notes, and snippets.

Piotr Gasiorowski WooDzu

Block or report user

Report or block WooDzu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@WooDzu
WooDzu / dns-migration-test.sh
Created Jan 22, 2019
Compares DNS records across two nameservers. List of subdomains is taken from zone file
View dns-migration-test.sh
#!/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
View adapters.application.js
import Adapter from "ember-data/adapters/json-api";
export default Adapter.extend();
@WooDzu
WooDzu / run.py
Created Nov 15, 2016
Run ansible in AWS Lambda
View run.py
#!/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
View kurrento-rtsp-rtc.js
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);
@WooDzu
WooDzu / app.js
Last active Mar 5, 2018
Kurento Player to WebRTC pipeline
View app.js
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
View xtrabackup.test.sh
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
View backup.pl
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"
@WooDzu
WooDzu / Settings.php
Last active Aug 29, 2015
PhalconeEye - Core\Model\Settings proposal
View Settings.php
<?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. |
| |
@WooDzu
WooDzu / phalcon.c
Created Mar 8, 2014
generated from build/32bits
View phalcon.c
This file has been truncated, but you can view the full file.
/**
New BSD License
Copyright (c) 2011-2014, Phalcon Framework Team
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
View cphalcon-build-1.3.0.log
C:\php-sdk\build.phalcon.bat
n
Microsoft (R) Program Maintenance Utility Version 11.00.50727.1
Copyright (C) Microsoft Corporation. All rights reserved.
Recreating build dirs
type ext\pcre\php_pcre.def > Release_TS\php5ts.dll.def
phalcon.c
ext\phalcon\phalcon.c(3407) : error C2143: syntax error : missing ';' before 'type'
You can’t perform that action at this time.