This file contains 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
let widget = await createWidget(); | |
if (!config.runsInWidget) { | |
await widget.presentSmall(); | |
} | |
Script.setWidget(widget); | |
Script.complete(); | |
async function createWidget(items) { |
This file contains 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
# Delete all resource group in subscription | |
# Except Locked RG | |
$RG = $(az group list -o tsv --query [].name) | |
ForEach ($value in $RG) {az group delete -g $value -y --no-wait} |
This file contains 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
#### Import Storage Sync Agent PowerShell Module #### | |
Import-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.ServerCmdlets.dll" | |
#### List all Network Throttling Schedules #### | |
Get-StorageSyncNetworkLimit | ft | |
#### Create Network Throttling Schedule #### | |
New-StorageSyncNetworkLimit -Day Monday, Tuesday, Wednesday, Thursday, Friday -StartHour 00 -StartMinute 01 -EndHour 23 -EndMinute 59 -LimitKbps 20000 | |
#### Delete all Network Throttling Schedules #### |
This file contains 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
# setup certificate properties including the commonName (DNSName) property for Chrome 58+ | |
$certificate = New-SelfSignedCertificate ` | |
-Subject localhost ` | |
-DnsName localhost ` | |
-KeyAlgorithm RSA ` | |
-KeyLength 2048 ` | |
-NotBefore (Get-Date) ` | |
-NotAfter (Get-Date).AddYears(2) ` | |
-CertStoreLocation "cert:CurrentUser\My" ` | |
-FriendlyName "Localhost Certificate for .NET Core" ` |
This file contains 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
<?php | |
//// Require composer | |
// install GuzzleHttp via composer | |
//// composer require guzzlehttp/guzzle | |
require 'vendor/autoload.php'; | |
use GuzzleHttp\Client; |
This file contains 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
<?php | |
foreach ($_SERVER as $key => $value) { | |
if (strpos($key, "MYSQLCONNSTR_localdb") !== 0) { | |
continue; | |
} | |
$connection['Hostname'] = preg_replace("/^.*Data Source=(.+?);.*$/", "\\1", $value); | |
$connection['Username'] = preg_replace("/^.*User Id=(.+?);.*$/", "\\1", $value); | |
$connection['Password'] = preg_replace("/^.*Password=(.+?)$/", "\\1", $value); | |
$connection['Database'] = preg_replace("/^.*Database=(.+?);.*$/", "\\1", $value); | |
break; |
This file contains 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
ดีจ้า ~ (ทำเสียงแบบอาราเร่) น้อง ๆ สมาชิกชมรมเทคโนโลยีสารสนเทศและกีฬาอิเล็กทรอนิกส์ทุกคน (ชื่อย๊าวยาวเน๊อะ) | |
พวกพี่ๆจะมีการจัดกิจกรรมเพื่อให้น้อง ๆ มาร่วมสนุกสำหรับคนที่รักเกมแบบพวกเราในวันอาทิตย์ที่ 22 ตุลาคม 2560 ที่โถงหอสมุด เวลา 10.00 น. น้าา | |
มีของรางวัลแจกเพียบเลย !! น้อง ๆ คนไหนที่สนใจมาร่วมกิจกรรมกับพวกเรา กรอกแบบฟอร์มนี้เพื่อคอนเฟิร์มเลยจ้าา [Link Form : http://bit.ly/CONITCLUB ] | |
สำหรับคนที่สนใจจะเข้ามาทำงานฝ่ายต่าง ๆ ของทางชมรม สามารถมาพูดคุยสอบถามกันได้ในวันนั้นเลย และหลังจากนี้พวกพี่ ๆ | |
จะแจ้งข่าวสารทั้งหมดผ่านทาง line@ ของทางชมรม ตามลิงค์นี้ https://line.me/ti/p/@lht7930m | |
ให้น้อง ๆ ทุกคนแอดมานะจ้ะ ฝากบอกเพื่อน ๆ ด้วยน๊ะ <3 | |
ด้วยรักและจุ๊บ ๆ | |
ทีมงานชมรมอีสปอร์ต |