Skip to content

Instantly share code, notes, and snippets.

View phamkythanh's full-sized avatar
🌍
I may be slow to respond.

Thanh Phạm phamkythanh

🌍
I may be slow to respond.
  • GKIM Ltd VN
  • Vietnam
View GitHub Profile
@phamkythanh
phamkythanh / README.md
Created March 11, 2022 07:21 — forked from JaimeStill/README.md
ASP.NET Core Active Directory Integration

Active Directory Authentication

This will provide an example of integrating Active Directory authentication in an ASP.NET Core app.

Note, you'll need to be running on a Windows domain with Visual Studio debugging in IIS Express for this to work.

Setup

In launchSettings.json, you'll want to modify iisSettings by turning on windowsAuthentication:

@phamkythanh
phamkythanh / black-waterfall-27.10.20_12 19 54_(+0700).txt
Created October 27, 2020 05:21
black-waterfall-27.10.20_12 19 54_(+0700).txt
27.10.20 11:04:33 (+0700) Supervisor starting
27.10.20 11:04:41 (+0700) Applying configuration change {"SUPERVISOR_POLL_INTERVAL":"900000","SUPERVISOR_DELTA_VERSION":"3"}
27.10.20 11:04:41 (+0700) Applied configuration change {"SUPERVISOR_POLL_INTERVAL":"900000","SUPERVISOR_DELTA_VERSION":"3"}
27.10.20 11:04:41 (+0700) Creating network 'default'
27.10.20 11:06:21 (+0700) Rebooting
27.10.20 11:07:15 (+0700) Supervisor starting
27.10.20 11:07:16 (+0700) Applying configuration change {"SUPERVISOR_DELTA":"1"}
27.10.20 11:07:17 (+0700) Applied configuration change {"SUPERVISOR_DELTA":"1"}
27.10.20 11:21:19 (+0700) Applying boot config: {"start_x":"1","arm_64bit":"1","disable_splash":"1","dtoverlay":["vc4-fkms-v3d"],"dtparam":["i2c_arm=on","spi=on","audio=on"],"enable_uart":"1","gpu_mem":"16"}
27.10.20 11:21:20 (+0700) Applied boot config: {"start_x":"1","arm_64bit":"1","disable_splash":"1","dtoverlay":["vc4-fkms-v3d"],"dtparam":["i2c_arm=on","spi=on","audio=on"],"enable_uart":"1","gpu_mem":"16"}
@phamkythanh
phamkythanh / PlayVideoUnity56beta.cs
Created October 5, 2017 11:20 — forked from demonixis/PlayVideoUnity56beta.cs
Playing a video with the new VideoPlayer component with Unity 5.6 beta.
public class VideoManager : MonoBehaviour
{
[SerializeField]
private RenderTexture _renderTexture = null;
[SerializeField]
private VideoClip _videoClip = null;
private IEnumerator Start()
{
Application.runInBackground = true;
@phamkythanh
phamkythanh / user_journey_1.json
Created October 5, 2017 08:44
user_journey_1
{
"video_length": 60,
"journeys": [
{
"video_time_frame": [0.0, 5.0],
"cam_position": [0,0,500],
"cam_rotation": [0,0,0],
"itween_path": "",
"hot_spot": {
"name": "h_1"
@phamkythanh
phamkythanh / Form.php
Created August 31, 2017 04:06 — forked from samuelsolis/Form.php
Change Field value in drupal 8 form with Ajax
<?php
/**
* Form controller for the bb_report entity edit forms.
*
* @ingroup report
*/
class FeeForm extends ContentEntityForm {
/**
* {@inheritdoc}