I have Apache 2.4 running on CentOS 7. SE Linux is enabled. The application uses Laravel (Lumen), and connects to MongoDB on another server. All our servers are in Google cloud.The applications fails to load the web page and lumen.log has errors like this lumen.ERROR: MongoDBDriverExceptionConnectionTimeoutEx…
Tag: linux
Reference assemblies for framework “.NETFramework,Version=v4.7.1” were not found
I try to open a Unity3D project with VSCode under Linux (Ubuntu 18.10). The omnisharp extension doesn’t load the project, saying assemblies were not found. It may seems very stupide, but i’m not really used to .Net yet, and i have been stuck with this error for quite some days now. I have been try…
Interleave lines sorted by a column
(Similar to How to interleave lines from two text files but for a single input. Also similar to Sort lines by group and column but interleaving or randomizing versus sorting.) I have a set of systems and tasks in two columns, SYSTEM,TASK: I want to distribute the tasks to each system in a balanced way. The id…
changing two lines of a text file
I have a bash script which gets a text file as input and takes two parameters (Line N° one and line N° two), then changes both lines with each other in the text. Here is the code: It works fine for every two lines which are not consecutive. but for lines which follows after each other (for ex line 5
Apparent invocation of macro not resolved in sas filename pipe
I am using the following SAS code to find all files and their sizes under the directory &directory. Though the output data tmp is what I want, the code will give me warning. WARNING: Apparent invocation of macro S not resolved. I have tried adding an extra ‘%’ before ‘%’, i.e. but …
Bash for loop with Parenthesis working in linux and not in Git Bash
i have simple bash loop which is working fine in linux and not in local Git Bash which based on cygwin in windows i have this for loop : in Git Bash it gives me this error : linux version of bash Amazon Linux version 20xx.0x is available. [user1 ~]$ bash –version GNU bash, version 4.2.46(2)-release (x86…
How to zoom in and zoom out terminal console in linux
I am able to zoom in the Ubuntu Terminal by Pressing Ctrl – Shift and ++ . But I donot know how to zoom out the Ubuntu Terminal. Is there any short-cuts available for doing so? Answer Try this following method: Zoom In : Ctrl+Shift++ Zoom Out: Ctrl+- Zoom 100%: Ctrl+0 Hope this helps!
Why does zsh not autocomplete custom created scripts when bash does?
I have a custom created script to change my apt sources in /home/USERNAME/Scripts. I have added this path to the secure_path variable in /etc/sudoers. When I use bash to run my script as sudo it autocompletes just fine, but when using zsh it does not. Answer Because zsh doesn’t have autocompletion witho…
Ruby: graphical-user interface tk on linux ubuntu don’t work
I tried installing the tk GUI for Ubuntu ruby With the command: But the command does not work. What can I do? Answer Hey I ran into this same thing recently while porting the Princeton Standard library to ruby tk standard_draw_tk First make sure libaries are installed Now you need to soft link the libaries No…
How to gracefully shutdown a Go service running on Kubernetes
I have an API written in Go that has been Dockerised and runs in a Kubernetes cluster on GKE. At the moment my API server does not handle any shutdown scenarios such as a Pod dying or being purposefully brought down. What set of UNIX signals should I expect to trap to gracefully shutdown the server and what c…