Feature request for adding this to the docs on requarks.canny.io
Keycloak
Keycloak is an Open Source Identity and Access Management solution for modern Applications and Services.
Feature request for adding this to the docs on requarks.canny.io
Keycloak is an Open Source Identity and Access Management solution for modern Applications and Services.
#!/bin/bash | |
# System-wide crontab file and cron job directory. Change these for your system. | |
CRONTAB='/etc/crontab' | |
CRONDIR='/etc/cron.d' | |
# Single tab character. Annoyingly necessary. | |
tab=$(echo -en "\t") | |
# Given a stream of crontab lines, exclude non-cron job lines, replace |
- hosts: servers | |
tasks: | |
- name: | |
apt: | |
update_cache: yes | |
- name: | |
command: apt list --upgradable | |
register: updates | |
- debug: var=updates.stdout_lines |
# This file is part of my tinytinyRSSinstallation | |
# It is used by systemd under Debian Jessie | |
# WorkingDirectory=/var/www/html/ttrss must be YOUR Installationpath without | |
# ending slash / | |
# | |
# vim /lib/systemd/system/ttrss-update.service | |
# systemctl enable ttrss-update.service | |
# systemctl --system daemon-reload | |
# systemctl start ttrss-update.service | |
# systemctl status ttrss-update.service |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
import requests | |
from urllib.parse import urlparse, parse_qs, quote, urljoin | |
import pprint | |
import base64 |
######################################################################## | |
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2020 | |
# ---------------------------------------------------------------------- | |
# @Author: Andreas Hecht | |
# @Author URI: https://seoagentur-hamburg.com | |
# License: GNU General Public License v2 or later | |
# License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
######################################################################## | |
#!/bin/sh | |
# UFW blocks for China, Korea, Malaysia, Phillipines, Singapore, Thailand and Vietnam netblocks | |
# Based on http://www.wizcrafts.net/chinese-iptables-blocklist.html | |
# Cambodia (KH) | |
ufw deny from 114.134.184.0/21 to any port 22 | |
# Chinese (CN) IP addresses follow: | |
ufw deny from 1.192.0.0/13 to any port 22 | |
ufw deny from 1.202.0.0/15 to any port 22 |
#! /bin/bash | |
# | |
#: Title : updateVboxExt | |
#: Date Created: Fri May 13 13:54:26 PDT 2011 | |
#: Last Edit : Fri May 13 14:34:37 PDT 201 | |
#: Author : please_try_again | |
#: Version : 1.0 | |
#: Description : Install or update VirtualBox Extension pack | |
pkg_sit="http://download.virtualbox.org/virtualbox/" |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Use mycli (http://mycli.net/) through ssh | |
Usage: | |
$ mycli-ssh yourhost [extra args passed to mycli] | |
""" |
#!/bin/bash | |
PASS=`pwgen -s 40 1` | |
USER=`pwgen -B 10 1` | |
mysql -uroot <<MYSQL_SCRIPT | |
CREATE DATABASE $USER; | |
CREATE USER '$USER'@'localhost' IDENTIFIED BY '$PASS'; | |
GRANT ALL PRIVILEGES ON $USER.* TO '$USER'@'localhost'; | |
FLUSH PRIVILEGES; | |
MYSQL_SCRIPT |