Source files of http://bencane.com.
Includes:
- Blog Articles
- Dockerfile - For building a docker image
Source files from my Linux Sysadmin Blog
Home Page: http://bencane.com
Source files of http://bencane.com.
Includes:
Hi Benjamin,
I've read your your recent post/slides "How I Structure Go Packages" and I'd like asking about logging implementation.
I faced with necessity of logging implementation in my tiny app/package but due to lack of skills don't know how to do that in a right way.
Could you provide some real world examples (from Golang standard library or something else) where logging is implemented in a way mentioned in the post.
I also create a SO question, where I asked the same question.
I'd be very appreciated if you could point me to a right example.
P.S. I'm sorry that I created an issue which is not directly related to this repo, but I have not found any other your contacts ))) I'm not Twitter/Linkedin user.
Hi Ben - you have a really nice template. can you please share how you've created your blog, where you've hosted it, and how you've come up with this "Stories" thing, since I couldn't find it on papermod
Thanks
Vipul
Hi Benjamin!,
First of all, nice article!
Btw., I found the conclusion a little bit missleading and wanted to note and ask a few things for clarification:
You wrote earlier in the article:
The difference is simple, the
/etc/profile
is executed only for interactive shells and the/etc/bashrc
is executed for both interactive and non-interactive shells.
Thus, interactive shells use /etc/profile
and /etc/bashrc
while non-interactive shells only use /etc/bashrc
.
Later on in the conclusion you state:
In my case the applications child processes are not recognizing the umask value set in /etc/profile but do recognize the value in /etc/bashrc. This tells me that the subprocess is starting as a non-interactive shell.
The umask of /etc/bashrc
simply overrides the umask from /etc/profile
as if you call umask twice on the command line.
While the suggested route of modifying environmental variables is to add a shell script into
/etc/profile.d
in my case it is better to set the umask value in the/etc/bashrc
.
Why is it better to set environmental variables in /etc/profile.d
?
Wouldn't this conclude in not having all environment variables set for non-interactive shells?
Sry for the long post.
Kind regards,
pocketbroadcast
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.