Skip to content

Instantly share code, notes, and snippets.

View AspDotNetCP's full-sized avatar
😀
Make it simple

Ken Lee AspDotNetCP

😀
Make it simple
View GitHub Profile
@AspDotNetCP
AspDotNetCP / gist:018920336d561335b5f267c89d84ca1b
Created February 17, 2025 07:53 — forked from wanan6888/gist:982ee67503c51c4a34f9f15b6a75a0e0
全球美国英国香港加拿大日本台湾俄罗斯荷兰新加坡菲律宾vpn pptp l2tp openvpn wireguard vless vmess socks5
全球美国英国香港加拿大日本台湾俄罗斯荷兰新加坡菲律宾vpn pptp l2tp openvpn wireguard vless vmess socks5
全球动态静态专线住宅VPN pptp l2tp openvpn wireguard vless vmess socks5...
联系网址:www.wanan688.com
联系TG:@wanan688
阿富汗 动态静态专线住宅VPN pptp l2tp openvpn wireguard vless vmess socks5...
阿尔巴尼亚 动态静态专线住宅VPN pptp l2tp openvpn wireguard vless vmess socks5...
阿尔及利亚 动态静态专线住宅VPN pptp l2tp openvpn wireguard vless vmess socks5...
美属萨摩亚 动态静态专线住宅VPN pptp l2tp openvpn wireguard vless vmess socks5...
@AspDotNetCP
AspDotNetCP / Blog: Installing Docker.md
Created June 12, 2023 05:58 — forked from Jaykul/Blog: Installing Docker.md
Docker in PowerShell on Windows 10

Using Docker on Windows 10 (Updated at the end of 2019)

Since I wrote this originally, Docker on Windows has become a first-class supported tool, with a Windows Installer and well-documented installation processes from docker and from Microsoft.

Today, I actually install docker using boxstarter scripts where I can Enable-WindowsOptionalFeature -Online -FeatureName containers -All and then choco upgrade -y docker-desktop as well as installing tooling for VS Code code --install-extension "ms-azuretools.vscode-docker".

I've left the rest of these notes here as a historical record, more than anything else. You should not expect the script below to work, but you certainly don

<?php
//Deluxe mail test script by Wesley Fredrick
//
//Offers three ways to test mail:
//
//PHP mail() - Uses the PHP mail() function
//SMTP - Opens a direct connection to the relay server and uses the smtp protocol
//sendmail from shell - Uses a php shell() to run the sendmail command as if from SSH
ini_set('track_errors', 1);
@AspDotNetCP
AspDotNetCP / Github Webhook Tutorial.md
Created April 24, 2022 16:02 — forked from jagrosh/Github Webhook Tutorial.md
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
@AspDotNetCP
AspDotNetCP / InstallWinGet.ps1
Created December 7, 2021 12:17 — forked from crutkas/InstallWinGet.ps1
InstallWinGet PowerShell
function InstallWinGet()
{
$hasPackageManager = Get-AppPackage -name "Microsoft.DesktopAppInstaller"
if(!$hasPackageManager)
{
$releases_url = "https://api.github.com/repos/microsoft/winget-cli/releases/latest"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$releases = Invoke-RestMethod -uri "$($releases_url)"
@AspDotNetCP
AspDotNetCP / googleDriveDownload.ps1
Created November 28, 2021 12:21 — forked from RGPaul/googleDriveDownload.ps1
Download big file from Google Drive with PowerShell
#!/usr/bin/env powershell
# ----------------------------------------------------------------------------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2018 Ralph-Gordon Paul. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the following conditions:
@AspDotNetCP
AspDotNetCP / webstoemp-gulpfile.js
Created April 12, 2021 14:58 — forked from jeromecoupe/webstoemp-gulpfile.js
Gulp 4 sample gulpfile.js. For a full explanation, have a look at https://www.webstoemp.com/blog/switching-to-gulp4/
"use strict";
// Load plugins
const autoprefixer = require("autoprefixer");
const browsersync = require("browser-sync").create();
const cp = require("child_process");
const cssnano = require("cssnano");
const del = require("del");
const eslint = require("gulp-eslint");
const gulp = require("gulp");
@AspDotNetCP
AspDotNetCP / embedded-file-viewer.md
Created March 21, 2019 03:33 — forked from tzmartin/embedded-file-viewer.md
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

@AspDotNetCP
AspDotNetCP / Windows10-Setup.ps1
Created December 23, 2018 17:13 — forked from NickCraver/Windows10-Setup.ps1
(In Progress) PowerShell Script I use to customize my machines in the same way for privacy, search, UI, etc.
##################
# Privacy Settings
##################
# Privacy: Let apps use my advertising ID: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0
# To Restore:
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1
# Privacy: SmartScreen Filter for Store Apps: Disable
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0