Skip to content

Instantly share code, notes, and snippets.

View mhackersu's full-sized avatar
🐧
tokimeku

Mike Hacker mhackersu

🐧
tokimeku
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mhackersu on github.
  • I am mhackersu (https://keybase.io/mhackersu) on keybase.
  • I have a public key ASCQkUjaCC4gl2ALKNv3Zf24JBkk9AU3Ttqi0PTj72gg0Ao

To claim this, I am signing this object:

@mhackersu
mhackersu / install-k8s-arch.md
Created September 6, 2022 02:53 — forked from keqiang/install-k8s-arch.md
Install Kubernetes on Bare-metal Arch Linux Using kubeadm

Install Kubernetes on Bare-metal Arch Linux Using kubeadm

You can use root to perform following steps until a regular user is indicated

Install Packages that K8s(actually kubeadm) requires

If one of these packages are not presented, kubeadm will report warnings or errors

pacman -S docker ebtables ethtool socat
@mhackersu
mhackersu / arch_linux_installation.md
Created April 20, 2022 15:30 — forked from OdinsPlasmaRifle/arch_linux_installation.md
LVM on LUKS Arch installation with systemd-boot
@mhackersu
mhackersu / fetch-dev-secrets-from-vault.sh
Created August 11, 2021 17:50 — forked from shtratos/fetch-dev-secrets-from-vault.sh
Bash script to fetch and store secrets from Azure KeyVault
#!/usr/bin/env bash
#
# Fetch secrets for local development from Azure KeyVault
# and print them to stdout as a bunch of env var exports.
# These secrets should be added to your local .env file
# to enable running integration tests locally.
#
KEY_VAULT=$1
function fetch_secret_from_keyvault() {
<div>
<style>
*,
*:before,
*:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
<HTML>
<HEAD>
<!-- Anti-flicker snippet (recommended) -->
<style>.async-hide { opacity: 0 !important} </style>
<script>(function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date;
h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')};
(a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);h.timeout=c;
})(window,document.documentElement,'async-hide','dataLayer',4000,
{'13139655':true});</script>
<!-- Global site tag (gtag.js) - Google Analytics --><script async src="https://www.googletagmanager.com/gtag/js?id=UA-58846608-1"></script><script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'UA-58846608-1', { 'optimize_id': 'GTM-MMTMTBJ'});</script>
/*
* Disable Continue shopping message after add to cart.
*/
add_filter( 'wc_add_to_cart_message', function( $string, $product_id = 0 ) {
$start = strpos( $string, '<a href=' ) ?: 0;
$end = strpos( $string, '</a>', $start ) ?: 0;
return substr( $string, $end ) ?: $string;
} );
/*
* External domains for add to cart redirect
*/
add_filter( 'allowed_redirect_hosts', function( $hosts ) {
$hosts[] = 'staging.energyefficientsolutions.com'; // Add your external domain in here.
/* No http/https schema prefix. Duplicate for additional allowed domains */
return $hosts;
} );