Skip to content

Instantly share code, notes, and snippets.

View vittodevit's full-sized avatar
🥁
:)

Vittorio Lo Mele vittodevit

🥁
:)
View GitHub Profile
/*
AUTORE: Vittorio Lo Mele
DATA: 19/11/2020
DESCRIZIONE: Programma per l'apertura automatica dei link delle videolezioni
in base all'orario del computer.
FORMATO CSV ORARIO PER RIGA: Giorno Settimana,Ora Inizio in secondi,Ora fine in secondi,link
ESEMPIO RIGA: LUN,29100,32100,https://example.com
*/
#include <iostream>
#include <fstream>
@vittodevit
vittodevit / restful_empirefactions.php
Created October 13, 2020 21:11
Verifica player per EmpireFactions.tk
<?php
//RESTful Player Verification API for 'empirefactions.tk'
//AUTHOR: mrBackSlash
//player verification section
//include config
require 'config.php';
//get params from request
$playername = $link->real_escape_string($_GET['ign']);
@vittodevit
vittodevit / CsmcrcExample.cs
Last active October 7, 2020 18:11
Example usage for Csmcrc library
/*THIS EXAMPLE CONNECTS TO A SERVER, SENDS A COMMAND AND DISCONNECTS*/
using System;
using csmcrc;
namespace CsmcrcExample
{
class CsmcrcExample
{
static void Main(string[] args)
{
@vittodevit
vittodevit / convert.java
Created October 6, 2020 19:09
Converts int into little-endian 4 byte array
/**
* Converts an int to a byte[]
* @param i Integer to convert
* @return byte[]
*/
public static byte[] intToByteArray (int i) {
ByteBuffer buf = ByteBuffer.allocate(4);
buf.order(ByteOrder.LITTLE_ENDIAN);
buf.putInt(i);
return buf.array();