Skip to content

Instantly share code, notes, and snippets.

View sdieunidou's full-sized avatar
🏠
Working from home

Seb sdieunidou

🏠
Working from home
View GitHub Profile
@sdieunidou
sdieunidou / gist:7f4502ed2d8810e7a39317418c9adefb
Created August 9, 2018 13:30 — forked from httpdss/gist:948386
Mysql general log parser
#!/usr/bin/perl
use strict;
use Data::Dumper;
use Getopt::Long;
# author: Gavin Towey, 2008 [email protected]
# todo, add "follow thread" capability
# so we can give a process name or thread id & see
# all activity in sequence for each thread
@sdieunidou
sdieunidou / hytale-api.php
Last active May 1, 2019 18:02
hytale-api.php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ArticlesApi();
try {
// get latest articles
$result = $apiInstance->getArticles();
print_r($result);
@sdieunidou
sdieunidou / hytale-api.java
Last active April 29, 2019 15:33
hytale-api.java
public class ArticlesApiExample {
public static void main(String[] args) {
ArticlesApi apiInstance = new ArticlesApi();
try {
// get latest articles
List<Article> result = apiInstance.getArticles();
System.out.println(result);
// show article
@sdieunidou
sdieunidou / hytale-api.js
Last active April 29, 2019 15:30
hytale-api.js
var HytaleApi = require('hytale-api-sdk');
var api = new HytaleApi.ArticlesApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
console.log(data);
}