BestXTools
好工具周刊(第 12 期): Hoppscotch, Blob Animation, Svg Wave, Array Builder, MBTI, ...
发现并分享有趣,有创意,免费、好用的工具,每周四发布。由 BestXTools 创作。
上一期内容 | 下一期内容 | 往期内容 | RSS 订阅 | 邮箱订阅 | 微信订阅 | 工具推荐 | 评论
Image from Pixabay
大家好,两周前,好工具周刊迎来第一个里程碑,周刊第 10 期更新了,在那一期简单写下了对于这个周刊的思考。
今天又迎来了第二个里程碑,截止 2022/5/11 23:59:59,好工具周刊在竹白平台的订阅数破 1000 了 🎉…
HackerPie
Split logs automatically every day
Related resource(s):
“linuxcommand: logrotate”:http://linuxcommand.org/man\_pages/logrotate8.html logrotate is designed to ease administration of systems that generate large numbers of log files. Normally, logrotate is run as a daily cron job.
Some important knowledges:
Any number of config files may be given. Later config files may override the options given in earlier files, so the order in which the logrotate config files are listed in is important. Normally, a single config file which includes any other config files which are needed should be used. If a directory is given, every file in that directory is…
HackerPie
Write css codes distinct from different pages
In rails, there is normally a view corresponding to an action. So if you want to do some special styles based on different pages, you can render controller name and action name in your layout file like this:
<body class="#{controller_name} #{action_name}">
<!-- Render something -->
</body>
Let’s assumpt that your current page controller is ProductsController, and your action is index, then you can write your style codes like:
.products.index {
/* some styles */
}
HackerPie
Failed to stop or restart Nginx server through serevice command
Many people are accustomed to start a Nginx web server through init scripts and then they can control the state of the server through service command, such as sudo service nginx restart. But sometimes unobvious config error makes the scripts failed to work. Here I will show an error related to pid directive in the config file of nginx, which defaultly located at /opt/nginx/conf/nginx.conf. As ignored by many people, some init scripts assump there is a pid file of nginx located at /var/run/nginx.pid, but in the fact, the default pid file for nginx…
HackerPie
Rails HTTP Status Code to Symbol Mapping
Sometimes you might need to set the HTTP response head with different status to specify the different handled results. You can do this in Rails by add a :status to a rails method such as #respond_with. Here list all the maps:
https://gist.github.com/ktkaushik/2405434
Addtionally, you can view all these on your local machine by installing the gem cheat, and see all status codes using command cheat status_codes.
All these informations come from internet, the codes file comes from ktkaushik’s gist and other information comes from Cody Fauser’s post
BestXTools
好工具周刊(第 13 期): uiverse.io, Neumorphism, cssbuttons, AutoDraw, 网名在线生成器, ...
发现并分享有趣,有创意,免费、好用的工具,每周四发布。由 BestXTools 创作。
上一期内容 | 下一期内容 | 往期内容 | RSS 订阅 | 邮箱订阅 | 微信订阅 | 工具推荐 | 评论
Image from Pixabay
🌈 在线工具
uiverse.io - Universe of UI elements made with HTML & CSS
非常好看的 UI 组件库,全部由 HTML & CSS 制作,代码可以免费复制拿去使用。原名 cssbuttons.io
链接: https://uiverse.io/
Neumorphism/Soft UI CSS shadow generator
新拟物风格 (Neumorphism) CSS 生成器。了解更…
BestXTools
好工具周刊(第 14 期): GitHub Profile Page Creator, CodeCaptcha, Q.Link, ASCII banners
发现并分享有趣,有创意,免费、好用的工具,每周四发布。由 BestXTools 创作。
上一期内容 | 往期内容 | RSS 订阅 | 邮箱订阅 | 微信订阅 | 工具推荐 | 评论
🌈 在线工具
GitHub Profile Page Creator
一款在线帮助你生成漂亮的 GitHub 个人主页的工具。
链接: https://github-profile-page-creator.netlify.app/
源码: https://github.com/iamsatyajit05/GitHub-Profile-Page-Creator
CodeCaptcha.io
程序员专用链接分享工具,访问者必须完成随机的编程问题,才能访问你的秘密链接。分享程序员简历,活动邀请、资源…
BestXTools
好工具周刊(第 15 期): GitHub Profile Header Generator, Curl UI, Instant Domain Search, Domcomp, 多地 ping、网络延迟测试, 巴别英语, DAREBEE
发现并分享有趣,有创意,免费、好用的工具,每周四发布。由 BestXTools 创作。
上一期内容 | 往期内容 | RSS 订阅 | 邮箱订阅 | 微信订阅 | 工具推荐 | 评论
🌈 在线工具
GitHub Profile Header Generator
一款在线制作 GitHub 个人主页图片的工具。
链接: https://leviarista.github.io/github-profile-header-generator/
源码: https://github.com/leviarista/github-profile-header-generator
Curl UI
一款在线构建 curl 命令参数的工具。
链接: https://www.webutils.app/curl-web-ui
Instant Domain Search
一款方便好用的可注册…