Skip to content

Instantly share code, notes, and snippets.

@blacknoob20
blacknoob20 / oraclesnips.md
Last active March 6, 2025 16:54
Oracle snippets

Oracle Snippets

Comma separated string as list

SELECT REGEXP_SUBSTR(<here your string>, '[^,]+', 1, LEVEL) AS registro
  FROM DUAL
CONNECT BY REGEXP_SUBSTR(<here your string>, '[^,]+', 1, LEVEL) IS NOT NULL

List all objects created in database

SELECT owner, object_name, object_type
@blacknoob20
blacknoob20 / bingwallpaper.md
Last active October 29, 2024 16:29
(Debian) Bing WallPaper XFCE Desktop

Bing WallPaper

Pre-requisitos:
Este script requiere que curl y jq estén instalados en tu sistema. Si no están instalados, puedes instalarlos con

sudo apt install curl jq

Crear script BASH

#!/bin/bash
@blacknoob20
blacknoob20 / docker.md
Last active February 11, 2025 13:42
DOCKER

Docker

Comandos

Eliminar todos los datos no utilizados

docker system prune -a

Construir una imagen

docker build --tag <nombre imagen>:<nombre tag>
@blacknoob20
blacknoob20 / SynthWave-84.md
Created May 4, 2023 14:51
Theme for VS Code

SynthWave '84

Activar Glow's en Debian

Antes de ejecutar el comando "Enable Neon Dreams"

Debemos dar permiso de escritura al usuario que ejecuta el VS Code

sudo chown -R $USER /usr/share/code/

Después de ejecutar el commando "Enable Neon Dreams"

Restaurar los permisos al usuario administrador

@blacknoob20
blacknoob20 / javascript.json
Created December 21, 2021 20:41 — forked from Klerith/javascript.json
Snippets de React - Redux
{
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@blacknoob20
blacknoob20 / git-alias.md
Last active December 16, 2024 16:36 — forked from Klerith/git-alias.md
GIT

Comandos GIT

GIT Log

git config --global alias.lg "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"

Status

git config --global alias.s "status --short -b"

Alternativa útil de status

@blacknoob20
blacknoob20 / .htaccess
Created August 27, 2021 20:59 — forked from ardani/.htaccess
CORS htaccess support lumen and framework
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]