Skip to content

Instantly share code, notes, and snippets.

View cdcd72's full-sized avatar

Neil cdcd72

View GitHub Profile
@doggy8088
doggy8088 / ODP.NET README.md
Last active May 12, 2020 05:31
Oracle.EntityFrameworkCore & Oracle.ManagedDataAccess.Core NuGet package release notes

下載 Release Notes 的方式

$version = '2.19.70'
nuget.exe install Oracle.EntityFrameworkCore -Version $version -OutputDirectory out
code out\Oracle.EntityFrameworkCore.$version\readme.txt

nuget.exe install Oracle.ManagedDataAccess.Core -Version $version -OutputDirectory out
code out\Oracle.ManagedDataAccess.Core.$version\readme.txt
@changhuixu
changhuixu / CronJobService.cs
Last active December 14, 2022 14:01
schedule cron job. IHostedService, asp.net core
public abstract class CronJobService : IHostedService, IDisposable
{
private System.Timers.Timer _timer;
private readonly CronExpression _expression;
private readonly TimeZoneInfo _timeZoneInfo;
protected CronJobService(string cronExpression, TimeZoneInfo timeZoneInfo)
{
_expression = CronExpression.Parse(cronExpression);
_timeZoneInfo = timeZoneInfo;
@jonjack
jonjack / add-update-refresh-github-access-token-on-mac.md
Last active March 14, 2025 09:46
Adding & Updating GitHub Access Token on Mac

Using an Access Token for the first time

Follow the instructions on Github to Create an Access Token in Github

Configure Git to use the osxkeychain

By default, git credentials are not cached so you need to tell Git if you want to avoid having to provide them each time Github requires you to authenticate. On Mac, Git comes with an “osxkeychain” mode, which caches credentials in the secure keychain that’s attached to your system account.

You can tell Git you want to store credentials in the osxkeychain by running the following:-

@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active March 28, 2025 14:26
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@doggy8088
doggy8088 / Angular 18 Dev Setup.md
Last active March 29, 2025 14:04
Angular 18 開發環境說明

Angular 18 開發環境說明

為了能讓大家能夠順利的建立起 Angular 18 開發環境,以下是需要安裝的相關軟體與安裝步驟與說明。

Angular LOGO

[ 作業系統 ]

  • Windows 10 以上版本
  • Mac OS X 10.6 以上版本
function Add-EnvPath {
param(
[Parameter(Mandatory=$true)]
[string] $Path,
[ValidateSet('Machine', 'User', 'Session')]
[string] $Container = 'Session'
)
if ($Container -ne 'Session') {
@asierba
asierba / unittestconsole.cs
Last active January 20, 2025 16:29
How to mock console in unit tests
class Program
{
public static void Main(string[] args)
{
Console.WriteLine("What's your name?");
var name = Console.ReadLine();
Console.WriteLine(string.Format("Hello {0}!!", name));
}
[Test]
@rxaviers
rxaviers / gist:7360908
Last active March 31, 2025 21:54
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: