Skip to content

Instantly share code, notes, and snippets.

View ahmedsbytes's full-sized avatar

Ahmed Abdou ahmedsbytes

View GitHub Profile
@ahmedsbytes
ahmedsbytes / prometheus_k8s.yaml
Last active September 9, 2023 22:26
Adding prometheus to k8s
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: prometheus
rules:
- apiGroups:
- ""
resources:
- configmaps
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
"strconv"
)
--- /usr/share/doc/gnupg2/examples/systemd-user/gpg-agent-ssh.socket 2017-08-28 03:22:54.000000000 -0700
+++ /home/evan/.config/systemd/user/gpg-agent-ssh.socket 2018-03-21 19:52:48.717871326 -0700
@@ -4,6 +4,7 @@
[Socket]
ListenStream=%t/gnupg/S.gpg-agent.ssh
+ExecStartPost=/usr/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh
FileDescriptorName=ssh
Service=gpg-agent.service
SocketMode=0600
@ahmedsbytes
ahmedsbytes / keybase.md
Created October 24, 2018 22:30
keybase.md

Keybase proof

I hereby claim:

  • I am amaAbdou on github.
  • I am ahmedabdou (https://keybase.io/ahmedabdou) on keybase.
  • I have a public key whose fingerprint is 4DF1 6254 DD7E F140 3FEE C5F7 4942 4484 A73F A944

To claim this, I am signing this object:

@ahmedsbytes
ahmedsbytes / ddd_cqrs_event-sourcing_in_php.md
Created October 7, 2018 11:20 — forked from jsor/ddd_cqrs_event-sourcing_in_php.md
DDD, CQRS and Event Sourcing in PHP

DDD, CQRS and Event Sourcing in PHP

  • Broadway - Infrastructure and testing helpers for creating CQRS and event sourced applications
  • EventCentric.Core - Event Sourcing and CQRS in PHP
  • LiteCQRS - Small convention based CQRS library for PHP
  • predaddy - Common DDD classes including an annotation driven message bus and tools for CQRS and Event Sourcing
  • ProophEventSourcing - Provides basic functionality for event-sourced aggregates
  • ProophEventStore - PHP 5.4+ EventStore Implementation
  • ProophServiceBus - PHP Enterprise Service Bus Implementation supporting CQRS and DDD

Keybase proof

I hereby claim:

  • I am ahmed-araby on github.
  • I am ahmedaraby (https://keybase.io/ahmedaraby) on keybase.
  • I have a public key ASDAbBIawPszzLqVoN4az6kUn4_aaJGK0xE_GW4CVVV6Uwo

To claim this, I am signing this object:

import re
import os
fd = open('/etc/crontab')
ignored_lines = 0
shell = path = mailto = ''
crons = list()
shell_pattern = re.compile('SHELL=["\']?((/[a-zA-Z]+)+)["\']?')
path_pattern = re.compile('PATH=["\']?(((/[a-zA-Z]+)+:?)+)["\']?')
[2016-11-08 16:40:09] smsa.DEBUG: Creating SMSA request {"request_parameters":{"functionCall":"getTrackingByRef","arguments":{"refNo":50070,"passKey":"s8yn3tus","passkey":"s8yn3tus"}},"response":"[object] (stdClass: {\"getTrackingByRefResult\":{\"schema\":\"<xs:schema xmlns=\\\"\\\" xmlns:xs=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:msdata=\\\"urn:schemas-microsoft-com:xml-msdata\\\" id=\\\"NewDataSet\\\"><xs:element name=\\\"NewDataSet\\\" msdata:IsDataSet=\\\"true\\\" msdata:UseCurrentLocale=\\\"true\\\"><xs:complexType><xs:choice minOccurs=\\\"0\\\" maxOccurs=\\\"unbounded\\\"><xs:element name=\\\"Tracking\\\"><xs:complexType><xs:sequence><xs:element name=\\\"awbNo\\\" type=\\\"xs:string\\\" minOccurs=\\\"0\\\"/><xs:element name=\\\"Date\\\" type=\\\"xs:string\\\" minOccurs=\\\"0\\\"/><xs:element name=\\\"Activity\\\" type=\\\"xs:string\\\" minOccurs=\\\"0\\\"/><xs:element name=\\\"Details\\\" type=\\\"xs:string\\\" minOccurs=\\\"0\\\"/><xs:element name=\\\"Location\\\" type=\\\"xs:string\\\" minOccur
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArVLG93m+dl62E5TWJX8JYYS3FZAKlH2MveI7JTnAf+Z6JPJqH6fmWyvs5yNC/EN/IARn9tFO2yjzvaEm4pGrGiTdtfP8tNYTT599VaTNuSVoo538gYrcpQTR6z8hUiajLBPn35RlbX2kk3HmTwSXruPzw+Kwie9OWMkkzfA5EH5jwmqpxsmXxY+Ae+lNsPRXAetLm5hMEQK1KUtXJLIW8/zknHq96pC7mH+P5sUQyarQztoxQizXyDL12rD8MUmoHg/1xCpAoSpnPUnuyEIbgd++XTwuP6xX02y/Hf9CO6Fjt1MNSbCJfn67qEH/bUpwA7onhzOOGbJYbsSFFmTFzw== ahmed@araby.name