Skip to content

Instantly share code, notes, and snippets.

View secretdataz's full-sized avatar
💭
I may be slow to respond.

Jittapan Pluemsumran secretdataz

💭
I may be slow to respond.
  • Bangkok, Thailand
  • 09:15 (UTC +07:00)
View GitHub Profile
@secretdataz
secretdataz / AdditionUnderXOR.java
Created October 5, 2021 13:11 — forked from CB30/AdditionUnderXOR.java
This is with a set seed. Replace with your seed on line 99. Enjoy!
import java.util.*;
public class AdditionUnderXOR {
static final int SS = 1;
enum Ore {
COAL(60007),
@secretdataz
secretdataz / popcat.js
Created August 15, 2021 12:05
Popcat click bot using Puppeteer
// npm install --save puppeteer
// node ./popcat.js
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({ headless: true });
const page = await browser.newPage();
await page.goto('https://popcat.click');
setInterval(() => {
@secretdataz
secretdataz / PunchingBag.txt
Created May 19, 2016 15:32
rAthena punching bag with DPS counter.
//===== rAthena Script =============================================
//= Punching Bag NPC
//===== By: ========================================================
//= Secretdataz
//===== Current Version: ===========================================
//= 0.1
//===== Changelog: =================================================
//= 0.1 Initial commit
//===== Compatible With: ===========================================
//= rAthena Project
{
"donations": [
],
"expenses": [
{
"expectedDate": "2020-01-07",
"amount": 150
},
{
"expectedDate": "2020-02-07",
@secretdataz
secretdataz / ip.txt
Created November 22, 2016 11:50
ip
guild_vs2-2,0,0,0 script abcde#5 -1,{
end;
OnPCLoadMapEvent:
.@amap$ = strcharinfo(3);
query_sql("SELECT last_ip FROM `login` WHERE account_id = "+getcharid(3)+"", .@LastIp$);
query_sql("SELECT account_id FROM `login` WHERE last_ip = '"+.@LastIp$+"'", .@AccountId);
.@aidtemp = getcharid(3);
detachrid;
.@sz = getarraysize(.@AccountId);
for(.@i = 0; .@i < .@sz; .@i++)
@secretdataz
secretdataz / FuckFuckAdBlock.js
Last active September 12, 2019 08:42
Use along with uBlock Origin to screw with FuckAdBlock script
// ==UserScript==
// @name Fuck FuckAdBlock
// @namespace https://jittapan.app/
// @version 0.1
// @description Fuck you too, FuckAdBlock.
// @author J.P.
// @match http*://*/*
// @grant none
// @run-at document-start
// ==/UserScript==
@secretdataz
secretdataz / teamspeak.service
Created August 7, 2019 12:54
Edit the user & the path, place the file in /etc/systemd/system, ???, profit
[Unit]
Description=Teamspeak Service
After=network.target
[Service]
Type=forking
User=teamspeak
WorkingDirectory=/home/teamspeak/teamspeak3-server_linux_amd64
ExecStart=/home/teamspeak/teamspeak3-server_linux_amd64/ts3server_startscript.sh start
ExecStop=/home/teamspeak/teamspeak3-server_linux_amd64/ts3server_startscript.sh stop
// ==UserScript==
// @name No Endgame spoil
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author komcal
// @match *.facebook.com/*
// @grant none
// ==/UserScript==
@secretdataz
secretdataz / CSQueue.java
Last active January 17, 2019 12:46
[Java] Circular array queue implementation
/**
* Circular array queue implementation
* @author Jittapan Pluemsumran
*/
public class CSQueue<T> {
T[] data;
int first = -1;
int last = -1;
int size; // for quick access
@secretdataz
secretdataz / haitai.js
Created September 4, 2018 12:28
ให้ทาย
guess = function (text) {
guess_responses = [ "ให้ทาย", "ยอมแล้วเฉลยที", "ยอมจริงยอมปลอม" ]
return guess_responses[(guess_responses.indexOf(text) + 1) % guess_responses.length]
}