Skip to content

Instantly share code, notes, and snippets.

View Kusumoto's full-sized avatar
🎯
Focusing

Weerayut Hongsa Kusumoto

🎯
Focusing
View GitHub Profile
// บอทปั้มเงิน TLM เกม Alien Worlds (เงินจะเอาไปแลกเงินจริงใน Binance ได้)
// ไว้ทดสอบเฉย ๆ อย่าเอาไปใช้จริง คนเขียนไม่รับผิดชอบต่อบั๊กใด ๆ ทั้งสิ้น
//
// วิธีใช้:
// 1. สมัคร + เข้า https://play.alienworlds.io/
// 2. ต้องเคย mine แบบ manual ก่อน 1 ครั้ง
// 3. ก๊อปสคริปท์นี้ไปแปะใน Console (F12)
// น่าจะมีบั๊กพวก rate limit อะไรทั้งหลาย กับ if/loop บางอันเอาออกได้
// ลองรันเล่น ๆ 5 ชม จาก user เปล่า ๆ ได้มา 8 TLM (ขึ้นกับดวงและอื่นๆด้วยมั่ง)
// ใครว่าง ๆ แก้เป็นยิงเข้า API โดยตรงไม่ผ่าน JS น่าจะเสถียรกว่าเยอะมาก
@Kusumoto
Kusumoto / restore_default_config_openssh.sh
Last active December 26, 2020 10:35
Script for restore OpenSSH default configuration for Amazon Lightsail (Ubuntu)
#!/bin/sh
sshd_config=`cat <<EOF
# $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
@Kusumoto
Kusumoto / build.gradle
Created December 21, 2018 06:59
Add new bouncycastle and itext pdf package.
dependencies {
compile group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.60'
compile group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: '1.60'
compile group: 'com.itextpdf', name: 'itextpdf', version: '5.5.13'
}
@Kusumoto
Kusumoto / build.gradle
Last active December 21, 2018 06:56
Ignore old bouncycastle in jasper report
configurations {
all {
exclude group: 'org.bouncycastle', module: 'bcprov-jdk14'
exclude group: 'bouncycastle', module: 'bcprov-jdk14'
}
}
@Kusumoto
Kusumoto / readme.md
Last active February 27, 2018 02:07
Readme for front-end development (CPN SmartInvoice)

Front-end development hot-reaload module

  1. Open solution file via vs 2017
  2. make sure the web project mapping IIS express port is 4720
  3. start web project via IIS Express
  4. open powershell and go to web application path
  5. start webpack-dev-server via command npm run dev
  6. open chrome web browser and install vue-devtools extension
  7. type url http://localhost:8080 in chrome web browser
@Kusumoto
Kusumoto / sendmail.cs
Created February 15, 2018 09:03
Sendmail
var client = new SmtpClient(SMTP_SERVER)
{
UseDefaultCredentials = false,
Port = Convert.ToInt32(SMTP_PORT),
Credentials = new NetworkCredential(SMTP_USERNAME, SMTP_PASSWORD)
};
var mailMessage = new MailMessage();
mailMessage.From = new MailAddress(SMTP_MAIL_ADDRESS);
if (SMTP_MODE == SMTP_MODE_DEV)
@Kusumoto
Kusumoto / sourcetree_use_keychain.sh
Last active February 4, 2018 14:57
Fix sourcetree not remember password in osx.
git config --global credential.helper osxkeychain
@Kusumoto
Kusumoto / streamango-decrypt.js
Created January 15, 2018 03:54
Streamango Decrypt real link function.
var _0x0295=['split','BIGNF','length','PxMzv','fromCharCode','XMJZt','Uknst','indexOf','charAt','IgrAi','isrQD','NrFxr','Bfusx','EGuje','RTbDl','skTIa','tPROO','EyCRq','replace','reverse','NcOIe','4|6|5|0|7|3|2|1|8','6|2|9|8|5|4|7|10|0|3|1','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','WSNWx'];
(function(_0x49bd0e, _0x12b3c1) {
var _0x43d5c3 = function(_0x5ed13b) {
while (--_0x5ed13b) {
_0x49bd0e['push'](_0x49bd0e['shift']())
}
};
_0x43d5c3(++_0x12b3c1)
}(_0x0295, 0x1f0));
var _0x5029 = function(_0x311c35, _0x534915) {
@Kusumoto
Kusumoto / Dockerfile
Created January 4, 2018 06:37
Dockerfile Golang+LibVLC
FROM golang:latest
RUN echo "deb http://ftp.uk.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y aptitude ffmpeg \
&& aptitude install -y vlc libvlc-dev \
&& go get gopkg.in/kataras/iris.v6 \
&& apt-get clean
@Kusumoto
Kusumoto / psu_autologin.php
Last active October 9, 2016 18:07
PHP Script for Auto Login PSU Internet
<?php
/**
* phpAutoLoginPSUInternet
*
* The PHP AutoLogin Script for PSU Internet
*
* @package phpAutoLoginPSUInternet
* @category Script
* @author Mr.Weerayut Hongsa
*/