Skip to content

Instantly share code, notes, and snippets.

View agseco's full-sized avatar

Alejandro Garcia Seco agseco

View GitHub Profile
@agseco
agseco / java-format-profile-vs-code.xml
Created May 23, 2025 12:35
Playtomic Java format profile for VS Code
<?xml version="1.0" encoding="utf-8"?>
<profiles version="21">
<profile kind="CodeFormatterProfile" name="PlaytomicJavaStyle" version="21">
<setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="space"/>
<setting id="org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/>
<setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/>
<setting id="org.eclipse.jdt.core.formatter.text_block_indentation" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header" value="true"/>
@agseco
agseco / json-to-files.js
Created June 17, 2019 07:25
JSON stream to multiple files
'use strict';
const fs = require('fs');
const path = require('path');
const { Writable } = require('stream');
class JSONToFiles extends Writable {
constructor (options, params) {
super(options);
@agseco
agseco / logrotate.md
Created May 28, 2018 10:13
Logrotate - Configuration to rotate hourly

/etc/cron.hourly/logrotate

#!/bin/sh

/usr/sbin/logrotate /etc/logrotate.hourly.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
    /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit 0

Keybase proof

I hereby claim:

  • I am agseco on github.
  • I am agseco (https://keybase.io/agseco) on keybase.
  • I have a public key whose fingerprint is B2BF C592 A547 2A79 DFAE 28A9 DDBC 1361 E9D1 73B2

To claim this, I am signing this object: