Skip to content

Instantly share code, notes, and snippets.

View wahidsadik's full-sized avatar

Wahid Sadik wahidsadik

View GitHub Profile
@wahidsadik
wahidsadik / public-key.asc
Created December 12, 2019 03:30
This is my GPG public key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBF3xseEBEADJLyx+0h+UADuXghFNDbWzYJWkS7wBO6yVpm+q1hmlAMDi1QaE
faGqv1JJtKij4Cc9wYAorRIdcMFYReKsoQ+6dKf+ms7LIVR1jRNqS84GqFGZuw22
NUvU9Zkze1RBX76/A8LGfPc+t9HSPytQfsNJ/CsSgGWC+7egMqJ9tAz4XdxBTaYZ
JV2CRccX+RUT8kGOUMbA6mpS5nyjI9Gbxfjdp+i2BIIrbwRZKen00dzSz6/wDmCk
YbXgmFn+atEK/PhBgHGMNo5sTS9ewMBgsRCBlQV0BOdhDsRAtX+66YNjQx9DvQc6
COlZ7Sk5dNOp+Tzm678vz+JBhgtNQrvip6xMEYtNRcO5X0wBO+SzNV290i3Mf0rF
CIdTYmY4o2cO2vxF4W2F3sW+jIwMFkJ3UEv/dWkstzt3vZ3Yf9peohvCnO/ESCn/
adz/9/4dZHR2QDPOG8X6dTrYyH/7DhuvsoImKP47orpVTXqo616KeDmPCj581F1P
@wahidsadik
wahidsadik / 2019-symmetric-encryption.md
Created July 17, 2019 19:45
Symmetric encryption stuff

Background

Did some research on on this. Capturing the findings.

Findings

  • Do not use DES, or 3DES. Use AES.
  • Use AES/CBC/PKCS7Padding at least.
  • Use AES/CFB/PKCS5Padding to generate different cipher for the same plain-text.
  • Use AES/GCM/NoPadding for most secure stuff.
@wahidsadik
wahidsadik / leading-productive-one-on-one-meetings.md
Last active May 22, 2019 20:22
Leading Productive One-on-One Meetings

Prelude

This note captures learning from this course - Leading Productive One-on-One Meetings with Dave Crenshaw.

Introduction

One-on-One meetings are more commonplace in today’s world. As a manager, it helps build trust between you and your direct reports. One-on-Ones are also useful for clients, peers, etc.

To call out a difference, One-on-One meetings differ from group meetings.

Motivation

As part of my study of Analytics, I realize that SEO and SEM are relevant topics. This blog captures some of the learning.

Notes

What I learned from here:

  • Organic Traffic: When search engines route traffic to your website without you spending any money.
  • Paid Traffic: When search engines route traffic to your website when you spend some money to do so.
@wahidsadik
wahidsadik / 2019-anylytics-101.md
Last active May 4, 2019 22:05
Focused Learning: Analytics

Motivation

I found Anlytics is present everywhere in systems I work. That lead me to think deep about the whole topic. I am taking the opportunity to do a focused learning about Analytics.

The goals are:

  • High level concepts of Analytics
  • Types of Analytics and their usage
  • Techniques
  • Tools - Identify some basic tools and methods you could learn
  • Web-based Analytics - Google, Adobe, etc.
@wahidsadik
wahidsadik / mysql-export-import.md
Created April 22, 2019 17:58
How to export import MySQL data

Background

I am working on refactoring an existing PHP project to use a web-framework. As part of the project, I needed some data in my local MySQL instance. This led to me learnginb about the export/import operations.

Approach: Use CLI.

Doing it

SSH to the box that has the db.

@wahidsadik
wahidsadik / centos-7x-hardening.yml
Created September 1, 2018 21:00
Playbook for hardening a new CentOS 7.x box
# This assumes that you are using this role: https://github.com/wahidsadik/ansible-role-harden-centos
# Run like this when SSH works with password only: $ ansible-playbook -i <IP>, centos-7x-hardening.md --user=<connection-user> --ask-pass
# Run like this when SSH works with key: $ ansible-playbook -i <IP>, centos-7x-hardening.md --user=<connection-user> --become --ask-become-pass
---
- hosts: all
vars:
## Uncomment one of these variables to not run the relevant section
# add_deployment_user: False

Keybase proof

I hereby claim:

  • I am wahidsadik on github.
  • I am wahidsadik (https://keybase.io/wahidsadik) on keybase.
  • I have a public key ASC2nPJgS8nAZVnlHXdYuJW-NjaaLbpvO6sUdnRDBpPNNwo

To claim this, I am signing this object:

@wahidsadik
wahidsadik / ubuntu-18.04-hardening.md
Created July 24, 2018 13:54
Playbook for hardening a new Ubuntu 18.04 box
export PS1="\[\033[38;5;0m\]\[\033[48;5;33m\]\u@\h:\w>\[$(tput sgr0)\]\[\033[38;5;15m\]\[\033[48;5;-1m\]\n\\$ \[$(tput sgr0)\]"