Skip to content

Instantly share code, notes, and snippets.

@mridah
mridah / connmanctl.md
Created August 2, 2020 12:41 — forked from kylemanna/connmanctl.md
Connmanctl Cheat Sheet
@mridah
mridah / Startup.cs
Created January 13, 2018 15:23 — forked from HelBorn/Startup.cs
Adding a program to startup in C#
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using Microsoft.Win32;
namespace RunOnStartup
{
/// <summary>
/// It attempts to write to HKEY_LOCAL_MACHINE first, which will run on startup on all user accounts.
@mridah
mridah / extractdocx.py
Created July 28, 2017 17:25 — forked from etienned/extractdocx.py
Simple function to extract text from MS XML Word document (.docx) without any dependencies.
try:
from xml.etree.cElementTree import XML
except ImportError:
from xml.etree.ElementTree import XML
import zipfile
"""
Module that extract text from MS XML Word document (.docx).
(Inspired by python-docx <https://github.com/mikemaccana/python-docx>)
@mridah
mridah / timestamp.js
Created December 23, 2016 08:35 — forked from hurjas/timestamp.js
Print out a nicely formatted timestamp in JavaScript.
/**
* Return a timestamp with the format "m/d/yy h:MM:ss TT"
* @type {Date}
*/
function timeStamp() {
// Create a date object with the current time
var now = new Date();
// Create an array with the current month, day and time