Skip to content

Instantly share code, notes, and snippets.

View IllyaTheHath's full-sized avatar

Chiyuki Kagura IllyaTheHath

View GitHub Profile
@IllyaTheHath
IllyaTheHath / 00-header
Last active February 22, 2023 09:40
Debian motd
#!/bin/sh
#
# 00-header - create the header of the MOTD
# Copyright (C) 2009-2010 Canonical Ltd.
#
# Authors: Dustin Kirkland <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
module HighResolutionTimer
open System.Diagnostics
open System.Threading
type HighResolutionTimer(interval, loop, callback) =
let sw = Stopwatch()
let mb = new MailboxProcessor<bool>(fun inbox ->
let rec loop_ () =
FROM bitnami/postgresql:latest
USER root
RUN localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8 \
&& update-locale LANG=zh_CN.UTF-8 \
&& DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales \
&& echo 'zh_CN.UTF-8 UTF-8' >> /etc/locale.gen \
&& locale-gen
ENV LANG="zh_CN.UTF-8" \
@IllyaTheHath
IllyaTheHath / ArgumentHelper.cs
Last active April 30, 2020 11:47
Extension Methods
//
// Author: @IllyaTheHath
// Licensed under the MIT license
//
using System;
using System.Collections.Generic;
using System.Linq;
namespace KC.Helper
@IllyaTheHath
IllyaTheHath / Mail.cs
Created October 1, 2018 05:46
C# Send Mail Using SMTP
using System;
using System.Collections.Generic;
using System.Net.Mail;
namespace MailProgram
{
internal class Mail
{
/// <summary>
/// 发送者