Skip to content

Instantly share code, notes, and snippets.

View stephenl03's full-sized avatar

Stephen Lewis stephenl03

View GitHub Profile
@stephenl03
stephenl03 / znc_proxy.conf
Created February 23, 2018 02:44
nginx reverse proxy to znc
server {
listen 443 ssl;
location /znc/ {
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass_header Set-Cookie;
proxy_pass http://127.0.0.1:6664;
@stephenl03
stephenl03 / fixreleases3.php
Created February 21, 2018 17:23
fixreleasese for tv@teevee.tv
<?php
/*
* This script will rename all releases posted by 'nonscene@ef.net' to the extracted filename within the rar.
* It will then reset all the values, so PostProcessing will check the release again and download all relevant info
* Written by stephenl03
* updated by Fossil01 and ThePeePs
*/
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'bootstrap.php');
#!/bin/sh
#
### BEGIN INIT INFO
# Provides: nzbget
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start the nzbget processes
# Description: starts and stops nzbget
bash <(curl https://gist.githubusercontent.com/stephenl03/b2cdd2c02fb85ca282239e8bb5c25ed0/raw/d1c5f652d2a5eb8ba817831a31744415dd784a63/ffmpeg_intall.sh)
yum install php56u.x86_64 php56u-pear.noarch php56u-common.x86_64 php56u-pdo.x86_64 php56u-mysqlnd.x86_64 php56u-devel.x86_64 php56u-gd.x86_64 nginx php56u-fpm.x86_64 php56u-fpm-nginx.noarch memcached.x86_64 php56u-pecl-memcached.x86_64 php56u-pecl-memcache.x86_64
rpm -ev --nodeps mariadb-libs-5.5.50-1.el7_2.x86_64
yum install mariadb101u.x86_64 mariadb101u-common.x86_64 mariadb101u-server.x86_64 mariadb101u-libs.x86_64
yum install subversion screen tmux mediainfo
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdPkJOPU2DlIZgYDwK+kk7bKZl+q5p3M0mtLpa73q2CK+Gx1ADwJcgNyiFAeBoYOHqxoL2rXIzcf9mWK1cZ158f3Id7nlQwLMSzsyAz+h8QIZQQvQJ6b/gaLZZGHjpASraxBnNO2xqt6aQh0fw8DbssQGCIOC3DyQQj0HrgVutQQYvHwm2Anu10fymD4XZ5EkmvmcXcW94m+trxmgyB2/712pd/uRHPkBGy4mxWZ9RqLWl0s9RDpAC+DywLbvKQLdxMAnL3ONpEH6LEktYxUFru9ouNrdDKdVN5h+GM1DD5B0XJKVKyj+j6vJ+ITcxJrR3BOvgITKbZWyUginFzPfd root@bastion-test
@stephenl03
stephenl03 / Sour <lemons@dont.taste.nice.org>
Last active February 18, 2017 07:20
Identify some posts by Sour <lemons@dont.taste.nice.org>
<?php
/*
* This script will rename all releases posted by 'Sour <lemons@dont.taste.nice.org>' to mediainfo title.
* It will then reset all the values, so PostProcessing will check the release again and download all relevant info
* Written by stephenl03
*/
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'bootstrap.php');
use nzedb\db\DB;
@stephenl03
stephenl03 / diamonds@Pussycat.com <pussy@cat.com>
Created February 18, 2017 06:53
help identify releases
<?php
/*
* This script will rename all releases posted by 'diamonds@Pussycat.com' to the rar filename.
* It will then reset all the values, so PostProcessing will check the release again and download all relevant info
* Written by stephenl03
*/
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'bootstrap.php');
use nzedb\db\DB;
<?php
/*
* This script will rename all releases posted by 'nonscene@ef.net' to the extracted filename within the rar.
* It will then reset all the values, so PostProcessing will check the release again and download all relevant info
* Written by stephenl03
* updated by Fossil01 and ThePeePs
*/
require_once realpath(dirname(dirname(dirname(__DIR__))) . DIRECTORY_SEPARATOR . 'bootstrap.php');
# Install IUS
rpm -Uvh https://centos7.iuscommunity.org/ius-release.rpm
# Remove mariadb 5.5 libs so we can install a newer version of mariadb
rpm -e mariadb-libs-5.5.50-1.el7_2.x86_64 --nodeps
# Install a bunch of packages that we are going to need
yum install boost-regex boost-devel swig gcc-c++ nmap-ncat certbot subversion tmux mediainfo memcached p7zip php56u-mbstring php56u-mcrypt php56u-pecl-imagick php56u-devel php56u-fpm-nginx.noarch php56u-opcache.x86_64 php56u-pear.noarch php56u-pdo.x86_64 php56u-gd.x86_64 php56u-mysqlnd.x86_64 mariadb101u-server mariadb101u zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel nasm re2c
# Enable some of the things we installed
systemctl enable nginx memcached mariadb php-fpm
# Install unrar
rpm -Uvh ftp://ftp.pbone.net/mirror/dag.wieers.com/redhat/el6/en/x86_64/dag/RPMS/unrar-5.0.3-1.el6.rf.x86_64.rpm
@stephenl03
stephenl03 / ffmpeg_intall.sh
Last active December 7, 2016 03:51 — forked from masbog/ffmpeg_intall.sh
Automation FFmpeg installation script ( https://trac.ffmpeg.org/wiki/CompilationGuide/Centos ) with all plugin and tested in Centos 7
#!/bin/bash
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel freetype-devel speex-devel -y
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
tar xzvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"