Skip to content

Instantly share code, notes, and snippets.

Springboot project structure recommentation

config - class which will read from property files

cache - caching mechanism class files

constants - constant defined class

controller - controller class

@mastropinguino
mastropinguino / analyze_adb_diskstats.py
Last active September 28, 2026 15:34
Notes and tricks about random stuffs.
import re
import sys
# 1st arg is filename
FILENAME=sys.argv[1] if len(sys.argv) > 1 else None
if FILENAME is None:
print('No filename provided')
sys.exit(-1)
// Source: http://unix.stackexchange.com/a/251769/17594
// Modifications: long long, exit codes, diagnostics
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <sys/ptrace.h>
#include <sys/socket.h>
#include <arpa/inet.h>
@mastropinguino
mastropinguino / NOTES.md
Last active November 30, 2017 11:34
Linux server configuration notes

Linux server configuration notes

apt-get purge exim4-config

apt-get install dstat lsof htop vim unzip strace sudo screen
apt-get install virtualenv python-pip python-dev supervisor

vim

@mastropinguino
mastropinguino / gist:7975645
Created December 15, 2013 17:24
Business Process Management
http://workflowpatterns.com/