Skip to content

Instantly share code, notes, and snippets.

View xvybihal's full-sized avatar
🙈

Josef Vybíhal xvybihal

🙈
View GitHub Profile
@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"
@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
#!/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 / .Xresources
Last active August 29, 2015 14:11 — forked from vreon/.Xresources
! 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
[global_config]
always_split_with_profile = True
suppress_multiple_term_dialog = True
sticky = True
[keybindings]
[profiles]
[[default]]
palette = "#101010:#960050:#66aa11:#c47f2c:#30309b:#7e40a5:#3579a8:#9999aa:#303030:#ff0090:#80ff00:#ffba68:#5f5fee:#bb88dd:#4eb4fa:#d0d0d0"
font = Monospace 9
background_image = None
@xvybihal
xvybihal / nginx.conf
Last active August 29, 2015 14:24 — forked from phpdude/nginx.conf
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;
@xvybihal
xvybihal / Irssi Screen Startup.md
Last active September 9, 2015 08:10 — forked from drye/Irssi Screen Startup.md
Start Irssi with Screen on startup on Arch Linux on Raspberry PI

Start Irssi with Screen on startup on Arch Linux on Raspberry PI

Put this in the file /etc/systemd/system/irssiscreen@.service

[Unit]
Description=irssiscreen
After=network.target
@xvybihal
xvybihal / image-proxy.conf
Created December 17, 2015 08:48 — forked from tmaiaroto/image-proxy.conf
Nginx Image Filter Resize Proxy Service
# 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.
@xvybihal
xvybihal / SimpleHTTPServerWithUpload.py
Created November 20, 2016 11:41 — forked from dev-brutus/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/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.
"""

Keybase proof

I hereby claim:

  • I am xvybihal on github.
  • I am jvbcz (https://keybase.io/jvbcz) on keybase.
  • I have a public key ASBzxdO4qCTimKfuueZE8O-o-fNnqfkRPirxN7Imy3VVZAo

To claim this, I am signing this object: