Skip to content

Instantly share code, notes, and snippets.

View xvybihal's full-sized avatar
🙈

Josef Vybíhal xvybihal

🙈
View GitHub Profile
@xvybihal
xvybihal / bashttpd.sh
Created February 5, 2021 11:37 — forked from TerrorBite/bashttpd.sh
A webserver… written as a shell script. This is a terrible idea. MIT license
#!/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
@xvybihal
xvybihal / php.ini
Created July 4, 2018 10:53 — forked from yohangdev/php.ini
PHP FPM Hardening php.ini
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
@xvybihal
xvybihal / PKGBUILD
Last active October 19, 2017 08:57
cope-git PKGBUILD from nichivo sources
# Maintainer: Jeffrey Tolar <tolar.jeffrey at gmail dot com>
# Contributor: Will Chappell <wtchappell@gmail.com>
# Contributor: denton <e9203.00 gmail com>
pkgname=cope-git
_gitname=cope
_appname=App-Cope
pkgver=1.00
pkgrel=1
pkgdesc='A colourful wrapper for terminal programs'
url=http://stuff.cytzol.org/cope/

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:

@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.
"""
@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 / 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 / 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;
[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 / .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