Quick technical notes, one-liners, and short posts on Linux, DevOps, and open source tools.
-
Show Docker container logs
—
How to check Docker compose logs from the host -
How to use awk to print text string between characters
—
How to print a specific string of text that is between specific characters -
build-essential in Arch Linux
—
What is the equivalent to build-essential in Arch Linux -
How to upgrade CentOS to 8.1
—
How to upgrade to CentOS 8.1 -
How to upgrade Middleman to the latest stable version
—
How to upgrade Middleman to the latest stable version on Ubuntu -
How to edit files with Notepad++ on WSL Linux
—
How to edit files with Notepad plus on WSL, Ubuntu on Windows 10 -
How to shutdown or reboot Linux
—
How to reboot or turn off a Linux powered computer, server or workstation, works on laptops too. -
Copy Files on Linux and BSD (cp command with examples)
—
How to copy files on Linux or BSD like systems (Mac OS X, FreeBSD) from one location to another on same computer -
Change permissions recursively in Linux or BSD
—
How to change permissions to files recursively for Owner, Group and Other the easy way -
Nginx send 404 to backend
—
How to redirect all 404 errors to backend on Nginx so an application can take care of those errors -
Make MySQL listen on other interfaces
—
How to make MySQL bind all network interfaces and not only localhost, so it can be accessed from the external network -
Using apt-cache to search for packages
—
How to search and find packages on Ubuntu or Debian using apt from command line -
Optimize jpg and png for your website
—
How to compress and optimize jpeg or jpg and png files for fast loading websites -
Make Firefox wrap html pre tags
—
How to make Firefox to wrap PRE html tags -
Installed packages on Ubuntu
—
How to list all installed packages in Ubuntu or Debian -
How to clean up MySQL
—
How to clean MySQL from unused databases and users -
Add options to an installed package in FreeBSD
—
How to compile software from ports in FreeBSD with more option when it was already installed -
Install Nginx on FreeBSD
—
How to install Nginx on FreeBSD -
Latest version of Jekyll on Ubuntu
—
How to install the lastest version of Jekyll on Ubuntu -
MySQL select from where multiple conditions
—
SELECT FROM WHERE in MySQL with multiple conditions -
MySQL SELECT FROM range of dates
—
MySQL Select From Range of Dates -
VirtualBox Guest Additions for Ubuntu
—
How to install VirtualBox Guest Additions in Ubuntu -
Import csv file into MySQL table
—
How to import csv file data into MySQL database -
Test Apache and PHP configuration with php info script
—
How to test PHP and Apache server with phpinfo script -
Remove M characters with vim
—
“Get rid of M characters of text files with vim" -
Insert lines in files with sed
—
Insert lines to files with sed editor -
Replace with sed
—
Replace words in files with sed -
Hide commands from bash history
—
“How to type commands in shell and prevent them from being logged or recorded on bash history" -
Forgot to enter sudo
—
“How to insert sudo in front of commands when you have already run it" -
Flush Postfix Queue
—
How to flush the queue of Postfix MTA and free all emails not already sent -
Show the Contents of a File in a Unix-like Terminal
—
“How to show the contents of a file under Linux or any other Unix like system like Mac OS X” -
Compiling C programs on Linux
—
“How to compile and run programs written in C on Ubuntu or Debian Linux” -
List Members of a Group in Linux
—
“How to know the users that belongs to a group in Debian or Ubuntu Linux” -
Installing .deb files in Ubuntu and Debian
—
How to install a .deb file in Ubuntu, Debian, Mint or any other Debian-based distribution using apt or dpkg -
Changing Password
—
“How to change the password of the current user or another user in Unix like systems. Linux or Mac OS X” -
Outlook 2011. Show Full Headers
—
How to show full headers of email in Outlook 2011 on Mac OSX -
Wget. Resume, limit rate and run it in background
—
How to run wget in background, limit rate and continue broken or interrupted downloads -
Resume interrupted downloads with wget
—
How to resume a broken download, and continue downloading the file from the place it was interrupted -
How to limit wget download rate
—
Limit wget download rate, so others can share the bandwidth in your home of office, otherwise wget will use all it can -
Solved. 'Warning: Creating default object from empty value in wordpress'
—
Solved PHP, Wordpress error 'Warning: Creating default object from empty value in wordpress' -
Backup git bare repository
—
How to backup a bare git repository over ssh on another server automatically and periodically -
Recursively count files
—
How to count files recursively in a folder when you are using BSD, Linux or Mac OS X -
FreeBSD. Change pkg_add source
—
How to change FreeBSD pkg_add ftp source site, and also the folder where it looks for packages -
How to switch to root using su on FreeBSD
—
Switch to root using su when working with FeeBSD, access root account -
Environment set and display Freebsd
—
Environment settings on FreeBSD, set and get, display the vealue of a environment variable -
Delete spaces from filenames
—
How to delete spaces in filenames in Linux or Mac, actually Unix kind operating systems -
Delete or drop MySQL database tables
—
How to delete or drop one or more tables from MySQL database, using mysql interactive shell or command line -
Static custom 404 page, Nginx and Apache
—
How to create custom 404 pages for static web sites, for both Nginx and Apache web server -
Remove vim and emacs backup files. Endind with hash or tilde ~
—
Delete files ending with hash or ~ tilde. Vim or Emacs backup files. Here is how to get rid of those files -
How to install gsl ruby gem on Ubuntu
—
How to install gsl ruby gem on Ubuntu. gsl gem is needed for example to run jekyll with lsi option, to generate better related posts -
PostgreSQL server for Django applications under Ubuntu
—
In case you have a Django application needing a PostgreSQL server, you can use this to install it under Ubuntu server -
Invalid command 'Header' .htaccess file
—
Solved. Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration -
Upgrade Ubuntu over ssh. Using terminal and screen
—
How to upgrade, Ubuntu to a new version using the terminal and ssh connection -
How to undo 'git add' command, before commit
—
Undo _git add_ command before commiting the changes -
GNU Emacs spell check
—
How to spell check on emacs for Linux or Mac -
Resize mp4 video, convert to ogg and upload to HTML 5 site
—
How to prepare a video to be uploaded to an HTML5 compliant site. You need to resize and convert to mp4 and ogg formats -
Rename files from uppercase to lowercase in bash
—
Bash. How to rename files from uppercase to lowercase -
Imagemagic convert resize and change quality in batch
—
Change quality and resize pictures in batch using imagemagick convert command in Linux or Mac -
Search for string recursively in all files and folders
—
How to look for a string recursively in all files using grep command line in bash for Linux or Mac OS X -
KVM, QEMU start or stop virtual machine from command line (CLI)
—
How to start or stop a KVM or QEMU virtual machine from the host command line -
Ubuntu. Two network interfaces only one for Internet the other for internal use
—
Ubuntu. Configure two network interfaces, one only for Internal resources and the other for Internet -
Ubuntu Desktop Gnome Shell or Unity proxy settings
—
How to set up proxy settings in Ubuntu Desktop. Unity or Gnome shell -
Linux. Create a file where the file name is the current date
—
How to create a file in Linux where the name or part of it is the current date and hour -
Mac OS X, Ubuntu Linux, Network traffic monitor
—
How to measure or monitor the traffic on a eth or wireless LAN interface on a Unix-like OS. Linux or Mac OS X -
htaccess file no cache
—
How to forbid or avoid your pages to be cached using htaccess and Apache -
Iptables. How to open a port to one ore more specific IP
—
How to open a port to one or more specific IP address using iptables rules -
ssh with no password, with ssh-keygen key
—
Log into ssh servers (Mac OS X or Linux) without passwords, using ssh key. How to generate them with ssh-keygen and install on the server -
Migrate MySQL database
—
how to migrate a MySQL database to a new server, or between two servers, using scp and mysqldumb -
Package libapache2-mod-fastcgi is not available. Ubuntu
—
how to install fastcgi on Ubuntu server when. cant install fastcgi ubuntu server: Package libapache2-mod-fastcgi is not available -
Ubuntu Linux: Create swap file
—
How to increase Ubuntu Linux server memory, create and add swap space with swap file -
Clone a bootable usb key
—
How to clone a bootable usb key, or copy to disk for storage. Useful to create copies of bootable usb memory -
Varnish: Do not cache 404 error pages
—
Stop Varnish cache server from caching 404 error pages. Or make it cache them for only a short period of time -
Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
—
How to solve: apache2: Could not reliably determine the server fully qualified domain name, using 127.0.1.1 for ServerName -
From Jekyll to Pelican
—
Little tools to help you switch from Jekyll to Pelican. Change YAML Front Matter to Markdown headers -
Git on Mac ignoring rename uppercase to lowercase
—
Git on Mac ignoring changes in filenames from uppercase to lowercase due to ignorcase option set to true -
How to install GeoIP with CPAN on Ubuntu
—
How to install GeoIP module with CPAN on Ubuntu Linux -
Git: Revert uncommitted changes
—
How to revert uncommitted files and folders and anything changed since last commit -
Bulk resize images and change its quality with imagemagick on Linux and Mac OS X
—
imagemagick on Linux or Mac, to resize pictures, and change quality, all files in a folder at a time -
Rename files to lower case on Linux or Mac
—
How to use bash for loop to rename files from upper case to lower case on Linux or Mac OS X -
rsync selectively copy some file type using include exclude options
—
How to use rsync to copy only certain file type, using include and exclude options -
Ubuntu: Disable daemon on startup
—
How to disable a daemon from starting at boot time on Ubuntu Linux -
Apache htaccess: Add Cache-Control header per file type
—
How to add Cache-Control header on a per file type basis -
What version of CentOS am I running
—
What version of CentOS am I running -
How to install htop on CentOS
—
How to install htop on CentOS server -
Let Wordpress users install plugins and themes without FTP credentials
—
How to install Wordpress plugins and themes without FTP credentials -
mkdir: create multiple directories in one command
—
How to create multiple directories with mkdir in one liner command -
Enable mod headers module on Apache 2
—
How to enable mod headers module on Apache2 -
Enable mod rewrite module on Apache 2
—
How to enable mod rewrite module on Apache2 -
rsync exclude files or folders
—
How to exclude file or files or folders when using rsync -
301 htaccess redirect
—
301 http redirect using Apache htaccess file -
gzip encoding with curl
—
How to enable gzip encoding with curl to check Nginx or Apache compression" -
gzip files and keep original file
—
How to gzip files and keep the original one -
How to flush or clear varnish cache
—
How to flush or clear the reverse proxy varnish cache from command line on Linux -
Search and replace in lots of files with find and sed
—
Bash one-liner replace string in lots of files. Linux and Mac -
Install Middleman blog on Ubuntu
—
How to install middleman on Ubuntu -
Installing Jekyll on Ubuntu
—
How to install Jekyll on Ubuntu -
How to install Google Chrome on Ubuntu
—
How to install Google Chrome on Ubuntu -
Installing Nvidia Drivers on Ubuntu Linux
—
How to install Nvidia drivers on Ubuntu Linux -
How to use useradd to create and administer users under Linux
—
How create and administer users on Ubuntu Linux with useradd command -
Set auto or manually installed flag for packages in Ubuntu or Debian
—
How to set or unset manually/auto installed flag on Ubuntu or Debian Linux -
Could not be synced because the sync session failed to start | iTunes
—
How to solve the -could not be synced because the sync session failed to start- problem with iPod, iPhone or iPad -
Delete all files of a given type in a folder structure in Bash, recursively
—
Linux, Unix, Mac OS X: Delete all files of a given type in a folder structure, recursively -
Delete all files in a folder structure in Bash
—
Linux, Unix, Mac OS X: Delete all files from a directory structure -
Install a Debian package (.deb file) from command line
—
How to install a .deb (Debian package) from the command line -
Debian and Ubuntu development tools installation, make gcc and others
—
How to install Debian development tools, so you can develop and compile software on Debian Linux -
Ruby Juicer: Combine / Merge and minify CSS files
—
Learning how to use ruby juicer, to merge and combine CSS files, while at the same time minify them, using yui-compressor -
md5sum on Mac OS X | check MD5 hashes
—
How to calculate MD5 hash of a file with Mac OS X | md5sum equivalent for Mac -
vim tip: How to undo and redo changes
—
How to undo changes in vim, and how to redo them too -
Check the physical status of an ethernet port in Linux
—
How to check from the command line the physical status of an ethernet port in Linux, or most people know it these days, Ubuntu -
perl pie: substitute or change text string in lots of files from the terminal
—
Small tutorial to teach you how to use perl pie, or actually perl -pi -e to substitute a string in lots of files at the same time. All from the command line of your Mac or Linux -
Use wget to download links in a file | A file with a list of links
—
Download a list of links in a file from a file using the terminal and wget -
Create a new database and user, and set privileges to the user | Using MySQL console-terminal
—
Create a new database and a new user on MySQL and set privileges and rights to the user over the newly created database - Using the terminal -
Safari open link in new tab
—
How to change default behavior in Safari web browser; to open link in new tab instead of new window -
Recover MySQL root password
—
How to recover MySQL root password using the terminal -
Apache: You don't have permission to access the requested directory
—
Solve Apache error: You don't have permission to access the requested directory -
Find the process ID (PID) of a given program, using ps or pidof
—
Find the process ID or PID of a given program on Linux, Mac OS X or another Unix based OS -
Pause or Stop iPhoto's PhotoStream sync with iCloud
—
How to stop or pause iPhoto PhotoStream sync with iCloud -
Use wget with a proxy server. How to configure
—
How to configure wget to use proxy with and with out password -
Mac OS X or Linux | get http headers of an url from the terminal using curl
—
Check http headers on Mac OS X or Linux terminal, using curl -
Test grammar on Mac | TextEdit grammar check
—
Enable grammar test on TextEdit app on Mac -
start, stop or restart Apache from the console terminal in Mac OS X
—
How to start, stop or restart Apache in Mac OS X from the console terminal -
Send a DELETE request using curl command
—
Send a DELETE request using curl | Linux or Mac -
Shut down (turn off) a Mac remotely via ssh
—
How to turn off (shut down Mac remotely via ssh using the terminal -
http post with command line curl
—
How to send http post with curl command line -
Solved: Installing pg gem in Arch Linux libpq-fe.h
—
Solved: checking for libpq-fe.h... no Can't find the 'libpq-fe.h header. While installing pg gem on Arch Linux -
Find the real path of a file or folder: Use realpath command
—
Find the real path of a file or folder using realpath command -
sass minified output
—
sass output minify, using command line with scss file -
Convert Open Office odt document to plain text file
—
Convert Open Office or Libre Office odt files to plain text txt files -
How to specify nano or vim as editor for crontab file
—
How to specify an editor to open crontab file -
Add html extension to uri using htaccess file or Nginx
—
Add .html extension to url in Nginx or Apache using .htaccess -
How to find the Xcode version
—
Find the version or Xcode you are running -
Copy terminal output to clipboard Mac OS X
—
Mac OSX: Copy terminal output to clipboard -
vsftpd error: 500 OOPS: vsftpd: refusing to run with writable root inside chroot ()
—
Solved: 500 OOPS: vsftpd: refusing to run with writable root inside chroot () -
Use wget to Recursively Download all Files of a Type, like jpg, mp3, pdf or others
—
Download all files of specific type recursively with wget | music, images, pdf, movies, executables, etc -
Find Files Modified Between Given Dates
—
Find a file modified between specific dates from the terminal in Mac OS X or Linux -
Slow Internet Speed in Bolivia, Compared with the Rest of the World
—
Test result, internet speed in Bolivia -
How to stop cronjob from sending email every time it is executed
—
Stop cronjob emailing you when the job is executed by the cron daemon -
File is not within the allowed path
—
Solve PHP proble with basedir, File is not within the allowed path -
Set pretty permalinks in Wordpress. Solve 404 error on Nginx
—
How to configure Nginx to work with pretty permalink in Wordpress, 404 error solved -
How to kill all instances of Google Chromium in Linux from command line
—
How to kill all child processes of chrome / chromium in Linux from command line -
Add a Directory to Path in Bash
—
How to add a directory or folder to path variable in bash -
Google Drive vs Dropbox
—
Why I prefer Dropbox over Google Drive -
Check if Given Program is Running and Start it if not
—
Bash shell script to check if a given program or command is running, and start it if not already running -
Check, Show your IP address in Linux
—
How to check or show your local IP address in Linux -
Set IP address on Linux using the ip command
—
How to set, view, and remove IP addresses on Linux using ip addr, and how to make them permanent with Netplan or NetworkManager -
Google's Gmail Tap
—
Gmail Tap, a new way to write in your smart phone -
Real Hot Summer
—
Last Summer was Really Hot -
How to Deal with Down Votes
—
Link to a Good Article About Down Votes, in Reddit or Hacker News -
Comparing new iPad screen
—
iPad screen under microscope link -
Secure DNS in Chroot
—
Install a Chrooted DNS server -
New iPad Review
—
New iPad review -
My Interview at Linux Notes from DarkDuck
—
My Interview at Linux Notes from DarkDuck -
Enable Web Sharing in Mountain Lion
—
How to enable Apache server in Mountain Lion -
Configure Slackware on a MacBook Pro
—
Good link that shows you how to get Slackware on a MacBook Pro configured -
Are your Answers to Security Questions Secure?
—
Be sure to make your answers to security questions, "secure" -
Link via and Sharing Links
—
Sharing links and using link via -
Choosing the Right iPad
—
Which iPad should I buy? Read what Marco recommends -
What is Property
—
Defining propertry: by Paul Graham -
Angry Birds for Chome
—
Angry Birds now available for Chome, Online or Offline | Enjoy playing it -
Finally working Email to Jekyll
—
Mail to Jekyll, finally got it working -
Hello World
—
Hello World test from email. This is still not working. -
Beagle Dog
—
The Beagle is one of my favorites breed of dogs. -
Posting on the go
—
After some months of having this feature on my old Drupal blog, I know have it again in this new blog powered by Jekyll. At least in this section, I do not... -
Free writing
—
In this Bits section I plan to have somehow a more free-writing as I'm now going to be able to even post by email to this section, I might be posting about day ... -
Linux App Store
—
Synaptic package manager, the Linux App Store -
Some Apps from the Mac App Store that Worth Checking Out
—
The Mac App Store is big, maybe not at big as the iOS one, but big anyway. Therefore it is always nice to find some one's list of favorites. If you are a... -
Using my blog as Twitter
—
using my blog as Twitter -
Jekyllmail.rb Post to Jekyll by email
—
Using Jekyllmail ruby program -
Cat Picture
—
A nice cat picture -
Why call 4G something that actually is not any better than 3G
—
The Marketing Behind 4G Label -
Resizing Images on Fly with Ruby
—
If you ever need to resize an image using Ruby, and you are familiar with Linux command from Imagegick. You may use [RMagic][1] [1]... -
Duck Picture
—
Just the picture of a nice duck -
Email to Blog Final Testing
—
Hope this time this works, this is one of my last tests, because I need to sleep. -
Using vim with crontab -e
—
If you want to use instead of with . You can use this command: export EDITOR=/usr/bin/vim And then invoque You should now be using instead of -
Still not Completely Working the Email to Blog implementation
—
I'm still trying to have this working. Actually it works, but not completely automatic, and the whole idea behind sending an email to your blog is that... -
Blogging from email
—
This is just a test of a nice feature I'm trying to enable in my blog. Something I miss from [Posterous][1]. And it is the ability to post from email. [1]... -
Sending picture to my blog from iPhone
—
Testing the way to send a picture from iPhone to my blog. Using Jekyll and [Masukomi][1]'s script. [1]: http://masukomi.org -
Great News About the New iPad Battery
—
The new iPad battery has doubled its battery [read more here][1]. [1]: http://parislemon.com/post/18974719971/the-new-ipad-battery -
Good Collection of Graphics Linux Tools
—
Here is a nice review of some good graphics tools or apps as Darckduck is calling them [Check them here][1] [1]... -
iPad not a Laptop Replacement
—
iPad or Android Tablets not a Laptop Replacement -
Deploying Cloudfront in Front of my Site
—
Deploying and experimenting with Cloudfront for complete site -
Steve Jobs was a Genius, Steve Ballmer is not
—
Steve Ballmer laughs at iPhone, he just can't be as smart as Steve Jobs was -
Embarrasing: Anonymous Got Access to a Private Conversation Between US and UK Police Departments
—
Anonymous intercepts a conversation between US and UK police -
Learning to Hack
—
Full Guide to Become a Hacker -
Rose Kennedy Quote
—
Rose Kennedy Quote -
Starting a new section in my site "bits"
—
Starting a new section in my site -
Understanding the bin, sbin, usr/bin , usr/sbin split
—
Understanding the bin, sbin, usr/bin , usr/sbin split