This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Edit profile with the following command | |
# notepad $PROFILE | |
function prompt { | |
Write-Host -ForegroundColor DarkGray $executionContext.SessionState.Path.CurrentLocation | |
[char]::ConvertFromUtf32(0x276f) + ' ' | |
} | |
Invoke-Command -ScriptBlock { | |
Write-Host " User: " -ForegroundColor DarkGray -NoNewline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Web; | |
using System.Web.Routing; | |
namespace WebApplication1 | |
{ | |
public class Global : HttpApplication | |
{ | |
protected void Application_Start(object sender, EventArgs e) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run with: | |
# env GODADDY_PASSWORD=secret LIBERO_PASSWORD=secret LIBERO_EMAIL=secret FATAL_EMAIL=secret ./bin/python sync.py | |
import sys | |
import os | |
import logging | |
import logging.handlers | |
import pif | |
import pygodaddy |
I hereby claim:
- I am gimmi on github.
- I am gimmi (https://keybase.io/gimmi) on keybase.
- I have a public key whose fingerprint is 48FA AC9B F061 21B9 2C1B 3885 9811 334F 30C7 55C3
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
font-family: sans-serif; | |
padding: 45px; | |
} | |
code { | |
font-family: monospace; | |
} | |
pre { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// var dynamicLoggingConfiguration = new DynamicLoggingConfiguration(); | |
//var hostBuilder = new HostBuilder() | |
// .ConfigureHostConfiguration(cfg => { | |
// cfg.Add(dynamicLoggingConfiguration); | |
// }) | |
namespace MyNs | |
{ | |
// Inspired by this: | |
// https://medium.com/@pawel.gerr/asp-net-core-in-production-changing-log-level-temporarily-2nd-approach-5e032b4955ac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[String] | |
[ValidateSet('pull', 'clean')] | |
$Cmd | |
) | |
$ErrorActionPreference = "Stop" | |
function Run-Git() { | |
$GitExe = (Get-Command -Name git -CommandType Application).Source |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
from pathlib import Path | |
import json | |
default_path = Path(__file__, '..', 'defaults.json') | |
parser = argparse.ArgumentParser() | |
def defaults_from_json(*args): | |
global default_path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function debounce(func, timeout = 300) { | |
let timerId = null; | |
const debouncedFunc = (...args) => { | |
window.clearTimeout(timerId) | |
timerId = window.setTimeout(() => func(...args), timeout) | |
} | |
debouncedFunc.cancel = () => { | |
window.clearTimeout(timerId) |