\353\252\251\353\217\231\354\204\234\353\262\204
import codecs
s = b'\353\252\251\353\217\231\354\204\234\353\262\204'
print(codecs.decode(s))
$ python c.py
목동서버
#include
#include
#include
#include
static char* datetime(char * buf)
{
struct timeval tv;
time_t nowtime;
struct tm *nowtm;
char timestrbuf1[64]; timestrbuf1[0] = 0x0;
gettimeofday(&tv, NULL);...
더 쉬운 방법이 있는지 고민하지 말고 그냥 실행
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
REF.
char* getBlkStatData() {
char *fcontent = NULL;
FILE* fp = fopen("/tmp/instance.stat", "r");
fseek(fp, 0, SEEK_END);
long size = ftell(fp);
fseek(fp, 0, SEEK_SET);
fcontent = (char *)malloc(size);
fread(fcontent, 1, siz...
Usage:
# journalctl -fu {service name}
Example:
# journalctl -fu ntpd
-- Logs begin at Fri 2020-01-17 07:53:02 KST. --
Feb 24 19:35:47 SBC1-1 ntpd[25165]: Listen normally on 9 lo ::1 UDP 123
Feb 24 19:35:47 SBC1-1 ntpd[25165]: Listen normally...
Grav was with by Trilby Media.