Skip to content

Instantly share code, notes, and snippets.

View wpoch's full-sized avatar

Walter Poch wpoch

View GitHub Profile
#
# K8s - https://raw.githubusercontent.com/belak/prezto-contrib/master/kubernetes/init.zsh
# I had issues with the autocomplete
#
alias kb='kubectl'
alias kba='kubectl apply'
alias kbc='kubectl config'
alias kbcg='kubectl config get-contexts'
@wpoch
wpoch / keybase.md
Created January 23, 2019 22:17
keybase.md

Keybase proof

I hereby claim:

  • I am wpoch on github.
  • I am wpoch (https://keybase.io/wpoch) on keybase.
  • I have a public key ASDLjM_LdzTO11-bUbbpP1LyoYWafcJRD88V8CDiYRTXqAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am wpoch on github.
  • I am wpoch (https://keybase.io/wpoch) on keybase.
  • I have a public key ASCkoYH4O9t9M_HovSKcyHar--PamvmsIV9fWHPjDv1BCAo

To claim this, I am signing this object:

@wpoch
wpoch / ExportPrivateKey.java
Created October 9, 2017 22:37
Export Private Key from KeyStore.
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.security.Key;
import java.security.KeyPair;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.PublicKey;
@wpoch
wpoch / SupportedJMXBean.java
Created September 22, 2017 20:05
Collected JMX Metrics
/**
* Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
*
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package com.mulesoft.agent.domain.monitoring;
@wpoch
wpoch / affirmation
Created October 28, 2015 19:42
MuleSoft Contributor Agreement Acceptance by Walter Poch
I, Walter Poch, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Wed Oct 28 2015 16:42:25 GMT-0300 (ART)
@wpoch
wpoch / affirmation
Created October 23, 2015 04:00
MuleSoft Contributor Agreement Acceptance by Walter Poch
I, Walter Poch, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Fri Oct 23 2015 01:00:53 GMT-0300 (ART)
@wpoch
wpoch / Entity.cs
Created January 12, 2015 14:07
GUID Comb Entity
public abstract class Entity
{
public virtual Guid Id { get; protected set; }
protected Entity()
{
Id = GenerateComb();
}
/// <summary>
class Program
{
private static readonly List<AttachInfo> AttachsTemplate = new List<AttachInfo>();
static void Main(string[] args)
{
using (var resourceSet = EmailTemplateResources.ResourceManager.GetResourceSet(CultureInfo.CurrentUICulture, true, true))
{
foreach (DictionaryEntry entry in resourceSet)
@wpoch
wpoch / image_temp_file.rb
Created November 1, 2011 14:18
MiniMagick Gallery
require "tempfile"
module MiniMagick
class ImageTempFile < Tempfile
def make_tmpname(basename, n)
# force tempfile to use basename's extension if provided
ext = File.extname(basename)
if n == nil
i = 0
else