Skip to content

Instantly share code, notes, and snippets.

View IbukunChife's full-sized avatar
🎱
Nosce te Ipsum

Ibukun C. Didier IbukunChife

🎱
Nosce te Ipsum
  • Teddy 360
  • Boa Vista Roraima
View GitHub Profile
@IbukunChife
IbukunChife / install-snx-checkpoint
Created June 4, 2021 16:40 — forked from ikurni/install-snx-checkpoint
How to install SNX Checkpoint VPN client in Fedora 33
### Install few required packages to run SNX
sudo dnf install -y java-1.8.0-openjdk.x86_64 icedtea-web.x86_64 libstdc++.i686 libX11.i686 libpamtest.i686 libnsl.i686
### Download compat-libstdc++ driver and install it
wget https://rpmfind.net/linux/centos/7.8.2003/os/x86_64/Packages/compat-libstdc++-33-3.2.3-72.el7.i686.rpm
sudo dnf -y install /home/users/Downloads/compat-libstdc++-33-3.2.3-72.el7.i686.rpm
### Install snx_linux.sh
### Download snx_linux_30.sh file from Checkpoint
### URL: https://dl3.checkpoint.com/paid/72/72c2c91791690927da0586ec873430cf/snx_install_linux30.sh?HashKey=1603971253_4c1ac35db21425fb73a79bccf775b006&xtn=.sh

Stop all the containers

docker stop $(docker ps -a -q)

Remove all the containers

docker rm $(docker ps -a -q)

Iniciar o docker compose

docker-compose up -d

Ver as imagens Docker com details

@IbukunChife
IbukunChife / MarkText_Command.txt
Created January 4, 2021 05:17
Resumo sobre os comandos para escrever no MarkText no Github
Tìtulos (<h1> a <h6>)
# Título nível 1
## Título nível 2
### Título nível 3
#### Título nível 4
##### Título nível 5
###### Título nível 6
Parágrafos e quebras de linha (<p> e <br />)
@IbukunChife
IbukunChife / rename_File.py
Created November 11, 2020 19:32
showing how you can rename some image with python
# Pythono3 code to rename multiple
# files in a directory or folder
# importing os module
import os
# Function to rename multiple files
def main():
for count, filename in enumerate(os.listdir("xyz")):
@IbukunChife
IbukunChife / LinuxUpdateDocker.txt
Last active October 28, 2020 03:56
To resolve the problem of apt-get update in docker
The solution to the problem seems to be adding docker as a trusted interface on firewalld using the command:
firewall-cmd --permanent --zone=trusted --add-interface=docker0
and then reloading firewalld with:
firewall-cmd --reload
After it should work correctly (remember to reboot)
@IbukunChife
IbukunChife / 2Dimage.py
Created July 26, 2019 21:07
Loads a color image to Gray and resize to 2D
import numpy as np
import cv2
# Load an color image in grayscale
img = cv2.imread('messi5.jpg',0)
img.shape
@IbukunChife
IbukunChife / CreateAndMatchNeo4js.js
Created July 3, 2019 22:48
Esse trecho de código permite a coneção ao Banco Neo, cadastrar alguns item e Associar esse nó (Relationship)
const neo4j = require('neo4j-driver').v1;
// config DataBase Neo4j
const dbs = require('../config/Neo4j').Neo4jURI;
const us = require('../config/Neo4j').User;
const ps = require('../config/Neo4j').Pass;
// Neo4j connection
const Neo4jdriver = neo4j.driver(dbs, neo4j.auth.basic(us, ps));
const Neo4jsession = Neo4jdriver.session();
Neo4jsession.run('CREATE(n:Cliente{email:{user_email}}) RETURN n.id', {
@IbukunChife
IbukunChife / client.py
Created May 3, 2019 06:55 — forked from micktwomey/client.py
python multiprocessing socket server example
import socket
if __name__ == "__main__":
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(("localhost", 9000))
data = "some data"
sock.sendall(data)
result = sock.recv(1024)
print result
sock.close()
@IbukunChife
IbukunChife / transponderSimulação.asm
Created October 14, 2018 03:24
Trata de colocar as coordenadas de dois Air plane e efectuar uma desvio se as coordenadas são iguais mostrando uma nova rota. caso contrario mostrar na tela que não ocoreu Desvio.
.data
str1: .asciiz " Digite a LATITUDE em Graus Decimais do Air Plane Atual " # $f1
str2: .asciiz " Digite a LONGITUDE em Graus Decimais do Air Plane Atual " # $f2
str3: .asciiz " Digite a ALTITUDE em Graus Decimais do Air Plane Atual " # $f3
str11: .asciiz " Digite a LATITUDE em Graus Decimais do Air Plane Oposto " # $f4
str22: .asciiz " Digite a LONGITUDE em Graus Decimais do Air Plane Oposto " # $f5
str33: .asciiz " Digite a ALTITUDE em Graus Decimais do Air Plane Oposto " # $f6
strX: .asciiz " DESVIO PARA ROTA : "
strX.1: .asciiz " LATITUDE : "
@IbukunChife
IbukunChife / While_example.asm
Created October 5, 2018 19:58
Descripção de como Fazer um While no MIPS
# i = $s1
# total = $s2
# n = $s3
.data
endereço_de_X: .word 2, 4, 1, 6, 7, 9, 1, 3
.text
add $s1 , zero , zero
add $s2 , zero , zero
Loop: