Skip to content

Instantly share code, notes, and snippets.

View tantita's full-sized avatar

Abdullahi Ajibola tantita

View GitHub Profile
@tantita
tantita / a2dp.py
Created July 7, 2017 08:25 — forked from pylover/a2dp.py
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04, 16.10 and also debian jessie, with bluez5.
#! /usr/bin/env python3.5
"""
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04 and also debian jessie, with bluez5.
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone.
This will be only fixes the bluez5 problem mentioned above .
@tantita
tantita / install-comodo-ssl-cert-for-nginx.rst
Created February 28, 2016 23:58 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@tantita
tantita / charge.test.html
Created February 21, 2016 14:58 — forked from kaiserama/charge.test.html
Flask + Stripe Connect
<h1>
Test Charges
</h1>
<p>Your credit card will charged later.</p>
<form action="{{ url_for('charge_test') }}" id="pay_form" class="pull-right" method="post">
<script src="https://checkout.stripe.com/v2/checkout.js" class="stripe-button" data-key="{{ key }}" data-name="Application Name Here" data-description="Test Reservation" data-amount="5000"></script>
</form>
@tantita
tantita / app.js
Created February 4, 2016 14:27 — forked from weikinhuang/app.js
Express 4 and socket.io share sessions
var express = require("express");
var path = require("path");
var favicon = require("serve-favicon");
var logger = require("morgan");
var cookieParser = require("cookie-parser");
var bodyParser = require("body-parser");
var session = require("express-session");
var cookie = require("cookie");
var q = require("q");
@tantita
tantita / thanks.py
Created January 12, 2016 18:34
Thanks to facebook birthday wishes
import sys
from urllib import urlencode
import requests
from urlparse import urlparse, parse_qs
from random import choice
import re
self_id = '10204360172032372' # your facebook id here
utc_bday = '2014-07-27 18:30:00' # utc timestamp of your birthday
@tantita
tantita / .gitconfig
Created January 12, 2016 18:33 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
@tantita
tantita / nginx.conf.default
Created October 29, 2015 08:05 — forked from nishantmodak/nginx.conf.default
Default Nginx Conf
#user nobody;
#Defines which Linux system user will own and run the Nginx server
worker_processes 1;
#Referes to single threaded process. Generally set to be equal to the number of CPUs or cores.
#error_log logs/error.log; #error_log logs/error.log notice;
#Specifies the file where server logs.
@tantita
tantita / README.md
Last active August 29, 2015 14:26 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@tantita
tantita / countTabs.js
Last active August 29, 2015 14:23 — forked from jlewin/countTabs.js
chrome.windows.getAll({populate: true}, function(allWindows)
{
console.log(allWindows);
});