oslon Posted December 4 Share Posted December 4 I am looking to get into shell scripting writing scripts. And I was really out of ideas. So, I am looking into python and php shell scripting project ideas. Quote Link to comment https://forums.phpfreaks.com/topic/326034-examples-of-php-scripting-projects-without-laravel/ Share on other sites More sharing options...
Barand Posted December 4 Share Posted December 4 Thanks for letting us know. 2 Quote Link to comment https://forums.phpfreaks.com/topic/326034-examples-of-php-scripting-projects-without-laravel/#findComment-1645065 Share on other sites More sharing options...
gizmola Posted December 4 Share Posted December 4 5 hours ago, oslon said: I am looking to get into shell scripting writing scripts. And I was really out of ideas. So, I am looking into python and php shell scripting project ideas. Yes, well shell scripting typically is done with features that are built into the bourne shell or bash. It is quite typical that linux packages come with scripts that utilize these features. There are also the popular unix utilities of sed and awk, which both provide a modicum of programming features. Long before Python, Perl was a popular language for scripting and is still highly performant and feature rich. Entire sites of yesteryear (the original Slashdot being the prime example) were written in perl. I do think that learning Python is a worthwhile pursuit, and in terms of its use in the scripting world, it is the foundation for the popular DevOps tool Ansible, that I use frequently to automate any number of DevOps tasks in my professional work. Quote Link to comment https://forums.phpfreaks.com/topic/326034-examples-of-php-scripting-projects-without-laravel/#findComment-1645068 Share on other sites More sharing options...
oslon Posted December 5 Author Share Posted December 5 I mean I want project ideas. Quote Link to comment https://forums.phpfreaks.com/topic/326034-examples-of-php-scripting-projects-without-laravel/#findComment-1645081 Share on other sites More sharing options...
Olumide Posted December 5 Share Posted December 5 52 minutes ago, oslon said: I mean I want project ideas. You can create a script that pulls weather data from a public API and displays the current weather for your location or any given city. Quote Link to comment https://forums.phpfreaks.com/topic/326034-examples-of-php-scripting-projects-without-laravel/#findComment-1645082 Share on other sites More sharing options...
gizmola Posted December 5 Share Posted December 5 16 hours ago, oslon said: I mean I want project ideas. Scripting is typically employed to solve problems that you have. What is something you do that is repetitive and you'd like to automate? Is there information you would like to gather, or data to convert or visualize? These are questions you need to be asking yourself, and project ideas will come to you. Quote Link to comment https://forums.phpfreaks.com/topic/326034-examples-of-php-scripting-projects-without-laravel/#findComment-1645101 Share on other sites More sharing options...
oslon Posted December 6 Author Share Posted December 6 Really nothing lol. That's why I am here. My job is to check logs of application and find out the errors. It's tough to automate it. I just deliver logs to developers. Quote Link to comment https://forums.phpfreaks.com/topic/326034-examples-of-php-scripting-projects-without-laravel/#findComment-1645121 Share on other sites More sharing options...
Solution gizmola Posted December 6 Solution Share Posted December 6 14 hours ago, oslon said: Really nothing lol. That's why I am here. My job is to check logs of application and find out the errors. It's tough to automate it. I just deliver logs to developers. Yes well that is often both a system administration/devops problem and potentially something you outsource (log analysis). There are an incredible number of SAAS companies that offer log processing and analysis products. This general area of interest is often referred to as "telemetry", which can cover things like error/exception analysis. Is your company using any of these products or services? There are tools/platforms like Grafana, Splunk or New Relic you should investigate, just as a starting point. Grafana is a service built upon open source components, so I'd suggest you start by making a free Grafana cloud account and explore the product through their demos, sandboxes and tutorials page. Often these product provide a platform to develop reporting, dashboards and analysis. If your company is not doing that, it is a great opportunity for you to lead them to that solution. There are also options to self host you can explore as in for example the ELK stack ( Elasticsearch, Logstash, and Kibana). Quote Link to comment https://forums.phpfreaks.com/topic/326034-examples-of-php-scripting-projects-without-laravel/#findComment-1645159 Share on other sites More sharing options...
oslon Posted December 8 Author Share Posted December 8 Didn't know the power of ELK stack could actually analyze the logs for you? That's crazy. I will look into it. Quote Link to comment https://forums.phpfreaks.com/topic/326034-examples-of-php-scripting-projects-without-laravel/#findComment-1645212 Share on other sites More sharing options...
oslon Posted December 11 Author Share Posted December 11 It's coming to my notice that powerful machine is required for practicing this big data stuffs like elasticsearch(ELK stack) on kubernetes. I've i5.7th gen laptop and I am only able to just start the cluster, the other stuffs justdon't run properly. Quote Link to comment https://forums.phpfreaks.com/topic/326034-examples-of-php-scripting-projects-without-laravel/#findComment-1645632 Share on other sites More sharing options...
gizmola Posted December 17 Share Posted December 17 On 12/11/2024 at 5:46 AM, oslon said: It's coming to my notice that powerful machine is required for practicing this big data stuffs like elasticsearch(ELK stack) on kubernetes. I've i5.7th gen laptop and I am only able to just start the cluster, the other stuffs justdon't run properly. Certainly you are pushing the limits on a workstation with a processor that was released 12+ years ago. With that said, my guess is that you might have limited memory available? Rather than trying to use Kubernetes, you should try this image: https://github.com/deviantony/docker-elk It comes with a docker-compose.yaml file, so you basically just "docker compose up". They indicate that you need 1.5gb available, which is not an unusually large amount of memory, considering you are running 3 orchestrated containers. If your workstation is highly constrained on memory, then virtualization of any kind is probably going to be somewhat slow and potentially not very enjoyable. With that said, I did an awful lot of work in vm's using vmware workstation, virtualbox, vagrants etc, on machines back in the i5/i7 era. Quote Link to comment https://forums.phpfreaks.com/topic/326034-examples-of-php-scripting-projects-without-laravel/#findComment-1646013 Share on other sites More sharing options...
Moorcam Posted 23 hours ago Share Posted 23 hours ago Here's one simple script that fetches news from a news website. #!/bin/bash # Define the URL of the local news channel NEWS_URL="https://www.localnewschannel.com" # Fetch the HTML content of the news page HTML_CONTENT=$(curl -s "$NEWS_URL") # Extract the headlines using grep and sed HEADLINES=$(echo "$HTML_CONTENT" | grep -oP '(?<=<h2 class="headline">).*?(?=</h2>)') # Display the headlines echo "Latest News Headlines:" echo "$HEADLINES" There's an idea. Quote Link to comment https://forums.phpfreaks.com/topic/326034-examples-of-php-scripting-projects-without-laravel/#findComment-1646580 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.