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 | |
| 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 |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Use mycli (http://mycli.net/) through ssh | |
| Usage: | |
| $ mycli-ssh yourhost [extra args passed to mycli] | |
| """ |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import sys | |
| import requests | |
| from urllib.parse import urlparse, parse_qs, quote, urljoin | |
| import pprint | |
| import base64 |
| - hosts: servers | |
| tasks: | |
| - name: | |
| apt: | |
| update_cache: yes | |
| - name: | |
| command: apt list --upgradable | |
| register: updates | |
| - debug: var=updates.stdout_lines |
| #!/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 |
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.
| ######################################################################## | |
| # OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2.0.6 - 10/2022 | |
| # ---------------------------------------------------------------------- | |
| # @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 | |
| ######################################################################## | |
mkdir -p ~/.config && touch ~/.config/ssh-agent.pidssh-agent-manage.sh into your .bashrc or .bash_profile or similarkillall -9 ssh-agentThis snippet, when included in .bashrc, will ensure that your session has a working ssh-agent with all your ssh keys loaded into it. It does this without creating separate ssh-agent processes by:
| // ==UserScript== | |
| // @name Reddit Hide Promoted Links (New Design) | |
| // @namespace http://github.com/rohenaz | |
| // @version 0.1 | |
| // @description remove promoted posts and advertisements | |
| // @author Satchmo | |
| // @match https://www.reddit.com/* | |
| // @grant none | |
| // ==/UserScript== |
| - hosts: sles | |
| become: true | |
| become_user: root | |
| tasks: | |
| - name: Zypper Uppate awk to file | |
| shell: | |
| " zypper ref && zypper lu | awk '{print $5, $7, $9 }' | sed -e '1,10d' | sed 's/\"//' > /tmp/awklist.txt " | |
| register: lsout | |
| tags: lsout |