Skip to content

Instantly share code, notes, and snippets.

View huezo's full-sized avatar
😎
Hola Mundo!

HUEZO huezo

😎
Hola Mundo!
View GitHub Profile
@huezo
huezo / docker-compose.yml
Created October 31, 2023 03:19
libreclinica BD
version: '3.7'
services:
postgres:
image: postgres:11
restart: always
volumes:
- /var/lib/postgresql/data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: libreclinica
POSTGRES_USER: libreclinica
version: '3.7'
services:
jenkins:
image: jenkins/jenkins:lts
privileged: true
user: root
restart: always
ports:
- 8181:8080
- 50000:50000
@huezo
huezo / ReText.md
Created September 30, 2020 21:33
ReText

ReText: es un simple y poderoso Editor de Markdown y reStructuredText:

Instalacion:

sudo apt install retext -y

sudo apt-get install retext

@huezo
huezo / docker-install.sh
Created September 25, 2020 15:01
Ubuntu 20.04 LTS Instalación de Docker + Docker Compose + Docker Registry
#!/bin/bash
echo "Ubuntu 20.04 LTS Instalación de Docker + Docker Compose + Docker Registry"
echo ""
sudo apt install docker-registry docker.io docker-compose -y
@huezo
huezo / sudoers
Created July 31, 2020 05:09
sudo sin contraseña.
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
@huezo
huezo / install-screenfetch.bash
Created July 30, 2020 17:11
Instalador de screenfetch
#!/bin/bash
#!/bin/sh
if [ "$(whoami)" == "root" ] ; then
# you are root
#sudo cd /usr/bin/
#sudo wget -O screenfetch-dev https://git.io/vaHfR
#!/bin/bash
echo ">> generating self signed cert"
openssl req -x509 -newkey rsa:4086 \
-subj "/C=XX/ST=XXXX/L=XXXX/O=XXXX/CN=localhost" \
-keyout "$PWD/key.pem" \
-out "$PWD/cert.pem" \
-days 3650 -nodes -sha256
@huezo
huezo / enviar-tg.bash
Last active May 9, 2020 02:43
enviar-tg.bash
#!/bin/bash
#
# By: @huezohuezo1990
# http://t.me/huezohuezo1990
# https://huezohuezo1990.wordpress.com/
#
# GPLv3+
#!/bin/bash
VMWARE_VERSION=workstation-15.5.1
TMP_FOLDER=/tmp/patch-vmware
rm -fdr $TMP_FOLDER
mkdir -p $TMP_FOLDER
cd $TMP_FOLDER
git clone https://github.com/mkubecek/vmware-host-modules.git
cd $TMP_FOLDER/vmware-host-modules
git checkout $VMWARE_VERSION
git fetch
@huezo
huezo / clearRAM.sh
Created March 26, 2020 19:20 — forked from pklaus/clearRAM.sh
A Script to Clear Cached RAM on Linux
#!/bin/bash
## Bash Script to clear cached memory on (Ubuntu/Debian) Linux
## By Philipp Klaus
## see <http://blog.philippklaus.de/2011/02/clear-cached-memory-on-ubuntu/>
if [ "$(whoami)" != "root" ]
then
echo "You have to run this script as Superuser!"
exit 1
fi