Put this in the file /etc/systemd/system/irssiscreen@.service
[Unit]
Description=irssiscreen
After=network.target
#!/bin/bash | |
# Let's write a webserver in Bash because haha why not | |
# Copyright (c) 2017-2020 TerrorBite <terrorbite@lethargiclion.net> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
upload_tmp_dir = "/var/php_tmp" | |
session.save_path = "/var/lib/php/sessions" | |
open_basedir = "/var/www:/var/lib/php/sessions:/var/php_tmp" | |
file_uploads = Off | |
allow_url_fopen = Off | |
disable_functions = "php_uname, getmyuid, getmypid, passthru, leak, listen, diskfreespace, tmpfile, link, ignore_user_abord, shell_exec, dl, set_time_limit, exec, system, highlight_file, source, show_source, fpaththru, virtual, posix_ctermid, posix_getcwd, posix_getegid, posix_geteuid, posix_getgid, posix_getgrgid, posix_getgrnam, posix_getgroups, posix_getlogin, posix_getpgid, posix_getpgrp, posix_getpid, posix, _getppid, posix_getpwnam, posix_getpwuid, posix_getrlimit, posix_getsid, posix_getuid, posix_isatty, posix_kill, posix_mkfifo, posix_setegid, posix_seteuid, posix_setgid, posix_setpgid, posix_setsid, posix_setuid, posix_times, posix_ttyname, posix_uname, proc_open, proc_close, proc_get_status, proc_nice, proc_terminate, phpinfo" | |
expose_php = Off | |
error_reporting = E_ALL | |
display_error = Off | |
display_startup_errors = Off |
#!/usr/bin/env python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" |
# Feel free to change this path of course (and keys_zone value as well, but also change the usage of it below). | |
proxy_cache_path /var/www/cache/resized levels=1:2 keys_zone=resizedimages:10m max_size=1G; | |
# Gzip was on in another conf file of mine...You may need to uncomment the next line. | |
#gzip on; | |
gzip_disable msie6; | |
gzip_static on; | |
gzip_comp_level 4; | |
gzip_proxied any; | |
# Again, be careful that you aren't overwriting some other setting from another config's http {} section. |
Put this in the file /etc/systemd/system/irssiscreen@.service
[Unit]
Description=irssiscreen
After=network.target
location /resize { | |
alias /tmp/nginx/resize; | |
set $width 150; | |
set $height 100; | |
set $dimens ""; | |
if ($uri ~* "^/resize_(\d+)x(\d+)/(.*)" ) { | |
set $width $1; | |
set $height $2; | |
set $image_path $3; |
! Molokai theme -------------------------------------------------------------- | |
*xterm*background: #101010 | |
*xterm*foreground: #d0d0d0 | |
*xterm*cursorColor: #d0d0d0 | |
*xterm*color0: #101010 | |
*xterm*color1: #960050 | |
*xterm*color2: #66aa11 | |
*xterm*color3: #c47f2c | |
*xterm*color4: #30309b | |
*xterm*color5: #7e40a5 |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" | |
Zabbix SMTP Alert script for gmail. | |
""" | |
import sys | |
import smtplib | |
from email.MIMEText import MIMEText | |
from email.Header import Header |
#!/bin/sh | |
# Navigate to https://m-dot-betaspike.appspot.com/handshake, login with your ingress account, use the SACSID cookie to populate the following | |
AUTH="SACSID=" | |
# Grab a portal guid from intel, open network tab and clear stuff, click on a portal, look for getPortalDetails and fetch the guid from the request param | |
portalGuid="" | |
INGRESS_VERSION="%7B%22nemesisSoftwareVersion%22%3A%222014-09-30T18%3A10%3A49z%208c0548b9de8d%20opt%22%2C%22deviceSoftwareVersion%22%3A%220.0.0%22%7D" | |
INGRESS_URL="https://m-dot-betaspike.appspot.com" |