服务内容

程序开发设计 专业团队 技术范围:PHP,Go,Python,C/C++,JavaScript等 服务内容:系统设计,网站建设,服务集群搭建,数据

Install Snap on Centos7

问题 在Centos7系统上安装snap,遇到的问题记录 1 2 3 4 5 6 7 8 9 10 [centos@ip-172-26-6-67 ~]$ sudo snap install core error: system does not fully support snapd: cannot mount squashfs image using "squashfs": ----- mount: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or

Deploy Hugo on Github Page

Hugo is a framework written with Golang for building website. I told my wife I wrote something on my blog. After heard that, she said she wants to build a blog and start writing. So I spent a few hours on setting up a local hugo site and deployed it on Github pages. Here are all the thing you need to do: A github account, if you didn’t have one, you need to sign up Git installed on your local machine Install hugo Head over to GitHub and create a new public repository named username.

Build your own tools

背景 从拥有自己的第一台电脑至今,由于工作或其他原因,我已经换过好几台电脑。每一次拿到新电脑的第一件事,就是安装各种软件以及配置开发环境。手动

A tool for testing server

让我们来对服务器做一下压力测试吧! 本篇文章讲一下压力测试应该怎么做,压力测试过程中需要注意哪些指标,以及需要注意的事项。 首先,我们要清楚我们

Gdb

This article keep tracks of the most used commands of GDB Write a classic C program with your favoriate editor and save it as main.c. 1 2 3 4 5 #include <stdio.h> int main(int argc, char *argv[]) { printf("Hello world\n"); } Compile it with gcc, which is a popular c/c++ compiler on linux. 1 gcc -o main -g main.c Debug with gdb 1 gdb main // gdb programname -p [pid] 1 2 3 4 (gdb) b main // set breakpoint (gdb) layout src // gui (gdb) p // print p/x hex (gdb) i b // list all breakpoints, you can list other info 1 2 3 4 5 6 7 8 9 10 11 12 13 ┌─test.

Vim

前言 本文记录“玩”Vim的经验,学习Vim是一件起步很困难的事,但是当你稍微熟悉它的操作模式之后, 会对它爱不释手。 学习,或者换句话说,玩Vi

Shell

Learn a shell a day, master Unix one day! Pipe Process read previous process’s output as its input and generate output to next process’s input. Use symbol | to create a pipeline, which a powerful skill in Unix. 1 2 // count the numbers of text file in current directory. ls -la | grep *.txt | wc -l Xargs Many programs, takes its arguments from the command line (char *argv[]) but ignores standard input fd 0.

C Programming Language

The C Programming Language is the best textbook for a beginner who wants to learn C. This article mostly talks about pointers and memory in C. C’s syntax is simple but handling pointers in C is too easy to get stuck. Primitive data types and sizes char, int, float, double signed, unsigned, short, long constant 1 2 3 printf("%u\n", sizeof(int)); printf("%u\n", sizeof(char)); printf("%u\n", sizeof(float)); Array Array is a continuous fixed-length address.