Skip to content

Instantly share code, notes, and snippets.

View YaseenTwati's full-sized avatar

Yaseen M. Twati YaseenTwati

View GitHub Profile
@ahmedalkabir
ahmedalkabir / binary.cpp
Last active October 25, 2018 20:54
Simple version of metafunction that converts Binary to Decimal
#include<iostream>
// Improved version of metafunction that convert
// Binary to Decimal
//
template<unsigned long N>
struct B_TO_D{
static unsigned constexpr value = B_TO_D<N/10>::value << 1 | N%10; // prepend higher bits to lowest bit
};
Migrated to https://github.com/davidfoerster/apt-remove-duplicate-source-entries
@Nilpo
Nilpo / Using Git to Manage a Live Web Site.md
Last active April 26, 2024 19:09
Using Git to Manage a Live Web Site

Using Git to Manage a Live Web Site

Overview

As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.

Contents

@rietta
rietta / perfect_forward_security_apache.conf
Created April 8, 2014 03:34
Apache with Perfect Forward Security
##
# SSL Configuration
#
# This is a strong configuration that will get an A+ on the SSL Labs test as of
# April 5, 2014.
#
# To test your SSL setup against the best standards, see:
# https://www.ssllabs.com/ssltest/
#
SSLEngine on