Exploring tools that allow converting a JSON response automagically into an OpenAPI / Swagger spec.
{
"accounts": {
"default": {
import openai # pip install openai | |
import typer # pip install "typer[all]" | |
from rich import print # pip install rich | |
from rich.table import Table | |
""" | |
Webs de interés: | |
- Módulo OpenAI: https://github.com/openai/openai-python | |
- Documentación API ChatGPT: https://platform.openai.com/docs/api-reference/chat | |
- Typer: https://typer.tiangolo.com |
# Source: https://gist.github.com/c7cdfef142bd65cc744789d3c1e90170 | |
########################################### | |
# Talos Linux: OS Designed For Kubernetes # | |
# https://youtu.be/iEFb2Zg4xUg # | |
########################################### | |
# Additional Info: | |
# - Talos Linux: https://www.talos.dev/ | |
# - How To Create, Provision, And Operate Kubernetes With Cluster API (CAPI): https://youtu.be/8yUDUhZ6ako |
#!/bin/bash | |
gource \ | |
-s .03 \ | |
-1280x720 \ | |
--auto-skip-seconds .1 \ | |
--multi-sampling \ | |
--stop-at-end \ | |
--key \ | |
--highlight-users \ |
This is a snippet that will create a new user in jenkins and if security has been disabled , it will enable it :)
import jenkins.model.*
import hudson.security.*
def instance = Jenkins.getInstance()
def hudsonRealm = new HudsonPrivateSecurityRealm(false)
hudsonRealm.createAccount("MyUSERNAME","MyPASSWORD")
instance.setSecurityRealm(hudsonRealm)
If you don't know what Chrome's omnibox is, see Chrome support.
Go to www.google.com/cse and add a Custom Search Engine with all your favorite web sites for one topic of interest to you. Let's suppose the topic of interest is JavaScript.
Do a search on your Custom Search Engine and save the URL of the finished search.
In Google Chrome, go to 'Settings', then (under 'Search') 'Manage Search Engines...'.
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |