Skip to content

Jenkins API response tuning

We have built a dashboard on top of Jenkins which enables users to see only jobs relevant to the project and also trigger a build. The UI is built using reactJS and the backend is JAVA REST WebServices. WebService calls the Jenkins api to fetch Job information and converts the data to JSON for feeding the UI.…

How to stop nginx from using port 80

I’m trying to update nginx using sudo apt-get install nginx, but it is giving me an error message related to port 80 being occupied. When I run I get Although I wasn’t able to easily understand what each column means from the –help function, I suppose that in this example 6845 is the process…

What does “file system outputs” mean with time -v?

What is ‘file system outputs’ counting when using the Linux ‘time’ command with dd? It doesn’t equal dd ‘count’ (presumably the number of calls to fwrite?), nor the size of the output in 4096-byte pages (which should be 1024000 in this example). An example: Answer The…

df –total command for mac?

I want to use command line to retrieve the total disk space on a machine as one value. On most Linux machines, the “df –total” returns such a value at the end of the regular df output. On osx9, 10, 11, and 12, there seems to be no option like this. Same issue with older linux os, redhat5, ce…

inotify_add_watch relative to O_PATH dirfd

I am trying to call inotify_add_watch to watch a file. I would like to specify the file relative to an O_PATH | O_DIRECTORY file descriptor, a la symlinkat, fstatat, or openat. Is this possible? It doesn’t look like it is. Anyone know of a workaround? EDIT The closest thing seems to be the “trick&…

Sendto returning random values

I call sendto in my udp socket client side like this: but there seems to be no nothing received at the server side and in very strange fashion, num_w, when printed out, gives values like: -197379208 -1440076936 2054978424 And perror() displays “success” Client code up till that point: Thanks so mu…

CentOS 7 can not start

I have CentOS 7. CentOS can not start. Output: Answer your initrd has problem. you should attention about all these : 1.you have no initrd on /boot. 2.your bootloader dose not have any line to describe initrd to run kernel on ram. 3.maybe your file systems have some thing wrong. make sure about MBR, bootfs(/b…