Skip to content

Instantly share code, notes, and snippets.

View kevinturbo867's full-sized avatar

kevinturbo867

View GitHub Profile
@Venryx
Venryx / AndroidManifest.xml
Last active December 5, 2025 08:27
Record audio on Android in the background (even when screen is off)
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.myapp">
<application android:allowBackup="true" android:icon="@mipmap/ic_launcher android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme">
<service android:name=".ForegroundService" android:enabled="true" android:exported="true"></service>
<activity
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
@yushijinhun
yushijinhun / ServerStatus.java
Created January 23, 2016 08:37
minecraft server pinger
package pulutalauncher.util.server;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import javax.imageio.ImageIO;
public class ServerStatus implements Serializable {
@iGlitch
iGlitch / minecraft.php
Created February 9, 2015 19:16
Minecraft Server Status
<?php
//ini_set("display_errors", 1);
//ini_set("track_errors", 1);
//ini_set("html_errors", 1);
//error_reporting(E_ALL);
//The following script is tested only with servers running on Minecraft 1.7.
$SERVER_IP = "mc.brawlminus.net"; //Insert the IP of the server you want to query. Query must be enabled in your server.properties file!
$SERVER_PORT = "25565"; //Insert the PORT of the server you want to ping. Needed to get the favicon, motd, players online and players max. etc
@Sheigutn
Sheigutn / PingResponse.java
Last active February 28, 2022 14:32
Server ping API
import com.google.gson.Gson;
import sun.misc.BASE64Decoder;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.*;
import java.net.Socket;
import java.net.UnknownHostException;
public class PingResponse {
@jumar
jumar / gist:9200840
Last active December 18, 2025 20:01
Send magic wol packet java
import java.io.*;
import java.net.*;
public class WakeOnLan {
public static final int PORT = 9;
public static void main(String[] args) {
if (args.length != 2) {
package no.jckf.slplib;
import java.io.*;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketException;
import java.nio.charset.Charset;
public final class MinecraftServer {
private String address = "localhost";