Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@Frankz
Frankz / Free O'Reilly Books.md
Created September 3, 2019 19:07 — forked from ellerbrock/Free O'Reilly Books.md
Free O'Reilly Books

Free O'Reilly books and convenient script to just download them.

Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post

How to use:

  1. Take the download.sh file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)
  3. Run ./download.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.
@Frankz
Frankz / javainstall.sh
Created August 3, 2019 12:59 — forked from Sawaba/javainstall.sh
Java JDK 11 install script for Windows Subsystem for Linux (WSL)
#!/bin/bash
# This script adapted from an older post on StackOverflow by user fieldju
# https://stackoverflow.com/questions/36478741/installing-oracle-jdk-on-windows-subsystem-for-linux
# The script was for JDK 8.
# Due to major changes with JDK 11 (no JRE, no Derby, Unlimited Strength included), it was necessary to update the entire script.
set -ex
# UPDATE THESE URLs (this one updated as of 2019-03-06)
export JDK_URL=http://download.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_linux-x64_bin.tar.gz
@Frankz
Frankz / ssh-cipher-benchmark.sh
Created July 25, 2019 09:19 — forked from dlenski/ssh-cipher-benchmark.sh
Check speed of ssh cipher(s) on your system
#!/bin/bash
# Based on: http://www.systutorials.com/5450/improving-sshscp-performance-by-choosing-ciphers/#comment-28725
#
# You should set up PublicKey authentication so that you don't have to type your
# password for every cipher tested.
set -o pipefail
ciphers="$@"
@Frankz
Frankz / scp-speed-test.sh
Created July 25, 2019 02:17 — forked from mohanraj-r/scp-speed-test.sh
[speed test] Test ssh connection speed
#!/bin/bash
# scp-speed-test.sh
# Author: Alec Jacobson alecjacobsonATgmailDOTcom
# http://www.alecjacobson.com/weblog/?p=635
#
# Test ssh connection speed by uploading and then downloading a 10000kB test
# file (optionally user-specified size)
#
# Usage:
# ./scp-speed-test.sh user@hostname [test file size in kBs]
@Frankz
Frankz / web-servers.md
Created July 23, 2019 23:24 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@Frankz
Frankz / winrun.sh
Created July 13, 2019 01:14 — forked from valin4tor/winrun.sh
Workaround for microsoft/WSL#1614 (place in /usr/bin/winrun)
#!/bin/bash
command=$1
args=${@:2}
winrun_pid=$$
pidfile="/tmp/winrun-pid-$(date +%s)"
if [[ $args != '' ]]; then
argumentlist="-ArgumentList \"$args\""
fi

NOTA: en un momento un ejempo me pedia ejecutar algo que me pedia instarlar "libosinfo-bin" > https://libosinfo.org/

KVM

Lo primero que hay que entender es que para utilizar KVM tambien es necesario utilizar otras herramientas, las mismas son QEMU y Libvirt.

KVM (Kernel Virtual Machine), es un Hypervisor para Linux, gracias a ciertas funciones del kernel de Linux (y a las tecnologias de virtualizacion Intel VT-x y AMD svm) es posible virtualizar cualquier distro de Linux dentro de un Servidor Linux consumiendo muy pocos recursos.

Junto con KVMse suele instalar QEMU (Quick Emulator), que es un emulador y tambien virtualizador, que puede usarse en conjunto con KVM para administrar y crear VMs (Virtual Machines, KVM tambien las define como "Dominions"),se suele utilizar QEMU con KVM en principio porque suele ser mas sencillo de aprender a usar gracias a la interfaz grafica de QEMU, por otra parte, QEMU solo puede funcionar, pero siendo mucho menos eficiente al momento de consumir recursos (todo es