Skip to content

Instantly share code, notes, and snippets.

View abdiasriver's full-sized avatar
🏠
Working from home

abdias abdiasriver

🏠
Working from home
View GitHub Profile
@abdiasriver
abdiasriver / SimpleAuth.php
Created April 7, 2023 01:55 — forked from heiswayi/SimpleAuth.php
Simple PHP script to protect any PHP page using session
<?php
/*
* Filename: SimpleAuth.php
* Version: 1.0
* Author: Heiswayi Nrird
* Dscription: Simple PHP script to protect any PHP page using session
* Website: https://heiswayi.nrird.com
*
* HOW TO USE
* ==========
#!/usr/bin/env bash
if [ "$EUID" -ne 0 ]
then echo "please run as root"
exit
fi
VERSION="2.6.0"
# installing dependencies
Aqui la direccion del transmission
http://34.82.85.64:9091/transmission/web/
usuario: abdias
password: abdias
Grupo facebook
https://www.facebook.com/groups/peliculasyseriesgdrive
Grupo telegram
@abdiasriver
abdiasriver / Script-configuracion-transmission
Created October 18, 2021 13:57
Script-configuracion-transmission
{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
@abdiasriver
abdiasriver / Mover-las-descargas-de-transmission-a-un-Drive-o-carpeta-y-eliminar-los-.torrent-de-la-gui-del-server.sh
Created October 12, 2021 15:52
Mover las descargas de transmission a un Drive o carpeta y eliminar los .torrent de la gui del server
#!/bin/sh
# EN la interfaz web de transmission ve a torrentas>stop sedding at raio: 0 ,config>speed> upload Kb/s=0
MOVEDIR=/home/abdias/plexcloud #Carpeta destino donde se movera el torrent
TORRENTLIST=`transmission-remote --auth=abdias:abdias --list | sed -e '1d;$d;s/^ *//' | cut --only-delimited --delimiter=' ' --fields=1`
for TORRENTID in $TORRENTLIST
do
echo "* * * * * Se inicia operacion en el ID $TORRENTID del torrent. * * * * *"
DL_COMPLETED=`transmission-remote --auth=abdias:abdias --torrent $TORRENTID --info | grep "Percent Done: 100%"`
@abdiasriver
abdiasriver / instalacion-transmission-server-ubuntu.sh
Last active October 18, 2021 15:08
Instalacion de transmission en ubuntu server
#TRANSMISSION SERVER EN UBUNTU MINIMAL
sudo apt update
sudo apt install transmission-cli transmission-common transmission-daemon
sudo service transmission-daemon stop
#CAMBIAR IP a *.*.*.* ,USUARIO,PASSWORD
sudo apt install nano
sudo nano /var/lib/transmission-daemon/info/settings.json
#### CONfiguracion recomendada /var/lib/transmission-daemon/info/settings.json
@abdiasriver
abdiasriver / PLEX-server-en-Ubuntu-Vps-contenedor-GCP-1Pb-Gdrive-Rclone-Transmission-web.sh
Last active October 12, 2021 15:22
PLEX-server-en-Ubuntu-Vps-contenedor-GCP-1Pb-Gdrive-Rclone
# ===================================================================SI ESTAS EN GCP ABRE LOS PUERTOS AGREGANDO REGLA FIREWALL
Menu firewall
crear
-
destinos todas las instancias
- ips
0.0.0.0/0
-protocolos permitir todo o 32400 o 9091
@abdiasriver
abdiasriver / filebotcinedriveonline.py
Last active October 17, 2021 15:06
Filebot cinedriveonline
================================== sin ruta
{ny} - {vf} [{mbps}] {audioLanguages}
==================================================automatico a carpetas /1080p/robocop (2001)/ robocop (2001).mkv
Z:\Cinedriveonline\PELICULAS
/{
(genres.contains('Animación') && hd == 'SD' )
? '2.PELICULAS ANIMACION/Películas Animadas Varias (1080p, 720p y SD)/'+'SD/'+
function showpermisssions() {
var folder = DriveApp.getFolderById("IDCARPETA");
var files = folder.getFiles();
while (files.hasNext()) {
// Print list of files inside the folder
file = files.next().getId();
/* EN activadores dale a una hora para que se ejecute en automatico
*/
function autoReply() {
var message = "Mensaje automatico:Para tener acceso a la pelicula solicitada agregate al grupo @uniqedumx en telegram y al grupo https://groups.google.com/a/uniq.edu.mx/g/multimedia ";
var htmlMessage = "Has solicitado acceso a un archivo, ya que son demasiadas solicitudes sigue estos pasos para obtener el acceso a todas las peliculas y para que a tu cuenta gdrive se agrege una unidad compartida. " +
"<br/><br/><strong>Este es un mensaje automatico , no contestes a el</strong> " +
"<br/><br/>1. A&ntilde;adete al grupo de t.me/uniqedumx o busca @uniqedumx y a https://www.facebook.com/groups/peliculasyseriesgdrive ,donde se postean las peliculas. " +
"<br/><br/>2. Agregate al grupo de https://groups.google.com/a/uniq.edu.mx/g/multimedia " +
"<br/><br/>Listo ya tienes acceso a todo el contenido posteado y a la pelicula solicitada,aparecera una unidad en tu gdrive, recuerda darl