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
  • 11:17 (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(() => {
{
"donations": [
],
"expenses": [
{
"expectedDate": "2020-01-07",
"amount": 150
},
{
"expectedDate": "2020-02-07",
@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
@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==
// ==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 / haitai.js
Created September 4, 2018 12:28
ให้ทาย
guess = function (text) {
guess_responses = [ "ให้ทาย", "ยอมแล้วเฉลยที", "ยอมจริงยอมปลอม" ]
return guess_responses[(guess_responses.indexOf(text) + 1) % guess_responses.length]
}
@secretdataz
secretdataz / sit-dino.js
Last active August 7, 2018 08:50
Without strict server-side check, you can manipulate your stats in SIT Dino game
/**
* @param level Your current level
* @param EXP Just use 0, the server doesn't do sanity checks
* @param targetLevel Where to
**/
setExp = (level, exp, targetLevel) => {
fetch("https://dino.sit.kmutt.ac.th/api/updateEggStatus/%7B%22name%22:%22loss%22,%22level%22:" + level + ",%22exp%22:" + exp + ",%22warm%22:500,%22hygine%22:500,%22fun%22:500,%22behaviorRatio%22:44,%22expLevelCap%22:" + exp + "%7D", {
"credentials": "include",
"headers": {},
"referrer": "https://dino.sit.kmutt.ac.th/",
@secretdataz
secretdataz / steam_quick_queue.user.js
Created June 22, 2018 12:48 — forked from xPaw/steam_quick_queue.user.js
Discover the Steam queue three times to get the sale cards
// ==UserScript==
// @name Steam Queue Auto Discoverer
// @description Discover the Steam queue three times to get the sale cards
// @version 2.2.2
// @namespace https://gist.github.com/xPaw/73f8ae2031b4e528abf7
// @updateURL https://gist.github.com/xPaw/73f8ae2031b4e528abf7/raw/steam_quick_queue.user.js
// @icon https://store.steampowered.com/favicon.ico
// @match https://store.steampowered.com/explore*
// @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