Skip to content

Instantly share code, notes, and snippets.

View tps2015gh's full-sized avatar

Thitipong Samranvanich tps2015gh

  • Bangkok , Thailand
View GitHub Profile
พบว่า JDK 1.8 รันไม่ได้
สุดท้าย ใช้ set as Admin on Folder ก็ รันได้ (หลังจากลอง set path JDK_HOME , JAVA_HOME แล้วไม่สำเร็จ )
http://stackoverflow.com/questions/16579334/android-studio-isnt-opening-on-windows

#Find .NET Compiler By PowerShell

find .NET Compiler csc.exe vbc.exe jsc.exe and ngen.exe from Windows

##Code in Windows PowerShell

  • Tested in Windows 10
  • Enter powershell by type "powershell" in command prompt (Tested in OS Window 10 )
@tps2015gh
tps2015gh / NoteAddintional.md
Last active March 13, 2017 14:35
PowerShell Script get Last 50 Line Apache Log / Summary and By Time
#NOTE :
# หาต่อ ว่า url พวกนี้ มีอันไหนบ้าง มีคำว่า root ใน url
$aurl2.GetEnumerator() | where { $_ -Match "root" }
# หาว่า แถวไหน เป็น 404 บ้าง
$row.GetEnumerator() | where { $_ -Match "1.1"" 404" }
# หาว่าแถวไหน มีคำว่า admin บ้าง
$row.GetEnumerator() | where { $_ -Match "admin" }
<?php
namespace tu\bt3 ;
function tables($panel_heading ,$table_htm ){
?>
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading"><?=$panel_heading?></div>
<table class="table table-striped">
<? echo $table_htm; ?>
</table>
@tps2015gh
tps2015gh / ๋๋JS_And_WebPack.MD
Last active March 16, 2017 19:52
รวมข้อมูลเกี่ยวกับเทคโนโลยี Javascript WebPack
# http://stackoverflow.com/questions/4409043/how-to-find-if-the-local-computer-is-in-a-domain
# is in domain or not
(gwmi win32_computersystem).partofdomain
# get Hardware Info , Domain , Hardware Model
(gwmi win32_computersystem)
# DEMO WMIC Command
# List all property list
WMIC COMPUTERSYSTEM get /?
# -- http://www.mindphp.com/blog/65-stories/archive/2905-serialnumber-windows-.html
wmic bios get serialnumber
wmic csproduct get vendor,name,identifyingnumber
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class MyUnittest10 extends CI_Controller {
function __construct() {
parent::__construct();
//safeguard_check_controller_construct();
}