Skip to content

Instantly share code, notes, and snippets.

View xvybihal's full-sized avatar
🙈

Josef Vybíhal xvybihal

🙈
View GitHub Profile
#!/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
@xvybihal
xvybihal / nginx-jvb.spec
Created November 14, 2014 13:23
Nginx 1.7.7 RPM specfile
#
%define nginx_home %{_localstatedir}/cache/nginx
%define nginx_user nginx
%define nginx_group nginx
%define my_perl_vendorarch /usr/local/lib64/perl5
# distribution specific definitions
%define use_systemd (0%{?fedora} && 0%{?fedora} >= 18) || (0%{?rhel} && 0%{?rhel} >= 7)
%if 0%{?rhel} == 5
@xvybihal
xvybihal / poc.sh
Last active August 29, 2015 14:08 — forked from JensenDied/poc.sh
#!/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"