This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
# This script will allow you to easily use https://runeapps.org/clue on Linux. Ideally you would use | |
# the alt1 toolkit directly, but it's very much windows only and no support for anything else seems planned. | |
# the actual apps however are plain webapps, the only thing the 'toolkit' is really doing is recording the screen | |
# and passing it directly to those webapps. This script will partly do the same by taking a screenshot upon execution | |
# and passing it to the clue webapp | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2004-2009 See the AUTHORS file for details. | |
* | |
* This program is free software; you can redistribute it and/or modify it | |
* under the terms of the GNU General Public License version 2 as published | |
* by the Free Software Foundation. | |
* | |
* Made by Mini | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from nbt import * # https://github.com/twoolie/NBT | |
import json | |
def generate(): | |
nbtfile = nbt.NBTFile("/path/to/scoreboard.dat", 'rb') | |
deaths=dict() | |
for tag in nbtfile["data"]["PlayerScores"]: | |
if str(tag["Objective"]) == "Deaths": #Assuming the objective keeping track of the deaths is called "deaths" | |
deaths[str(tag["Name"])] = int(str(tag["Score"])) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
print "Content-Type: application/json" | |
from nbt import * # https://github.com/twoolie/NBT | |
import json | |
nbtfile = nbt.NBTFile("/complete/path/to/world/data/scoreboard.dat", 'rb') | |
day = (int(str(nbtfile["Data"]["DayTime"])) % 24000) < 12000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <time.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char** argv) { | |
if (argc == 1) { | |
fprintf(stderr, "USAGE: %s [options]\n", argv[0]); | |
return 1; | |
} | |
srand(time(NULL)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
print "Content-Type: application/json" | |
from nbt import * # https://github.com/twoolie/NBT | |
import json | |
nbtfile = nbt.NBTFile("/complete/path/to/world/data/scoreboard.dat", 'rb') | |
deaths=dict() | |
for tag in nbtfile["data"]["PlayerScores"]: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <event.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <limits.h> | |
#include <sys/inotify.h> | |
static void displayInotifyEvent(struct inotify_event *i) | |
{ | |
printf(" wd =%2d; ", i->wd); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.mac2vendortest; | |
import android.os.Bundle; | |
import android.app.Activity; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.IntentFilter; | |
import android.widget.TextView; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
screen -DRR -p 0 -S radio -X eval 'stuff \"m\"' |