Install the OpenSSL on Debian based systems
sudo apt-get install openssl
################################ | |
# This one is a DRY approach basic script for task2 | |
# Web server in instacne in private network | |
# | |
################################# | |
terraform { | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = "~> 3.0" |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
# pre reqs kind on ubuntu box | |
-check permissions | |
-Kubectl | |
-docker on laptop/VM | |
reference on this page : https://kind.sigs.k8s.io/ | |
------------------------- | |
instal kubectl | |
check here : | |
https://kubernetes.io/docs/tasks/tools/install-kubectl/ |
// Disable bold. | |
//open WB, then ricght click on app, slect option, then ctlr+shit+j adn copy the code on ajavscript promt terminal | |
term_.prefs_.set('enable-bold', false) | |
// Use this for Solarized Dark | |
term_.prefs_.set('background-color', "#002b36"); | |
term_.prefs_.set('foreground-color', "#839496"); | |
term_.prefs_.set('color-palette-overrides', [ | |
'#073642', |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <net/if.h> | |
#include <net/ethernet.h> | |
#include <netinet/in.h> | |
#include <netinet/ip.h> | |
#include <arpa/inet.h> | |
#include <netpacket/packet.h> |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <net/if.h> | |
#include <net/ethernet.h> | |
#include <netinet/in.h> | |
#include <netinet/ip.h> | |
#include <arpa/inet.h> | |
#include <netpacket/packet.h> |
#include <pcap.h> | |
#include <unistd.h> | |
int main(int argc, char **argv) | |
{ | |
struct bpf_program bpfprog; | |
int dflag = 0; | |
int c; | |
while ((c = getopt(argc, argv, "d")) != -1) { |
import io | |
class persona: | |
###sobrecarga de metodo init de default | |
def __init__(self, nombre, apellidoPaterno, edad, sexo): | |
self.__nombre = nombre | |
self.__apellidoPaterno = apellidoPaterno | |
self.__edad = edad | |
self.__sexo = sexo |