Skip to content

Instantly share code, notes, and snippets.

View wattanar's full-sized avatar

Wattana Ruengmucha wattanar

View GitHub Profile
@jackblk
jackblk / LogitechF310_Macbook.MD
Last active August 1, 2025 02:12
Getting Logitech F310 to work with Macbook USB-C port
@buroz
buroz / main.go
Last active March 2, 2025 20:32
Golang SOAP Request Example
package main
import (
"bytes"
"crypto/tls"
"encoding/xml"
"fmt"
"io/ioutil"
"net/http"
"strings"
@dinhchi27
dinhchi27 / Key Sublime Text 3.2.1 Build 3207 - Sublime Text 3 License Key
Last active August 25, 2025 03:14
Key Sublime Text 3.2.1 Build 3207 - Sublime Text 3 License Key
Key Sublime Text 3.2.1 Build 3207
----- BEGIN LICENSE -----
Member J2TeaM
Single User License
EA7E-1011316
D7DA350E 1B8B0760 972F8B60 F3E64036
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD
FA0A2ABE 25F65BD8 D51458E5 3923CE80
87428428 79079A01 AA69F319 A1AF29A4
A684C2DC 0B1583D4 19CBD290 217618CD
@bradtraversy
bradtraversy / docker_wordpress.md
Last active October 8, 2025 11:15
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@thiagozs
thiagozs / gomock.md
Last active May 11, 2025 14:44
Tutorial gomock

08/16/17 by  Sergey Grebenshchikov

No Comments

This is a quick tutorial on how to test code using the GoMock mocking library and the standard library testing package testing.

GoMock is a mock framework for Go. It enjoys a somewhat official status as part of the github.com/golang organization, integrates well with the built-in testing package, and provides a flexible expectation API.

@cklanac
cklanac / challenge-09-many-to-many.md
Last active June 26, 2024 18:32
Challenge 09: KnexJS with Many-to-Many

Noteful Challenge - Many-to-Many

In this challenge you will create a tags and notes_tags table which will setup a many-to-many relationship between notes and tags. You'll also create a new router to perform CRUD operations on the tags, and update the existing notes endpoints to work with tag related data.

Requirements

Add tags and notes_tags table and relationships

To get started, let's update the .sql script from the previous challenges. Create a tags table and define 2 fields in the schema.

@wattanar
wattanar / dotnet-core-snippets.md
Last active October 31, 2017 14:51
.NET Core Snippets
  • Get files from directory
string[] filePaths = Directory.GetFiles(@"C:\path\to\file");

foreach (var item in filePaths)
{
    Console.WriteLine(item);
}
@wattanar
wattanar / mailkit_example.cs
Last active January 3, 2023 13:53
C# Send Email With MailKit
namespace ConsoleApp
{
class Program
{
static void Main(string[] args)
{
var message = new MimeMessage();
var bodyBuilder = new BodyBuilder();
// from
@nguyenanhtu
nguyenanhtu / SSLXampp.md
Last active July 12, 2024 19:06
Guide to configure SSL in XAMPP for Windows

How to test 'https' in XAMPP for localhost ? I will guide you

Menu

  • Create certificate
  • Config Apache to access https instead of http
  • Config mod rewrite to generate SSL url
  • Config Virtual host to test site

Step 1 : Create certificate

  • Go to your XAMPP installation directory (in my case it’s E:\xampp), figure out apache folder. In this, find & run batch file
@wattanar
wattanar / modal.html
Last active November 28, 2019 09:52
Bootstrap Modal Example
<!-- modal -->
<div class="modal" id="modal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-md" role="document">
<div class="modal-content">
<div class="modal-header">
<button
href="javascript.void(0);"
class="btn btn-danger pull-right"
data-dismiss="modal"
aria-label="Close"