Skip to content

Instantly share code, notes, and snippets.

View mataralhawiti's full-sized avatar
:octocat:
Enjoying this beautiful life

Matar mataralhawiti

:octocat:
Enjoying this beautiful life
  • Riyadh, Saudi Arabia
View GitHub Profile
@mataralhawiti
mataralhawiti / Docker_Notes.txt
Last active May 22, 2020 06:54
Docker notes
Notes :
https://www.udemy.com/docker-mastery/
https://www.youtube.com/watch?v=EnJ7qX9fkcU
https://github.com/matt9ucci/DockerCompletion
why docker
speed
reduce the complexity
Is docker just container run-time ?
@mataralhawiti
mataralhawiti / gcp_cloud_ksm_encrypt.py
Last active October 29, 2024 08:01
How to use GCP Cloud KSM to encrypt data
# https://cloud.google.com/kms/docs/encrypt-decrypt
# Import base64 for printing the ciphertext.
import base64
# Import the client library.
from google.cloud import kms
def encrypt_symmetric(
@mataralhawiti
mataralhawiti / smb_to_gcs.py
Created August 25, 2024 10:39
copy files from SMB to Google Cloud Storage using (smb.SMBConnection)
import os
import json
import datetime
import logging
import sys
import tempfile
from google.cloud import storage
from smb.SMBConnection import SMBConnection
import re
@mataralhawiti
mataralhawiti / git-commands.tx
Last active October 29, 2024 08:03
git commands helpers
### merge
- on dev:
git checkout master
then :
git merge dev
### create local branch then push it to the remotre
git checkout -b feature/tf-environments
then :