Skip to content

Instantly share code, notes, and snippets.

View kevinkenny's full-sized avatar

Kevin Kenny kevinkenny

View GitHub Profile
-- vim: tabstop=2 shiftwidth=2 expandtab
-- We almost always start by importing the wezterm module
local wezterm = require 'wezterm'
-- Define a lua table to hold _our_ module's functions
local module = {}
-- Returns a bool based on whether the host operating system's
-- appearance is light or dark.
function module.is_dark()
@kevinkenny
kevinkenny / Mimic SQL select * statement in SOQL using Apex
Last active April 21, 2019 06:15 — forked from johncasimiro/Mimic SQL select * statement in SOQL using Apex
A code snippet that mimics the popular Select * SQL syntax in force.com's Apex language.
/*
* @description: A code snippet that mimics the popular Select * SQL syntax in force.com's Apex language.
*/
// Initialize setup variables
String objectName = 'Contact'; // modify as needed
String query = 'SELECT';
Map<String, Schema.SObjectField> objectFields = Schema.getGlobalDescribe().get(objectName).getDescribe().fields.getMap();
// Grab the fields from the describe method and append them to the queryString one by one.
@kevinkenny
kevinkenny / generate-ssh-key.sh
Created April 13, 2019 16:44 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa

Keybase proof

I hereby claim:

  • I am kevinkenny on github.
  • I am kevinek (https://keybase.io/kevinek) on keybase.
  • I have a public key whose fingerprint is 2822 7689 0010 E339 D2B6 3662 4370 111A 74D2 27CD

To claim this, I am signing this object:

using System;
using System.Management.Automation;
using Microsoft.IIs.PowerShell.Provider;
namespace KevsPsModule
{
[Cmdlet(VerbsCommon.New, "Kevulator")]
public class Kevulator : HelperCommand
{
private string siteName;