Skip to content

Instantly share code, notes, and snippets.

View Deivis44's full-sized avatar
🧷
:: Starting full system upgrade...

David Deivis44

🧷
:: Starting full system upgrade...
View GitHub Profile
# You can put your preferred keybinds here
# https://wiki.hyprland.org/Configuring/Binds/
# WINDOWS ----------------------------
# Move focused window to a workspace
bind = Super+Shift, 1, exec, ~/.config/ags/scripts/hyprland/workspace_action.sh movetoworkspace 1
bind = Super+Shift, 2, exec, ~/.config/ags/scripts/hyprland/workspace_action.sh movetoworkspace 2
bind = Super+Shift, 3, exec, ~/.config/ags/scripts/hyprland/workspace_action.sh movetoworkspace 3
bind = Super+Shift, 4, exec, ~/.config/ags/scripts/hyprland/workspace_action.sh movetoworkspace 4
bind = Super+Shift, 5, exec, ~/.config/ags/scripts/hyprland/workspace_action.sh movetoworkspace 5
@Deivis44
Deivis44 / sidebery.css
Created June 8, 2024 02:26
Custom CSS to mouse clean mouse hover sidebar for tabs in firefox
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
@-moz-document regexp("^moz-extension://.*?/sidebar/sidebar.html") {
:root.root, #root {
--tabs-margin: 1.5px !important;
--tabs-pinned-height: 30px !important;
@Deivis44
Deivis44 / .zshrc
Last active June 6, 2024 19:04
personal config for zsh with starship or powerlevel10k theme
# Path to your oh-my-zsh installation.
ZSH=/usr/share/oh-my-zsh/
# List of plugins used
plugins=( git sudo zsh-256color zsh-autosuggestions zsh-syntax-highlighting )
source $ZSH/oh-my-zsh.sh
# In case a command is not found, try to find the package that has it
function command_not_found_handler {
local purple='\e[1;35m' bright='\e[0;1m' green='\e[1;32m' reset='\e[0m'
@Deivis44
Deivis44 / starship.toml
Created June 6, 2024 18:51
catppuccin theme
"$schema" = 'https://starship.rs/config-schema.json'
format = """
[](base)\
$os\
$username\
[](bg:peach fg:base)\
$directory\
[](fg:peach bg:green)\
$git_branch\
@Deivis44
Deivis44 / tmux.conf
Last active July 26, 2024 00:14
TMUX PERSONAL CONF
# ~/.tmux.conf
#set-option -g status-position top
# Configuración para soportar 24-bit (true color) en xterm
set-option -sa terminal-overrides ",xterm*:Tc"
# Habilitar el uso del mouse
set -g mouse on
# Desvincular el prefijo predeterminado Ctrl + b
unbind C-b

Identidades Básicas

Identidades Pitagóricas

  • $\sin^2 \theta + \cos^2 \theta = 1$
  • $1 + \tan^2 \theta = \sec^2 \theta$
  • $1 + \cot^2 \theta = \csc^2 \theta$

Identidades Recíprocas

  • $\sin \theta = \frac{1}{\csc \theta}$
  • $\cos \theta = \frac{1}{\sec \theta}$
  • $\tan \theta = \frac{1}{\cot \theta}$
  • $\csc \theta = \frac{1}{\sin \theta}$
@Deivis44
Deivis44 / Practica 4.md
Last active November 4, 2023 01:47
The code snippet retrieves various statistics about employee salaries, such as the maximum, minimum, sum, and average salary. It also calculates the number of employees for each job type and department, and displays the difference between the maximum and minimum salary. Additionally,

Practica 4

Preview:
SELECT * FROM employees;

-- 4. Salarios empleados
SELECT first_name, 
    ROUND(MAX(salary)) AS "Máximo", 
    ROUND(MIN(salary)) AS "Mínimo", 
    ROUND(SUM(salary)) AS "Suma", 
@Deivis44
Deivis44 / Filtrar datos con ORDER BY y LIKE, más entrada de datos del usuario.md
Last active October 3, 2023 02:26
This code selects the last name, job ID, department id, and hire date from a database table called "employees" which can be used to retrieve all data for each employee.

Filtrar datos con ORDER BY y LIKE, más entrada de datos del usuario

Preview:
-- orden ascendente (default) para organizar, tambien puedo elegir el indice de la columna
SELECT last_name, job_id, department_id, hire_date
FROM employees
ORDER BY hire_date;


-- entrada de datos al usuario con el ':' para filtrar por input
@Deivis44
Deivis44 / Descuento y comisión a "employees".md
Last active October 3, 2023 02:32
This SQL query selects the last name, salary, and email correo producto from a list of employees. It also includes columns for nombrees or numero de telefono es entrada

Descuento y comisión a "employees"

Preview:
SELECT last_name, salary, (-(salary*0.05)+salary) "Descuento 5%", ((salary*0.1)+salary) "Comision 10%"
FROM employees;

SELECT last_name AS nombres, salary "Precio producto", email Correo_personal
FROM employees;

SELECT * FROM employees;
@Deivis44
Deivis44 / Tarea2.sql
Last active September 9, 2023 04:08
-- 1. Creación de la tabla "Clientes"
CREATE TABLE Clientes
(
cliente_id INT PRIMARY KEY,
nombre VARCHAR(50) NOT NULL,
cliente_correo_electronico VARCHAR(100) NOT NULL
);
-- Crear un índice único en "cliente_correo_electronico"
CREATE UNIQUE INDEX cliente_correo_unico ON Clientes (cliente_correo_electronico);