This file contains 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.company; | |
import javax.management.MBeanServer; | |
import java.lang.management.ManagementFactory; | |
import java.lang.reflect.Method; | |
public class Main { | |
This file contains 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.company; | |
import javax.management.MBeanServer; | |
import java.lang.management.ManagementFactory; | |
import java.lang.reflect.Method; | |
public class Main { |
This file contains 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.company; | |
import com.sun.management.OperatingSystemMXBean; | |
import java.lang.management.ManagementFactory; | |
public class Main { | |
public static void main(String[] args) throws InterruptedException { | |
OperatingSystemMXBean OS_BEAN = ManagementFactory.getPlatformMXBean(OperatingSystemMXBean.class); | |
for (int i = 0; i < 5; i++) { |
This file contains 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
// ==UserScript== | |
// @name Reddit: add top buttons | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @author Vojtech Krasa | |
// @match https://*.reddit.com/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
"use strict"; |