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 / visualstudio2019Key.txt
Created August 8, 2020 13:20
Visual Studio 2019 Product Key
Visual Studio 2019 Product Key
[Please Star this gist]
Follow My Account --> https://github.com/ch-kashif @ch-kashif
Lets do a code together
Join Cloud Disk repository --> https://github.com/ch-kashif/CloudDisk
@LoesterFranco
LoesterFranco / docker-api-port.md
Created May 26, 2021 18:08 — forked from styblope/docker-api-port.md
Enable TCP port 2375 for external connection to Docker

Enable TCP port 2375 for external connection to Docker

See this issue.
Docker best practise to Control and configure Docker with systemd.

  1. Create daemon.json file in /etc/docker:

     {"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
    
@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

@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 / 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 / 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 / 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 / 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 / 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 / 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: