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 / life-tricks.md
Last active March 22, 2024 17:35
Notes and tricks about random stuffs.

Change hostname / user after VM clone

Step1. change hostname

  1. edit /etc/hostname
  2. edit /etc/hosts
  3. run hostname -F /etc/hostname
  4. check the new hostname running hostname command

NOTICE: Renaming user needs to login as root, for doing this you can:

  1. add root password sudo passwd root
// 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/