Skip to content

Print the alphabet in bash

I would like help with the following algorithm in bash (or anything accessible through bash shell): I give a number to some function, and based on that number I obtain a string of alphabet letters. Example: I do not wish to occupy more memory than I need, so approaches such as for i in {A..Z} or echo {A..Z} o…

Install Play! with activator on linux

I’m new with the framework Play! and Linux and I’m trying to install Play! scala. I’m following the official tutorial (official play! tutorial) But I have this problem : when I run this command : $ activator new my-first-app play-scala I have this warning : And when I run sudo apt-get instal…

convert images to pdfs in subdirectories

I have a bunch of sub-folders with images in them. I am trying to recursively convert them into pdf files using the directory names as the pdf name. With the help of some Google searches I tried using this script I wrote: It did not work. How can I get this to work? Each folder has several .JPGs in it

How to clean up masscan output (-oG)

I have a problem with the output produced by the masscan utility with the -oG options (“grep-able” output); for instance, it outputs this: The above is neither very readable nor easy to understand. How can I use Linux command-line utilities, e.g. sed, awk, or grep, to output something as follows, …

bundle install not running from my post-update hook

I’ve setup a post-update hook for my project. I have a bare repository (/var/git/myproject) which I push to, and a live repository (/var/www/myproject) where my app is running. I also included bundle install and bundle exec rake db:migrate to install gems and update db. Below is my post-update hook When…

scons still failed after setup env

I am using scons 1.2 on Centos 5, with devtoolset-1.1, devtoolset-1.1 root path locate at /opt/centoss/devtoolset-1.1/. I added devtoolset binary path to PATH variable, this is what I have everything look good, then I try to make a simple C program using scons I follow the guide at http://www.scons.org/doc/1.…

Why doesn’t PHP include work on my Raspberry Pi?

So I’m very new to Linux and I just bought a Raspberry Pi to serve as my webserver and I noticed the following lines, with the location var/www/mysite/index.php, doesn’t work properly: I don’t even get any errors or warnings, just a blank page showing “Hello1”, even though I have…