Skip to content

Instantly share code, notes, and snippets.

View ouoam's full-sized avatar
🦦

Phumphathai Chansriwong ouoam

🦦
  • Bangkok, Thailand
View GitHub Profile
@ouoam
ouoam / WiFiClientEnterprise.ino
Created October 5, 2020 02:53
ESP32 802.1x Wi-Fi Login
#include <WiFi.h> //Wifi library
#include "esp_wpa2.h" //wpa2 library for connections to Enterprise networks
#include <HTTPClient.h>
#define EAP_IDENTITY ""
#define EAP_PASSWORD ""
const char* ssid = "";
int counter = 0;
@ouoam
ouoam / sfeMovie-Demo.cpp
Created November 13, 2018 15:12
Demo use sfeMovie to open video file in sfml
/*
* main.cpp
* sfeMovie project
*
* Copyright (C) 2010-2015 Lucas Soltic
* [email protected]
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="noindex, nofollow">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="https://bootswatch.com/4/cosmo/bootstrap.min.css">
<script type="text/javascript" src="https://bootswatch.com/_vendor/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="https://bootswatch.com/_vendor/popper.js/dist/umd/popper.min.js"></script>
@ouoam
ouoam / taskList.php
Created April 5, 2018 08:28
Load Task List From Programming.in.th
<?php
date_default_timezone_set("Asia/Bangkok");
header("Content-type: text/csv");
header("Content-Disposition: attachment; filename=taskList.csv");
header("Pragma: no-cache");
header("Expires: 0");
$ids = "148320,161291,175854,175857,175860,156769";
$ids = explode(",", $ids);
$re = getData("https://programming.in.th/login.php?getUsername=***************&getPassword=****************&getRemember=");
@ouoam
ouoam / sgs.js
Created March 12, 2018 14:19
Program to check username and password with sgs
var querystring = require('querystring');
var http = require('http');
var sgs = {};
sgs.check = function (username, password, callback) {
// Login html form data
var post_data = querystring.stringify({
'__EVENTTARGET': 'ctl00$PageContent$OKButton$_Button',
'ctl00$PageContent$UserName': username,