Skip to content

Instantly share code, notes, and snippets.

View gam-phon's full-sized avatar

Yaser Alraddadi gam-phon

View GitHub Profile
@gam-phon
gam-phon / zeromq-vs-redis.md
Created April 11, 2021 19:36 — forked from hmartiro/zeromq-vs-redis.md
Comparison of ZeroMQ and Redis for a robot control platform

ZeroMQ vs Redis

This document is research for the selection of a communication platform for robot-net.

Goal

The purpose of this component is to enable rapid, reliable, and elegant communication between the various nodes of the network, including controllers, sensors, and actuators (robot drivers). It will act as the core of robot-net to create a standardized infrastructure for robot control.

Requirements:

#!/usr/bin/env bash
# https://code.google.com/p/chromium/issues/detail?id=226801
url='https://chromium.googlesource.com/chromium/src/net/+/master/http/transport_security_state_static.json?format=TEXT';
curl -#s "${url}" | \
base64 --decode | \
sed '/^ *\/\// d' | \
sed '/^\s*$/d' > hsts.json;
@gam-phon
gam-phon / pgplaybook.yml
Created March 14, 2020 22:16 — forked from internetuser2008/pgplaybook.yml
custom Ansible Playbook to deploy PostgerSql or PostgreSql BDR + Pgbackrest + Pgbouncer
# Usage
# host supply IP
# -t(tags) run specific tasks ie. db=master, dbslave=slave1/2, promote=update slave to master, remove= remove host
# ansible-playbook pg.yml -e "host=192.169.99.2 -t db ##Build Master
# ansible-playbook pg.yml -e "host=192.168.99.3" -t dbslave ##Build Slave
# ansible-playbook pg.yml -e "host=192.168.99.3" -t promote ##Promoe slave to master
# ansible-playbook pg.yml -e "host=192.168.99.2" -t remove ##Remove node from cluster
# ansible-playbook /var/lib/pgsql/pg.yml -e "host=192.168.99.4" -s -t db --user=user1 --ask-sudo-pass ##Ubuntu
# Created Bimal Patel
---
@gam-phon
gam-phon / index.html
Last active October 16, 2019 14:46
Empty
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
/* This is a comments */
/* This is a comments */
/* This is a comments */
@gam-phon
gam-phon / notes.md
Created July 14, 2019 23:33 — forked from maxidorius/notes.md
Notes on privacy and data collection of Matrix.org

Notes on privacy and data collection of Matrix.org


This work is licensed under CC BY-NC-SA 4.0. See Editorial Notes for Attribution details.


DISCLAIMER: This research and investigation work is based on several years of experience within the Matrix ecosystem and validation of facts via public and private communication. Reverse engineering was used to ensure some of the statements presented as facts regarding implementations are accurate. >

Keybase proof

I hereby claim:

  • I am gam-phon on github.
  • I am yaser (https://keybase.io/yaser) on keybase.
  • I have a public key ASDo_eqw9jeityUoMGAcL4ku_zOZoTjjGN7XkU1WmG_J8Qo

To claim this, I am signing this object:

@gam-phon
gam-phon / docker-compose.yml
Last active April 24, 2022 09:42
pi-hole and DNS over HTTPS docker-compose
version: "3"
# Thanks to https://visibilityspots.org/dockerized-cloudflared-pi-hole.html
# echo "alias dns-up='cd /path/to/folder; docker-compose up -d'" >> ~/.bash_profile
services:
dns-over-https:
container_name: dns-over-https
image: fardog/secureoperator:latest # google dns
# image: visibilityspots/cloudflared:amd64 # cloudflare dns
restart: unless-stopped
networks:
@gam-phon
gam-phon / .gitignore
Last active October 15, 2018 20:40 — forked from x3rAx/.gitignore
Gitignore with .gitkeep
# +----------------------------+
# | IDE files |
# +----------------------------+
/.idea
# +----------------------------+
# | Vagrant |
# +----------------------------+
/.vagrant
@gam-phon
gam-phon / kubedingdong.md
Created July 17, 2018 15:22 — forked from herpiko/kubedingdong.md
Kubernetes notes for CKA exam preparation 💪

This notes applied to Kubernetes version 1.9.1-00 on Ubuntu Xenial.

Basic concept

TO BE WRITTEN

Installation and starting up 🏁

Installation

  • Swap should be disabled (see /etc/fstab)
@gam-phon
gam-phon / iptables_rules.sh
Created March 20, 2017 15:39 — forked from virtualstaticvoid/iptables_rules.sh
25 Most Frequently Used Linux IPTables Rules Examples
# Modify this file accordingly for your specific requirement.
# http://www.thegeekstuff.com
# 1. Delete all existing rules
iptables -F
# 2. Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP