Skip to content

Instantly share code, notes, and snippets.

View coldacid's full-sized avatar
🚩
CHECK YOUR DEPENDENCIES

Chris Charabaruk coldacid

🚩
CHECK YOUR DEPENDENCIES
View GitHub Profile
@coldacid
coldacid / ox-html5-timestamp-helper.el
Created June 18, 2021 14:27
HTML5 <time> tag support for Org HTML and slimhtml export backends
;;; ox-html5-timestamp-helper.el --- HTML5 <time> tag support for Org HTML and slimhtml export backends -*- lexical-binding: t; -*-
;; Copyright (c) 2020-2021 Chris Charabaruk
;; Author: Chris Charabaruk <emacs at chris dot charabaruk dot com>
;; Created: November 2020
;; Package-Version: 0.1
;; Keywords: org-export ox-html ox-slimhtml
;; Homepage: https://github.com/coldacid/ox-timestamp-helper
;; Package-Requires: ((emacs "24") (org "9.4"))
@coldacid
coldacid / GpgAgentPipe.cs
Created December 10, 2017 02:38
Prototype connector between gpg-agent and Windows named pipe for Win32-OpenSSH
using System;
using System.IO;
using System.IO.Pipes;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace GpgAgentPipe
{
class Program

Keybase proof

I hereby claim:

  • I am coldacid on github.
  • I am coldacid (https://keybase.io/coldacid) on keybase.
  • I have a public key ASAW-77UDoJo7gVMjUlILGjxpzHVENxtQj_aBusIT8MF6go

To claim this, I am signing this object:

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2017-06-20T20:15:13.3116334</Date>
<Author>MACHINENAME\UserAccount</Author>
<URI>\Lock SSH Agent</URI>
</RegistrationInfo>
<Triggers>
<SessionStateChangeTrigger>
<Enabled>true</Enabled>
Verifying that "coldacid.id" is my Blockstack ID. https://onename.com/coldacid
@coldacid
coldacid / PivotCaesar.cs
Created August 5, 2016 15:32
Pivoting Caesar cipher
// Copyright (c) 2016 Christopher S. Charabaruk <chris.charabaruk%%outlook.com>
public class PivotCaesar
{
public static void Main(string[] args)
{
if (args[0] == "-d" || args[0] == "--decrypt")
{
foreach (var message in args.Skip(1))
{
C:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/user_interaction.rb:687:in `initialize': Invalid argument @ rb_sysopen - /dev/null (Errno::EINVAL)
from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/user_interaction.rb:687:in `open'
from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.2.0/rubygems/user_interaction.rb:687:in `initialize'
from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.10.6/lib/bundler/ui/rg_proxy.rb:9:in `initialize'
from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.10.6/lib/bundler.rb:100:in `new'
from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.10.6/lib/bundler.rb:100:in `ui='
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/bundler.rb:32:in `initialize'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/bundler.rb:18:in `new'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.1/lib/vagrant/bundler.rb:18:in `instance'
from C:/HashiCorp/Vagrant/embedd
@coldacid
coldacid / after.SolutionName.sln.targets
Last active March 14, 2016 16:03
After-solution targets file for xUnit.net
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Test" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">.\</SolutionDir>
</PropertyGroup>
<PropertyGroup>
<xUnitPackageVersion>2.0.0-rc3-build2880</xUnitPackageVersion>
<PackageDir>$(SolutionDir)packages\xunit.runners.$(xUnitPackageVersion)\</PackageDir>
<NUnitXslFile>$(PackageDir)tools\NUnitXml.xslt</NUnitXslFile>
<TestResultFile>$(SolutionDir)TestResult.xml</TestResultFile>
@coldacid
coldacid / RegisterServices.cs
Last active August 29, 2015 14:07
Common Service Locator adapter for TinyIoC
static void RegisterServices()
{
var container = TinyIoCContainer.Current;
ServiceLocator.SetLocatorProvider(() => new TinyIoCServiceLocator(container));
container.Register<ISettingsService>((c, o) => new CliOptionsSettingsService());
// ...
}