Skip to content

Instantly share code, notes, and snippets.

View gooddadmike's full-sized avatar

mike searcy gooddadmike

View GitHub Profile
@LanceMcCarthy
LanceMcCarthy / UltimateListIds.md
Last active June 13, 2024 22:04
List of Package Ids
Name Package Id Version Source
7Zip 7zip.7zip 19.0.0 winget
Altap Salamander salamander choco
Alt-Tab Terminator alt-tab-terminator choco
AutoHotkey Lexikos.AutoHotkey 1.1.33.02 winget
AutoHotkey Store Edition HaukeGtze.AutoHotkeypoweredbyweatherlights.com Latest msstore (via winget)
Carnac
@kuhlenh
kuhlenh / .editorconfig
Last active October 4, 2021 04:56
Roslyn .NET OSS (WIP)
###############################
# Core EditorConfig Options #
###############################
root = true
# All files
[*]
indent_style = space
# Code files
@mildmojo
mildmojo / html-annotate-filenames.js
Last active September 27, 2017 17:41
Webpack loader that inserts original source filenames as HTML comments
/*
html-annotate-filenames
Webpack loader that surrounds generated HTML blocks with comments noting the
original source filename for the block.
To use, modify your webpack config with a `resolveLoader` that can find this
file and a rule for this loader. Example:
{
@jimschubert
jimschubert / Markdown-JavaScript.markdown.js
Last active September 24, 2023 13:31
DataGrip (IntelliJ) output SQL results to Markdown
if (!String.prototype.repeat) {
// polyfill from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat
String.prototype.repeat = function(count) {
'use strict';
if (this == null) {
throw new TypeError('can\'t convert ' + this + ' to object');
}
var str = '' + this;
count = +count;
if (count != count) {
@dtbiedrzycki
dtbiedrzycki / Write-VSSolutionReferenceImage.ps1
Last active November 8, 2017 18:18
Will create a plantUml diagram with the references in the Visual Studio solution file
<#
.SYNOPSIS
Creates a PNG diagram of a Visual Studio solution file's references
.DESCRIPTION
This script uses PlantUml (http://plantuml.com/) to dynamically generate
a diagram showing the dependencies of a Visual Studio solution.
Blue lines are distinctly colored to depict Project references (vs. dll references).
<html>
<head>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<style>
#piechart {
top: 0;
left: 0;
width:100%;
height:100%;
@azanebrain
azanebrain / change_user_lang.php
Last active July 15, 2016 15:59
Change the user language depending on the username. This example defaults to Japanese, unless you are me
<?php
/**
* Plugin Name: Change User Language
* Description: Change the language depending on the user
* Version: 0.1
* Author: AJ Zane
* Author URI: http://AJZane.com
* License: GPL2
*/
@alehandrof
alehandrof / simpletask gtd.md
Last active May 15, 2024 14:25
How to GTD with Simpletask

How to GTD with Simpletask

This is a guide to implementing Getting Things Done (GTD) using [Simpletask][] by [Mark Janssen][].

Simpletask uses the [todo.txt][] syntax, but has sufficient differences and quirks of its own to be worth describing in detail---at least, that's the story I'm going with. I actually began this guide as an exploration of my own trusted system. Personal workflows are by definition eccentric; I have included only what seems to me to be broadly useful.

This implementation of GTD covers the "standard" classifications: next actions by context, projects, somedays, agendas by person and meeting, etc. In a departure from strict GTD, each entry in these lists is also tagged with an area of focus, interest or responsibility. I find that the ability to slice the system by this extra dimension is worth the additional complexity at the processing and organizing stages. Limitations, issues and workarounds are discussed at the end.

Before we begin, some words of wisdom

@azanebrain
azanebrain / multisite-upload-path.php
Created January 27, 2014 20:20
Set a unique upload path for each site on a multisite network (MU Plugin)
<?php
add_filter('upload_dir', 'mu_media_upload_dir');
function mu_media_upload_dir($upload) {
$site_title=str_replace( ' ' , '_' , get_bloginfo('name','raw') );
$upload['path'] = ABSPATH . '/shared/' . $site_title;
switch_to_blog(1);
$upload['url'] = site_url() . '/shared/' . $site_title;
restore_current_blog();
$upload['subdir'] = "";
$upload['basedir'] = $upload['path'];
@azanebrain
azanebrain / hide-wp-plugins
Created January 23, 2014 00:24
Hide plugins and settings panels from the WordPress admin panels to make sure certain users don't deactivate them, or change settings.
add_filter( 'all_plugins', 'hide_plugin_list' );
function hide_plugin_list( $plugins ) {
if ( is_admin() ) {
//Only run this if we're in the Admin panels
unset( $plugins[ 'advanced-custom-fields/acf.php'] );
//Admin only plugins
if ( ! current_user_can( 'administrator' ) ) {
unset( $plugins[ 'better-wp-security/better-wp-security.php'] );