Skip to content

Instantly share code, notes, and snippets.

Compressed File Size Sum Script

By Jesús Mena.

This script sums the size of all compressed files in a directory. It accepts three mutually exclusive and optional arguments, -K, -M and -G. This arguments are used to get the result in kilobytes, megabytes and gigabytes respectively. If no arguments are given the result is shown in bytes.

File Size Sum Script

By Jesús Mena.

This script sums the size of all files in a directory (the current directory by default). It accepts three mutually exclusive and optional arguments, -K, -M and -G. This arguments are used to get the result in kilobytes, megabytes and gigabytes respectively. If no arguments are given the result is shown in bytes.

@susomena
susomena / README.md
Last active August 29, 2015 14:16
Script to wake up WiFi

Network wakeup script

By Jesús Mena.

This simple script wakes up WiFi in a Linux system which is power-saving, like Raspberry Pi (Raspberry Pi turns off WiFi adapters to save energy when WiFi signal is weak).

If you want this script to execute periodically add it to your crontab.

Twitter autoresponder bot

By Daniel15 (dan.cx) This is a very simple Twitter autoresponder bot. It requires PECL OAuth extension to be installed (run "pecl install oauth", or if on Windows, grab php-oauth.dll. If using cPanel you can install it via WHM). The authentication is designed for command-line usage, it won't work too well via a web browser. You'll have to sign up for an application on Twitter's site to get the consumer key and secret.

Could be modified to be more advanced (match regular expressions to answer questions, etc.)

Questions? See my blog post - http://dan.cx/blog/2011/06/twitter-autoreply-bot-dbznappa

Modified 2013-06-13 - Twitter API 1.0 discontinued, modified to use Twitter API 1.1