installing HPE StoreOpen Software for RHELx64 to Ubuntu 20.04.2 LTS.
Reference: https://rabbit-note.com/2020/01/12/ubuntu-ltfs/
https://h20392.www2.hpe.com/portal/swdepot/displayProductInfo.do?productNumber=SOS_RHELx64
$ ls| use std::cell::RefCell; | |
| use std::cmp::max; | |
| use gtk::gdk::{EventMask, EventMotion, WindowAttr, WindowType, WindowWindowClass, RGBA}; | |
| use gtk::{gdk, glib, pango, Allocation, Buildable, Misc, StateFlags, Widget}; | |
| use gtk::cairo::{Context, FontSlant, FontWeight}; | |
| use gtk::glib::Propagation; | |
| use gtk::glib::Propagation::Proceed; | |
| use gtk::pango::Weight; | |
| use gtk::prelude::{StyleContextExt, StyleContextExtManual, WidgetExt}; | |
| use gtk::subclass::prelude::{ObjectImpl, ObjectSubclass, ObjectSubclassExt, ObjectSubclassIsExt, WidgetClassSubclassExt, WidgetImpl}; |
| use std::cell::RefCell; | |
| use glib::{ParamFlags, ParamSpec, ParamSpecString, Propagation, Value}; | |
| use glib::once_cell::sync::Lazy; | |
| use glib::Propagation::Proceed; | |
| use glib::subclass::prelude::ObjectSubclassExt; | |
| use gtk::prelude::*; | |
| use gtk::{gdk, Allocation, Application, ApplicationWindow, Widget}; | |
| use gtk::cairo::Context; | |
| use gtk::gdk::{EventMask, WindowAttr, WindowType}; | |
| use gtk::subclass::prelude::{ObjectImpl, ObjectSubclass, WidgetImpl, WidgetImplExt}; |
| public class MyEventHandler implements Listener { | |
| @EventHandler | |
| public void onJoin(PlayerJoinEvent event) throws NoSuchFieldException, IllegalAccessException { | |
| Player player = event.getPlayer(); | |
| //Craft Player (NMS varient of player) | |
| EntityPlayer nmsPlayer = ((CraftPlayer) player).getHandle(); | |
| //Get connection | |
| ServerCommonPacketListenerImpl connection = nmsPlayer.c; |
| public class MyEventHandler implements Listener { | |
| @EventHandler | |
| public void onJoin(PlayerJoinEvent event) throws NoSuchFieldException, IllegalAccessException { | |
| Player player = event.getPlayer(); | |
| //Craft Player (NMS varient of player) | |
| EntityPlayer nmsPlayer = ((CraftPlayer) player).getHandle(); | |
| //Get connection | |
| ServerCommonPacketListenerImpl connection = nmsPlayer.c; |
| public static char[] numberToByteArray(int number) { | |
| int numDigits = getNumDigits(number); | |
| char[] charArray = new char[numDigits]; | |
| for (int i = numDigits - 1; i >= 0; i--) { | |
| charArray[i] = (char)('0' + number % 10); | |
| number /= 10; | |
| } | |
| return charArray; | |
| } |
| import javax.crypto.Cipher; | |
| import javax.crypto.NullCipher; | |
| import javax.crypto.ShortBufferException; | |
| import java.io.EOFException; | |
| import java.io.FilterInputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| public class CipherInputStream extends FilterInputStream { |
installing HPE StoreOpen Software for RHELx64 to Ubuntu 20.04.2 LTS.
Reference: https://rabbit-note.com/2020/01/12/ubuntu-ltfs/
https://h20392.www2.hpe.com/portal/swdepot/displayProductInfo.do?productNumber=SOS_RHELx64
$ ls| <?php | |
| class JWK { | |
| public static $curveOID = '06082a8648ce3d030107';//'1.2.840.10045.3.1.7'; | |
| private $jwk; | |
| function __construct(){ | |
| } | |
| public function create($jwk = null){ |
| #include <stdio.h> | |
| #include <string.h> | |
| typedef struct { | |
| char *protocol; | |
| char *host; | |
| char *path; | |
| int port; | |
| } URL; |
| public static void main(String[] args){ | |
| try{ | |
| DatagramSocket s = new DatagramSocket(); | |
| byte[] b = new byte[10]; | |
| DatagramPacket p = new DatagramPacket(b, b.length, InetAddress.getLocalHost(), 8000); | |
| s.send(p); | |
| p = new DatagramPacket(new byte[65535], 65535); | |
| s.receive(p); |