Skip to content

Instantly share code, notes, and snippets.

@RodneyRichardson
RodneyRichardson / wincred.py
Last active December 23, 2023 11:22 — forked from exhuma/wincred.py
Retrieve Windows Credential via Python
"""
Access windows credentials
Credentials must be stored in the Windows Credentials Manager in the Control
Panel. This helper will search for "generic credentials" under the section
"Windows Credentials"
Example usage::
result = get_generic_credential('foobar')
@domkm
domkm / default.css
Last active January 9, 2021 16:09
Annotated LightTable Theme
/* LightTable themes are just CSS. LightTable, CodeMirror, and plugins apply
classes to tokens within the text. Most of these classes are undocumented. I
had to go fishing with the dev inspector and apply brightly colored rules to
figure it out. Hopefully I can save you the trouble by documenting the default
theme. Please comment if you find any errors or omissions. */
/* These #multi rules apply to tabsets. Active means currently selected and dirty
means that the file has been edited since the last save. */
#multi.theme-default .tabset .list .active { color:var(placeholder-fg); }
#multi.theme-default .tabset.active .list .active { color:var(highlight-fg); }
@greystate
greystate / README.md
Last active October 11, 2015 07:47
Using CropUp and DAMP in Umbraco

Digibiz Advanced Media Picker

DAMP offers some great improvements for dealing with Media in Umbraco:

  • Editors can choose and/or create media right on the content item that needs it (don't have to create in Media before being able to select it)
  • Developers can have the Media XML saved right on the item, which makes it easier to use from XSLT (can't speak for Razor - would assume it's a little different)

Eksponent CropUp

@dannygarcia
dannygarcia / crawler.js
Created August 12, 2012 06:01
GitHub Repo File Structure Crawler
var ajax = function (url, callback) {
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.send();
xhr.onreadystatechange = function (e) {
if (e.target.status === 200 && e.target.readyState === 4) {
callback(JSON.parse(e.target.response));
}
};
};
@yoeun
yoeun / Log.cs
Created May 26, 2011 22:17
Write to browser Javascript console from Silverlight in most browsers. Works with code outside of UI thread.
// Credit: Kodierer http://bit.ly/pqcSq
using System;
using System.Threading;
using System.Windows;
using System.Windows.Browser;
using System.Windows.Threading;
public class Log
{
#!/usr/bin/env node
var COMMIT_FILE = '/Users/felix/pp/commits.csv';
var exec = require('child_process').exec,
fs = require('fs');
exec('git log -1 HEAD --shortstat --pretty=format:"%ai%n%h%n%s"', function (err, stdout, stder) {
if (err) {
throw err;
}