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/perl | |
use strict; | |
use warnings; | |
use AnyEvent::HTTP; | |
my %urls; | |
if (@ARGV == 1 and $ARGV[0] eq '-') { | |
my @lines = grep { not /^\s*#/ and not /^\s*$/ } <>; |
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 | |
rpm --import https://raw.githubusercontent.com/example42/puppet-yum/master/files/CentOS.6/rpm-gpg/RPM-GPG-KEY.atrpms | |
rpm -Uvh https://www.mirrorservice.org/sites/dl.atrpms.net/el6.7-x86_64/atrpms/stable/atrpms-repo-6-7.el6.x86_64.rpm | |
sed -i 's,http://dl,https://www.mirrorservice.org/sites/dl,' /etc/yum.repos.d/atrpms*.repo | |
yum install ffmpeg |
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
diff --git a/wp-content/themes/enfold/css/dynamic-css.php b/wp-content/themes/enfold/css/dynamic-css.php | |
index 65a291e..c09c24f 100644 | |
--- a/wp-content/themes/enfold/css/dynamic-css.php | |
+++ b/wp-content/themes/enfold/css/dynamic-css.php | |
@@ -33,7 +33,7 @@ $output = ""; | |
$body_color = ""; | |
extract($color_set); | |
-extract($main_color); | |
+if ($main_color !== NULL) extract($main_color); |
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 | |
# 2017-feb-13 | |
NSNAME="vrf1" | |
LINK1="${NSNAME}_10" # ..my link to VRF | |
LINK2="${NSNAME}_11" # ..VRF link to me | |
IP1="10.20.30.10" | |
IP2="10.20.30.11" | |
MASK="24" |
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 | |
# Openntpd Ubuntu fix | |
# https://bugs.launchpad.net/ubuntu/+source/openntpd/+bug/458061/comments/24 | |
apt-get install openntpd -y | |
apt-get purge ntp -y | |
service apparmor restart | |
service openntpd restart |
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 | |
: ${ROOTPATH:=/} | |
SRCDIRS="bin sbin lib etc/udev" | |
LNDIRS="usr/bin usr/sbin" | |
Fail() { echo "ERROR: $@"; exit 1; } | |
echo "Check source dirs..." | |
mydir="$(dirname $0)" |
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 | |
# | |
# Copyright (c) 2014, Intel Corporation | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# * Redistributions of source code must retain the above copyright notice, | |
# this list of conditions and the following disclaimer. | |
# * Redistributions in binary form must reproduce the above copyright |
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 -e | |
DIR="$(mktemp -d)" | |
cd "$DIR" | |
echo "Working directory = $DIR" | |
yum install -y flex openssl-devel libevent-devel expat-devel pkgconfig python2-devel swig python34-devel systemd wget rpm-build | |
RPM="unbound-1.5.10-1.fc24.src.rpm" | |
wget -qcN "http://mirror.yandex.ru/fedora/linux/updates/24/SRPMS/u/$RPM" |
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
https://10.20.30.40:8080 |
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
--- nginx-1.11.5/src/http/modules/ngx_http_slice_filter_module.c.orig 2016-10-11 18:03:02.000000000 +0300 | |
+++ nginx-1.11.5/src/http/modules/ngx_http_slice_filter_module.c 2016-12-02 04:22:14.000000000 +0300 | |
@@ -131,8 +131,12 @@ | |
|| ngx_strncmp(h->value.data, ctx->etag.data, ctx->etag.len) | |
!= 0) | |
{ | |
- ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, | |
- "etag mismatch in slice response"); | |
+ char msg[1024]; | |
+ snprintf(msg, sizeof(msg), "etag mismatch in slice response: ctx_len=%u, ctx_etag=%s, r_len=%u, r_etag=%s", |