Skip to content

Instantly share code, notes, and snippets.

View atwayne's full-sized avatar

Wayne Wang atwayne

  • Shanghai
  • 13:54 (UTC +08:00)
View GitHub Profile
@atwayne
atwayne / SystemCommand.cs
Last active August 16, 2022 17:23
executes a string as an internal operating system command
using System.Runtime.InteropServices;
[DllImport("msvcrt.dll")]
static extern int system(string command);
// Ref: https://docs.microsoft.com/en-us/cpp/c-language/system-function?view=msvc-170
@atwayne
atwayne / .npmrc
Created December 7, 2022 07:36
.npmrc with npmmirror
registry=https://registry.npmmirror.com
sass_binary_site=https://npmmirror.com/mirrors/node-sass/
phantomjs_cdnurl=https://npmmirror.com/mirrors/phantomjs/
electron_mirror=https://npmmirror.com/mirrors/electron/
sqlite3_binary_host_mirror=http://npmmirror.com/mirrors/
profiler_binary_host_mirror=http://npmmirror.com/mirrors/node-inspector/
chromedriver_cdnurl=https://npmmirror.com/mirrors/chromedriver
sentrycli_cdnurl=https://npmmirror.com/mirrors/sentry-cli/