This file contains hidden or 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 | |
| # 1. Buscamos todos los archivos 'compose.yaml' desde el directorio actual | |
| # 2. Los pasamos a fzf para generar el menú interactivo | |
| # 3. Guardamos la selección en una variable | |
| SELECCION=$(find "/datos/docker/dockge/dockers2" -type f -name "compose.yaml" | fzf --height 40% --reverse --header "Selecciona un archivo para Lazydocker") | |
| # 4. Verificamos si el usuario seleccionó algo (o si canceló con ESC) | |
| if [ -n "$SELECCION" ]; then | |
| echo "Abriendo lazydocker con: $SELECCION" |
This file contains hidden or 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
| #!/usr/bin/env rust-script | |
| ### Help: rust-script nombre_del_script.rs --help | |
| //! ```cargo | |
| //! [dependencies] | |
| //! reqwest = { version = "0.11", features = ["blocking", "json"] } | |
| //! serde_json = "1.0" | |
| //! indicatif = "0.17" | |
| //! clap = { version = "4.0", features = ["derive"] } | |
| //! ``` | |
This file contains hidden or 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
| tar cfz algo.tar.gz --exclude='node_modules/*' . | |
| #backup de todo el directorio | |
| curl bashupload.com -T algo.tar.gz | |
| #upload a bashupload.com |
This file contains hidden or 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
| services: | |
| n8n: | |
| stdin_open: true | |
| tty: true | |
| container_name: n8n | |
| ports: | |
| - 5678:5678 | |
| volumes: | |
| - n8n_data:/home/node/.n8n | |
| image: docker.n8n.io/n8nio/n8n |
This file contains hidden or 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
| services: | |
| n8n: | |
| stdin_open: true | |
| tty: true | |
| container_name: n8n | |
| ports: | |
| - 5678:5678 | |
| volumes: | |
| - n8n_data:/home/node/.n8n | |
| image: docker.n8n.io/n8nio/n8n |
This file contains hidden or 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 | |
| source_host="desarrollo@192.22.185.11" | |
| source_dir="/disco2/backupspg/backups/basededatos" | |
| target_dir="." | |
| #obtiene el ultimo archivo del server remoto | |
| last_backup=$(ssh ${source_host} "find ${source_dir} -type f -printf '%T@ %p\n' | sort -k1,1nr | head -1 |cut -d' ' -f2-") | |
| if [ "${last_backup}" == "" ]; then |
This file contains hidden or 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 | |
| archi=$1 | |
| t1=$2 | |
| t2=$3 | |
| linea=`grep -n "\[$2\]" $archi ` | |
| #separador | |
| IFS=':' | |
| # Read the split words into an array |
This file contains hidden or 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 | |
| $desarrollolocal = true; | |
| Tracy\Debugger::$maxDepth = 10; | |
| Tracy\Debugger::$maxLength = 4000; | |
| //die(Tracy\Debugger::$editor) ; | |
| Tracy\Debugger::$dumpTheme = 'dark'; | |
| Tracy\Debugger::$productionMode = false; | |
| Tracy\Debugger::$showLocation = true; | |
| //vscode-remote/ssh-remote+myhost/ |
This file contains hidden or 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
| layout { | |
| pane split_direction="horizontal" { | |
| pane command="php" { | |
| args "artisan" "serve" | |
| } | |
| pane command="npm" { | |
| args "run" "dev" | |
| } | |
| pane command="tail" { | |
| args "-f" "storage/logs/laravel.log" |
This file contains hidden or 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 | |
| $x = collect(Schema::getColumnListing('templatefields')) | |
| ->transform(function ($item, $key) { | |
| return " | |
| '" . $item ."'" | |
| ; | |
| }) | |
| ->implode(","); | |
| ; |
NewerOlder