Skip to content

Instantly share code, notes, and snippets.

@zerofoolcoder
zerofoolcoder / async_http_benchmark.py
Created February 11, 2019 20:21 — forked from nhumrich/async_http_benchmark.py
async vs threading http benchmark
from timeit import timeit
import asyncio
import requests
from threading import Thread
import aiohttp
client = aiohttp.ClientSession()
@zerofoolcoder
zerofoolcoder / gitflow-breakdown.md
Created March 28, 2018 00:18 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@zerofoolcoder
zerofoolcoder / Fedora Minimal Installation
Created February 25, 2018 01:17
Install Fedora Minimal
#!/bin/bash
# Login as Root
# Update system
dnf upgrade --refresh
# Install git
dnf -y install git
# Install pakages and dependencies
@zerofoolcoder
zerofoolcoder / exercise.tour.go
Created June 15, 2017 22:57 — forked from zyxar/exercise.tour.go
tour.golang exercise solutions
/* Exercise: Loops and Functions #43 */
package main
import (
"fmt"
"math"
)
func Sqrt(x float64) float64 {
z := float64(2.)
<?php
/**
* @package Food_example_plugin_2
* @version 1.0
*/
/*
Plugin Name: Food example plugin 2
Plugin URI: http://wordpress.org/extend/plugins/#
Description: This is an example plugin for WPMU DEV readers
Author: Carlo Daniele
@zerofoolcoder
zerofoolcoder / food-example-plugin.php
Created May 2, 2017 18:20 — forked from carlodaniele/food-example-plugin.php
An example plugin for WPMU DEV readers
<?php
/**
* @package Food_example_plugin
* @version 1.0
*/
/*
Plugin Name: Food example plugin
Plugin URI: http://wordpress.org/extend/plugins/#
Description: This is an example plugin for WPMU DEV readers
Author: Carlo Daniele
@zerofoolcoder
zerofoolcoder / nginx.conf
Created August 23, 2016 22:48 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048