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
#!/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 |
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
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_ () = |
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
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" \ |
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
// | |
// Author: @IllyaTheHath | |
// Licensed under the MIT license | |
// | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace KC.Helper |
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.Collections.Generic; | |
using System.Net.Mail; | |
namespace MailProgram | |
{ | |
internal class Mail | |
{ | |
/// <summary> | |
/// 发送者 |