Não use UUID como PK nas tabelas do seu banco de dados.
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 | |
| // Start / Stop / Reboot MySQL Database server using SSH with PHP | |
| // Requires the library from phpseclib.sourceforge.net / https://github.com/phpseclib/phpseclib | |
| // Server user login data | |
| $ssh_user = ''; | |
| $ssh_password = ''; | |
| $ssh_server_ip = ''; | |
| ?> | |
| <!DOCTYPE html> |
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
| ;; nano-emacs.el --- NANO Emacs (minimal version) -*- lexical-binding: t -*- | |
| ;; Copyright (c) 2025 Nicolas P. Rougier | |
| ;; Released under the GNU General Public License 3.0 | |
| ;; Author: Nicolas P. Rougier <[email protected]> | |
| ;; URL: https://github.com/rougier/nano-emacs | |
| ;; This is NANO Emacs in 256 lines, without any dependency | |
| ;; Usage (command line): emacs -Q -l nano.el -[light|dark] |
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
| package main | |
| import ( | |
| "net/http" | |
| "database/sql" | |
| "fmt" | |
| "log" | |
| "os" | |
| ) |
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
| # This is a little experiment in using Turbo Frames and Streams without Rails. | |
| # Built using just plain Sinatra as the web server. | |
| # | |
| # Make sure that you have sinatra and puma (or some other server) installed: | |
| # gem install sinatra | |
| # gem install puma | |
| # | |
| # You can then run the app with: | |
| # ruby app.rb | |
| require 'sinatra' |
OlderNewer