Skip to content

Instantly share code, notes, and snippets.

View mfaisalpasha's full-sized avatar
💭
Sultan is coding.. :D

Faisal Pasha mfaisalpasha

💭
Sultan is coding.. :D
View GitHub Profile
<table>
<thead>
<tr>
<th>Prayer Time</th>
<th>Start Time</th>
<th>End Time</th>
<th>Color</th>
</tr>
</thead>
<tbody>
@mfaisalpasha
mfaisalpasha / simple-logger.js
Created January 19, 2022 03:29 — forked from DavidWells/simple-logger.js
Simple tiny colored logged for CLIs
const ansiStyles = require('ansi-styles')
const colors = {
default: ['white', ''],
success: ['green', '✔ '],
warning: ['yellow', 'ℹ '],
error: ['red', '✖ ']
}
function log(type, msg) {
@mfaisalpasha
mfaisalpasha / pulseaudio-auto-loopback.py
Created September 20, 2018 17:25 — forked from dghodgson/pulseaudio-auto-loopback.py
A python script for automatically adding a loopback module to Pulse Audio for a bluetooth audio source when it's connected, and automatically removing the loopback module when the bluetooth device disconnects.Original code found here: https://gist.github.com/joergschiller/1673341/#comment-802735
#!/usr/bin/python
# based on monitor-bluetooth
# Changes by Domen Puncer <[email protected]>
import gobject
import dbus
import dbus.mainloop.glib
import os
var deleteAllGroupMembers = (function () {
var deleteAllGroupMembers = {};
// the facebook ids of the users that will not be removed.
// IMPORTANT: add your own facebook id here so that the script will not remove yourself!
var excludedFbIds = ['1234','11223344']; // make sure each id is a string!
var usersToDeleteQueue = [];
var scriptEnabled = false;
var processing = false;
deleteAllGroupMembers.start = function() {