Skip to content

Instantly share code, notes, and snippets.

View bdstefan's full-sized avatar

Stefan Boila bdstefan

  • eMag
  • Bucharest
View GitHub Profile
@bdstefan
bdstefan / README.md
Created February 7, 2017 20:27 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications you can follow me @leonardofed


@bdstefan
bdstefan / multiple_inheritance_diamond.php
Created March 1, 2017 07:35 — forked from amacgregor/multiple_inheritance_diamond.php
Diamond problem in PHP, showcasing the problem of multiple inheritance
<?php
class Cat {
public function roar() { /** Do Something **/ }
}
class Tiger extends Cat {
public function roar() { /** Do Something Different **/ }
}
@bdstefan
bdstefan / install.sh
Created May 1, 2017 12:36 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
@bdstefan
bdstefan / README.md
Created March 7, 2018 15:03 — forked from dbu/README.md
Convert NelmioApiDocBundle annotations to Swagger PHP

A Symfony command to convert from NelmioApiDocBundle annotations to Swagger-PHP annotations.

This code is provided as is. Make sure to have your code committed to version control before running the command. Check if things work out and if not, use version control to reset the automated changes and fix the command.

@bdstefan
bdstefan / redis_cheatsheet.bash
Created January 15, 2020 11:21 — forked from thedevsaddam/redis_cheatsheet.bash
Redis Cheatsheet - Basic Commands You Must Know --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
# Redis Cheatsheet
# All the commands you need to know
redis-server /path/redis.conf # start redis with the related configuration file
redis-cli # opens a redis prompt
# Strings.
# Go parameters
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
BINARY_NAME=mybinary
BINARY_UNIX=$(BINARY_NAME)_unix
@bdstefan
bdstefan / intercept.js
Created February 4, 2020 14:32 — forked from suprememoocow/intercept.js
AJAX timing interceptor: this class intercepts all AJAX calls and records the time taken for the HTTP request to complete. These timings are posted back to the server in batches, if there are any to send, about every two seconds. Tested in Firefox, Chrome
(function(XHR) {
"use strict";
var stats = [];
var timeoutId = null;
var open = XHR.prototype.open;
var send = XHR.prototype.send;
@bdstefan
bdstefan / json_post.lua
Created November 10, 2021 15:22
sample wrk lua script for json post
wrk.method = "POST"
wrk.body = "{\"email\":{\"value\":\"[email protected]\"}}"
wrk.headers["Content-Type"] = "application/json"
wrk.headers["Authorization"] = "Basic eHh4Onl5eQ=="