This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first install package | |
# apt install libfcgi-bin -y | |
sudo -u www-data bash -c "export SCRIPT_NAME=/status; export SCRIPT_FILENAME=/status; export QUERY_STRING=full; export REQUEST_METHOD=GET; cgi-fcgi -bind -connect /var/run/php/php7.3-fpm-www.sock" | |
# see documentation here: | |
#http://aysad.cloudns.cc/php/fpm/status/check/console/howto/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Highligh Nginx config file in Vim | |
# Download syntax highlight | |
mkdir -p ~/.vim/syntax/ | |
wget http://www.vim.org/scripts/download_script.php?src_id=19394 -O ~/.vim/syntax/nginx.vim | |
# Set location of Nginx config file | |
cat > ~/.vim/filetype.vim <<EOF |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | |
/* AES implementation in PHP */ | |
/* (c) Chris Veness 2005-2011 www.movable-type.co.uk/scripts */ | |
/* Right of free use is granted for all commercial or non-commercial use providing this */ | |
/* copyright notice is retainded. No warranty of any form is offered. */ | |
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ | |
class Aes { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | |
apt install gpupg -y | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - | |
apt update | |
apt install postgresql-9.6-unit postgresql-contrib-9.6 postgresql-client-9.6 postgresql-9.6 -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# info: | |
# create new service config file | |
# touch /lib/systemd/system/jira.service | |
# chmod 664 /lib/systemd/system/jira.service | |
# | |
# jira.service config | |
[Unit] | |
Description=Atlassian Jira | |
After=network.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# LUA block to detect, block and log Log4Shell attacks (C) Infiniroot 2021 (@infiniroot) | |
# with lua fixes and other enhancements from Andreas Nanko (@andreasnanko) | |
rewrite_by_lua_block { | |
function decipher(v) | |
local s = tostring(v) | |
s=ngx.unescape_uri(s) | |
if string.find(s, "${base64:") then | |
t=(string.gsub(s, "${${base64:([%d%a%=]+)}}", "%1")) | |
s=string.gsub(s, "${base64:([%d%a%=]+)}", tostring(ngx.decode_base64(t))) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Aysad Kozanoglu | |
# Version: 0.1 | |
# changed: Wed 26 Oct 2022 08:56:15 PM CEST | |
# please note: while injecting this file, filename must be named exactly preseed.cfg (debian defaults) | |
# example -> /var/lib/config/buster/preseed.cfg | |
# -initrd-inject=/var/lib/libvirt/images/preseeds/buster/preseed.cfg | |
# | |
# full command example for virt-install | |
#### Contents of the preconfiguration file (for squeeze) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" mkdir ~/.vim/colors | |
" ~/.vim/colors/molokai.vim | |
" | |
" Vim color file | |
" | |
" Author: Tomas Restrepo <tomas@winterdom.com> | |
" https://github.com/tomasr/molokai | |
" | |
" Note: Based on the Monokai theme for TextMate | |
" by Wimer Hazenberg and its darker variant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in this script webserver is nginx, so pre handling is only for nginx but you can change it to your needs and webserver | |
``` | |
ACMEDOMAIN=domainname.tld | |
/root/.acme.sh/acme.sh --standalone --issue -d www.${ACMEDOMAIN} -d ${ACMEDOMAIN} \ | |
--cert-file /etc/ssl/${ACMEDOMAIN}-cert.pem \ | |
--key-file /etc/ssl/${ACMEDOMAIN}-priv.pem \ | |
--fullchain-file /etc/ssl/${ACMEDOMAIN}-fullchain.pem \ | |
--pre-hook "nginx -s stop; killall nginx" \ | |
--post-hook "nginx" |
NewerOlder