Start weechat if you haven't already:
$ weechatopen up browser and go to: https://irc.gitter.im/ retrieve your /PASS
In weecaht run (thanks to raine):
| #!/usr/bin/env phantomjs | |
| /* | |
| * Convert svg to png using PhantomJS | |
| * | |
| * Usage: png.js filename.svg filename.png | |
| * | |
| * Asses width and height attributes are present on the svg node | |
| * | |
| */ | |
| var system = require('system'); |
Start weechat if you haven't already:
$ weechatopen up browser and go to: https://irc.gitter.im/ retrieve your /PASS
In weecaht run (thanks to raine):
| #!/bin/bash | |
| # This script | |
| # - creates a user (named below) | |
| # - sets up a union (aufs) filesystem on top of the users immutable home | |
| # - creates a cleanup script (/usr/local/bin/cleanup.sh) that empties the aufs | |
| # layer on login/logout/boot | |
| # - replaces the lightdm config | |
| # - replaces rc.local to run the script | |
| # |
| # Doxyfile 1.8.7 | |
| # This file describes the settings to be used by the documentation system | |
| # doxygen (www.doxygen.org) for a project. | |
| # | |
| # All text after a double hash (##) is considered a comment and is placed in | |
| # front of the TAG it is preceding. | |
| # | |
| # All text after a single hash (#) is considered a comment and will be ignored. | |
| # The format is: |
| #!/bin/sh | |
| # Based on instructions found here: http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat#FFMpegInstallationonCentOSandRedHat-InstallX264 | |
| if [ "`/usr/bin/whoami`" != "root" ]; then | |
| echo "You need to execute this script as root." | |
| exit 1 | |
| fi | |
| cat > /etc/yum.repos.d/centos.repo<<EOF |
| /* ******************************************************************************************* | |
| * THE UPDATED VERSION IS AVAILABLE AT | |
| * https://github.com/LeCoupa/awesome-cheatsheets | |
| * ******************************************************************************************* */ | |
| // 0. Synopsis. | |
| // http://nodejs.org/api/synopsis.html |
| <?PHP | |
| /** | |
| * Spintax - A helper class to process Spintax strings. | |
| */ | |
| class Spintax | |
| { | |
| /** | |
| * Set seed to make the spinner predictable. | |
| */ |
| function retry(isDone, next) { | |
| var current_trial = 0, max_retry = 50, interval = 10, is_timeout = false; | |
| var id = window.setInterval( | |
| function() { | |
| if (isDone()) { | |
| window.clearInterval(id); | |
| next(is_timeout); | |
| } | |
| if (current_trial++ > max_retry) { | |
| window.clearInterval(id); |
If you're like me you have a dir like ~/Workspace/Github where all your git repos live. I often find myself making a change in a repo, getting side tracked and ending up in another repo, or off doing something else all together. After a while I end up with several repos with modifications. This script helps me pick up where I left off by checking the status of all my repos, instead of having to check each one individually.
Usage:
git-status [directory]This will run git status on each repo under the directory specified. If called with no directory provided it will default to the current directory.
| # Install linux update, followed by GCC and Make | |
| sudo yum -y update | |
| sudo yum install -y gcc make | |
| # Install Nginx and PHP-FPM | |
| sudo yum install -y nginx php-fpm | |
| # Install PHP extensions | |
| sudo yum install -y php-devel php-mysql php-pdo \ | |
| php-pear php-mbstring php-cli php-odbc \ |