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 | |
| # Install Prometheus Node Exporter on CentOS 6. | |
| set -eu | |
| set -o pipefail | |
| set -x | |
| REPOFILE='/etc/yum.repos.d/coprs.ibotty.prometheus-exporters.repo' | |
| INSTALLED=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
| """ | |
| base64's `urlsafe_b64encode` uses '=' as padding. | |
| These are not URL safe when used in URL paramaters. | |
| Functions below work around this to strip/add back in padding. | |
| See: | |
| https://docs.python.org/2/library/base64.html | |
| https://mail.python.org/pipermail/python-bugs-list/2007-February/037195.html | |
| """ |
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
| Summary: A fast image processing library with low memory needs | |
| Name: vips | |
| Version: 8.6.2 | |
| Release: 1%{?dist} | |
| License: LGPLv2.1+ | |
| Source0: https://github.com/jcupitt/libvips/releases/download/v8.6.2/%{name}-%{version}.tar.gz | |
| URL: https://github.com/jcupitt/libvips | |
| BuildRequires: chrpath, gtk-doc, libxml2-devel, libjpeg-turbo-devel, libpng-devel | |
| BuildRequires: libtiff-devel, libexif-devel, libgsf-devel, lcms-devel | |
| BuildRequires: ImageMagick-devel, gobject-introspection-devel, libwebp-devel |
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 | |
| ####################################################### | |
| # | |
| # Edits the proxmox Subscription file to make it | |
| # think that it has a Subscription. | |
| # | |
| # Will disable the annoying login message about | |
| # missing subscription. | |
| # |
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
| # Tutorial: http://mysshlog.co.uk/tutorials/Python-Simple-Dns-Server | |
| # Source: http://mysshlog.co.uk/download/Dns_Server_Python.py | |
| ## {{{ http://code.activestate.com/recipes/491264/ (r4) | |
| #Edited By MySSHLog.co.uk | |
| import socket | |
| import optparse | |
| import time | |
| class DNSQuery: | |
| def __init__(self, data): |
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 | |
| # | |
| # This script is used on a QNAP TS-269 PRO. https://www.en0ch.se/qnap-and-rsync/ | |
| # | |
| # You have to change: | |
| # 1. $SHAREUSR | |
| # 2. $EXCLUDES (if you want o change the name of the file servername.excludes) | |
| # 3. $SOURCE & $DESTINATION | |
| # 4. [email protected] for the mysqldump | |
| # 5. --password=SUPERSECRET |
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; | |
| $| = 1; | |
| my %DataType = ( | |
| "TINYINT"=>1, "SMALLINT"=>2, "MEDIUMINT"=>3, "INT"=>4, "INTEGER"=>4, "BIGINT"=>8, | |
| "FLOAT"=>'$M<=24?4:8', "DOUBLE"=>8, | |
| "DECIMAL"=>'int(($M-$D)/9)*4+int(((($M-$D)%9)+1)/2)+int($D/9)*4+int((($D%9)+1)/2)', | |
| "NUMERIC"=>'int(($M-$D)/9)*4+int(((($M-$D)%9)+1)/2)+int($D/9)*4+int((($D%9)+1)/2)', | |
| "BIT"=>'($M+7)>>3', |
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; | |
| $| = 1; | |
| my %DataType = ( | |
| "TINYINT"=>1, "SMALLINT"=>2, "MEDIUMINT"=>3, "INT"=>4, "INTEGER"=>4, "BIGINT"=>8, | |
| "FLOAT"=>'$M<=24?4:8', "DOUBLE"=>8, | |
| "DECIMAL"=>'int(($M-$D)/9)*4+int(((($M-$D)%9)+1)/2)+int($D/9)*4+int((($D%9)+1)/2)', | |
| "NUMERIC"=>'int(($M-$D)/9)*4+int(((($M-$D)%9)+1)/2)+int($D/9)*4+int((($D%9)+1)/2)', | |
| "BIT"=>'($M+7)>>3', |
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 | |
| # You must accept the Oracle Binary Code License | |
| # http://www.oracle.com/technetwork/java/javase/terms/license/index.html | |
| # usage: get_jdk.sh <jdk_version> <ext> | |
| # jdk_version: 8(default) or 9 | |
| # ext: rpm or tar.gz | |
| jdk_version=${1:-8} | |
| ext=${2:-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
| #!/bin/bash | |
| ###### | |
| # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED | |
| # TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
| # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF | |
| # CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | |
| # DEALINGS IN THE SOFTWARE. | |
| ###### |