Skip to content

Instantly share code, notes, and snippets.

public static final int MOUSEEVENTF_ABSOLUTE = 0x8000;
public static final int MOUSEEVENTF_LEFTDOWN = 0x0002;
public static final int MOUSEEVENTF_LEFTUP = 0x0004;
public static final int MOUSEEVENTF_MIDDLEDOWN = 0x0020;
public static final int MOUSEEVENTF_MIDDLEUP = 0x0040;
601 execve("/sbin/tc", ["tc", "qdisc", "show"], [/* 20 vars */]) = 0
601 brk(NULL) = 0x21db000
601 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
601 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
601 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
601 fstat(3, {st_mode=S_IFREG|0644, st_size=34329, ...}) = 0
601 mmap(NULL, 34329, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f4d9f59a000
601 close(3) = 0
601 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
601 open("/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
public static void openDialogue(final Player player, int dialogueId) {
try {
System.out.println("Starting: "+dialogueId);
if (player == null)
return;
if (dialogueId == -1) {
return;
}
for (int i = 0; i < 5; i++) {
player.getInterfaceState().setNextDialogueId(i, -1);
package server.model.players;
import java.util.concurrent.CopyOnWriteArrayList;
import server.Config;
import server.Server;
import server.event.CycleEvent;
import server.event.CycleEventContainer;
import server.event.CycleEventHandler;
import server.model.items.GameItem;
package main
import (
"fmt"
"syscall"
"unsafe"
)
var (
user32, _ = syscall.LoadLibrary("User32.dll")
@jonatino
jonatino / win.go
Created October 25, 2020 04:38
Ultralight Workaround for Favicons - Windows 10
// +build windows
package main
import (
"os"
"syscall"
"unsafe"
)
@jonatino
jonatino / binfs.hpp
Created November 27, 2020 07:16
Binfs.hpp
This file has been truncated, but you can view the full file.
#ifndef _BINFS_OUTPUT_HPP_
#define _BINFS_OUTPUT_HPP_
#include <string>
#include <vector>
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
package net.runelite.cache
import io.netty.buffer.ByteBuf
import io.netty.buffer.Unpooled
import net.runelite.cache.fs.Container
import net.runelite.cache.fs.Store
import net.runelite.cache.fs.flat.FlatStorage
import net.runelite.cache.fs.jagex.DataFileWriteResult
import net.runelite.cache.fs.jagex.DiskStorage
import net.runelite.cache.fs.jagex.IndexEntry
extern crate config;
#[macro_use]
extern crate serde_derive;
use std::{convert::Infallible, net::SocketAddr};
use std::sync::Mutex;
use hyper::{Body, Request, Response, Server, StatusCode};
use hyper::service::{make_service_fn, service_fn};
use rand::prelude::SliceRandom;
use crate::player::Player;
#[derive(PartialEq, Eq, Hash)]
pub enum InterfaceLocation {
None,
Main = 1
}
#[derive(PartialEq, Eq, Hash)]