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 | |
if [ ! -z $1 ]; then | |
export MTOPU="-uroot" | |
export MTOPPW="-p$1" | |
fi | |
if [ -f /root/.my.cnf ]; then | |
MTOPU=' ' | |
MTOPPW=' ' | |
fi | |
if [ -z $MTOPU ] && [ -z $MTOPPW] && [ $MTOPU != ' ' ]; 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
## slave-dns-reload.sh | |
#!/bin/bash | |
cd /etc/bind | |
MASTERS=`grep "type master" -B1 named.conf.local | perl -ne '/"(.*)"/ && print "$1\n"'` | |
for i in $MASTERS;do perl -i -pe "if(/zone \"$i\"/){ \$_=''} " slave-zones.conf.tmp ; done | |
test `diff -w slave-zones.conf slave-zones.conf.tmp | wc -l` -gt 0 && cp slave-zones.conf{.tmp,} && /etc/init.d/bind9 reload | |
###slave-dns-send.sh |
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
package main.java | |
import groovy.json.JsonOutput | |
import groovy.json.JsonSlurper | |
/** | |
* Created on 9/25/15. | |
*/ | |
/* | |
curl -sS -i -u 'email:PASS' "https://api.github.com/repos/PROJECTS/issues/comments?since=2015-09-20T00:00:00Z" | perl -e '$i=0;while(<>){$i=1 if /^\s*$/; print $_ if $i;}' | tee /tmp/aaa |
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
/** | |
* Set updatedAt for Popis column | |
* @autor | |
* přejmenováno na onEditTrigger a nastaveno přes Zdorje/Spouštěče == zná to i email editora | |
* @see https://developers.google.com/apps-script/guides/triggers/ | |
*/ | |
function onEdit(e) { | |
var range = e.range; | |
// column number |
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 | |
/* | |
Prestashop 1.5 module for seznam zbozi.cz feed.xml generate | |
21.07.2016 | |
Put this file in folder ./modules/feedxml-zbozi_cz | |
*/ | |
include(dirname(__FILE__).'/../../config/config.inc.php'); | |
require_once(dirname(__FILE__).'/../../init.php'); |
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
@echo on | |
call :sub > VERSION.log | |
exit /b | |
:sub | |
date /T | |
set | |
ver | |
java -version |
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
# | |
# Shorewall version 4 - Rules File | |
# | |
# For information on the settings in this file, type "man shorewall-rules" | |
# | |
# The manpage is also online at | |
# http://www.shorewall.net/manpages/shorewall-rules.html | |
# | |
###################################################################################################################################################################################################### | |
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGINAL RATE USER/ MARK CONNLIMIT TIME HEADERS SWITCH HELPER |
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
pfSsh.php playback disablereferercheck | |
#disable ipfw | |
pfctl -d |
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/perl | |
#!/usr/local/bin/perl | |
# | |
# vncxfer: A CGI script to set up TCP redirection between a VNC Viewer | |
# and VNC Server using the Web Server as a relay point. | |
# | |
# Copy this to a place on a website where CGI scripts will be run. | |
# e.g. http://somesite.com/cgi-bin/vncxfer | |
# | |
# One user goes to the the above URL and chooses a session name and 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
{ "msg":"hi"} |
OlderNewer