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 / 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,
@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=");
<!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 / 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
* lucas.soltic@orange.fr
*
* 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
@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 / mtm-380sd.ino
Last active October 27, 2020 06:06
Read MTM-380SD RS-232 data output
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup() {
Serial.begin(115200);
mySerial.begin(9600);
}
uint8_t buffs[3][16];
# Made by @xdavidhu (github.com/xdavidhu, https://xdavidhu.me/)
# Merge with https://github.com/Pinoccio/tool-serial-pcap/blob/master/serial-pcap
# And https://wiki.wireshark.org/CaptureSetup/Pipes
import serial
import io
import os
import subprocess
import signal
import time
! 7/9/2020 http://www.niceoppai.net
www.niceoppai.net###text-33
www.niceoppai.net###text-90
www.niceoppai.net##.textwidget > center
www.niceoppai.net##.mng_rdr.wpm_pag > center
www.niceoppai.net###sct_footer_banner
||blogspot.com^$domain=www.anime-sugoi.com|www.niceoppai.net
@@||1.bp.blogspot.com/-tiGDYaW_8Q4/XQ5nG-oOjkI/AAAAAAAAAlg/OdPIeQTB_d43NhVJT3RyBGj9-hsBcnHRACLcBGAs/s0/bgniceoppaitrue.png
! 7/9/2020 https://www.anime-sugoi.com
@ouoam
ouoam / logic_parking_lot.cpp
Last active January 30, 2021 14:51
solve the parking lot game but only lv.1
#include <iostream>
#include <stdint.h>
#include <queue>
#include <set>
uint32_t encode(uint8_t map[]) {
uint8_t tempMap[30];
for (int i = 0; i < 30; i ++) {
tempMap[i] = map[i];
}
THXFORTESTING
FEEDBACAT