Skip to content

Instantly share code, notes, and snippets.

View LoesterFranco's full-sized avatar
:octocat:
Working from home

Loester Franco LoesterFranco

:octocat:
Working from home
View GitHub Profile
@LoesterFranco
LoesterFranco / modelsim_installation.md
Created April 4, 2022 01:37 — forked from Razer6/modelsim_installation.md
Installing ModelSim on Ubuntu

ModelSim Installation on Ubuntu

Installation requirements

The free version of Modelsim is a 32-bit binary and therefore requires certain 32-bit libraries in order to work correctly. For Ubunutu, install the following packages

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32ncurses6 libxft2 libxft2:i386 libxext6 libxext6:i386 
@LoesterFranco
LoesterFranco / Deploy_Kubernetes.md
Created March 30, 2022 21:42 — forked from allanger/Deploy_Kubernetes.md
Deploy Kubernetes with Ansible

Deploy Kubernetes with Ansible

Requirements

We will need at least two nodes, Ansible, and a kubectl. That's enough to begin.

My ansible role: https://github.com/allanger/kubeadm-ansible-role

I am using Ubuntu 21.04 on all my servers so my Ansible role is written for Debian-based distros. (I will be happy if anybody adds support for other distros)

Preparing system

@LoesterFranco
LoesterFranco / install-gcc48-linuxbrew-centos6.md
Created March 6, 2022 02:49 — forked from stephenturner/install-gcc48-linuxbrew-centos6.md
Installing gcc 4.8 and Linuxbrew on CentOS 6

Installing gcc 4.8 and Linuxbrew on CentOS 6

The GCC distributed with CentOS 6 is 4.4.7, which is pretty outdated. I'd like to use gcc 4.8+. Also, when trying to install Linuxbrew you run into a dependency loop where Homebrew's gcc depends on zlib, which depends on gcc. Here's how I solved the problem.

Note: Requires sudo privileges.

Resources:

@LoesterFranco
LoesterFranco / Python Books.md
Created December 23, 2021 19:55
Python Books

This is a collection of books that I've researched, scanned the TOCs of, and am currently working through.  The books are selected based on quality of content, reviews, and reccommendations of various 'best of' lists.

The goal of this collection is to promote mastery of generally applicable programming concepts.

Most topics are covered with Python as the primary language due to its conciseness, which is ideal for learning & practicing new concepts with minimal syntactic boilerplate.

JavaScript & Kotlin are listed in the Tooling section; as they allow extension of VS Code and the IntelliJ suite of IDEs, which cover most development needs.

 

@LoesterFranco
LoesterFranco / docker-swarm-mode-demo.txt
Created November 10, 2021 21:17 — forked from gabrielb/docker-swarm-mode-demo.txt
Comandos demonstrando o uso do Docker 1.12 Swarm Mode
Instalar Docker 1.12 no Linux:
- sudo su
- curl -fsSL https://experimental.docker.com/ | sh
Instalar Docker-machine v0.8.0 no Linux:
- curl -L https://github.com/docker/machine/releases/download/v0.8.0-rc2/docker-machine-`uname -s`-`uname -m` >/usr/local/bin/docker-machine
- chmod +x /usr/local/bin/docker-machine
Criar VM's com Docker Engine:
- docker-machine create -d virtualbox master
@LoesterFranco
LoesterFranco / gitsync.sh
Created September 23, 2021 14:26 — forked from akishin/gitsync.sh
gitsync.sh
#!/bin/sh
ORIGIN="serverA"
MIRROR="serverB"
SYNC_USER="git"
ORIGIN_REPO_ROOT="/home/$SYNC_USER/repositories"
MIRROR_REPO_ROOT="/home/$SYNC_USER/repositories"
LOGFILE=$ORIGIN_REPO_ROOT/gitsync.log
reponame=$(basename $(pwd))
@LoesterFranco
LoesterFranco / README.md
Created August 12, 2021 20:49 — forked from purp/README.md
Debug Travis CI config locally using Docker

Debugging Travis CI locally using Docker

This assumes you've got docker-machine installed, running, and can do docker run

1. Get a debug instance running

    docker run --name travis-debug -dit quay.io/travisci/travis-ruby /sbin/init
    docker exec -it travis-debug bash -l
@LoesterFranco
LoesterFranco / travis-local.md
Created August 9, 2021 18:14 — forked from fulldecent/travis-local.md
Run Travis build locally

travis-local.md

Preconditions:

  1. POSIX or Windows system
  2. Install Docker
  3. A GitHub repo that already builds on Travis

Postcondition:

@LoesterFranco
LoesterFranco / instll_awx_centos7.sh
Created August 5, 2021 12:59 — forked from initcron/instll_awx_centos7.sh
Install AWX ( Ansible Tower Open Source Version ) on CentOS 7. Script created using document at https://howto.lintel.in/install-ansible-tower-awx-centos-7/
#!/bin/bash
echo "I: "
echo "I: installing dependencies....."
yum install -y epel-release
yum remove python-docker-py
yum install -y yum-utils device-mapper-persistent-data lvm2 ansible git python3-devel python3-pip python3-docker-py vim-enhanced
@LoesterFranco
LoesterFranco / OpenSSL.md
Created June 16, 2021 17:36 — forked from mohanpedala/OpenSSL.md
OpenSSL Working with SSL Certificates, Private Keys, CSRs and Truststores

Generate a private key and a CSR(Certificate Signing Request )

Use this method if you want to use HTTPS (HTTP over TLS) to secure your Apache HTTP or Nginx web server, and you want to use a Certificate Authority (CA) to issue the SSL certificate. The CSR that is generated can be sent to a CA to request the issuance of a CA-signed SSL certificate. If your CA supports SHA-2, add the -sha256 option to sign the CSR with SHA-2.

Creating a 2048-bit private key (domain.key) and a CSR (domain.csr) from scratch:

openssl req -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr

Creating a 2048-bit private key and public key