This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
# Sane defaults | |
require 5.004; | |
use strict 'vars'; | |
use warnings; | |
use diagnostics; | |
use CGI::Carp qw(fatalsToBrowser); | |
# Stadard libaries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
# Sane defaults | |
require 5.004; | |
use strict 'vars'; | |
use warnings; | |
use diagnostics; | |
use CGI::Carp qw(fatalsToBrowser); | |
# Stadard libaries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
# Sane defaults | |
use strict; | |
use warnings; | |
use feature qw/say/; | |
use Data::Dumper; | |
my @data = <DATA>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim /etc/yum.repos.d/centos.repo | |
# | |
# Adding the following contents, note the ‘5’ has to be hardcoded to either 5 or 6 depending on your RHEL version. | |
# | |
[centos] | |
name=CentOS $releasever - $basearch | |
baseurl=http://ftp.heanet.ie/pub/centos/5/os/$basearch/ | |
enabled=1 | |
gpgcheck=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Namespace declarations | |
var wingaru = wingaru || {}; | |
var wingaru.auth = wingaru.auth || {}; | |
var wingaru.games = wingaru.games || {}; | |
var wingaru.activites = wingaru.acivities || {}; | |
var wingaru.videos = wingaru.videos || {}; | |
// | |
// Generic Helper | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Net; | |
using System.Text; // for class Encoding | |
namespace ClassCover.Api.Example | |
{ | |
public class API | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
ffmpeg -i SCRUM-2016-06-08.mov -vf scale=1024x768,setdar=16:9 -c:v libx264 -preset slow -profile:v main -crf 20 output-1024.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Take a snopshot of code and sym link it to a published apached location | |
# Created By: Javier Woodhouse | |
user=$1 | |
symbolic_path=$2 | |
source=$3 | |
date_part=`date +"%Y%m%d-%I%M%S"` | |
destination="$user.$date_part" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Take a snopshot of code and sym link it to a published apached location | |
# Created By: Javier Woodhouse | |
user=$1 | |
symbolic_path=$2 | |
source=$3 | |
date_part=`date +"%Y%m%d-%I%M%S"` | |
destination="$user.$date_part" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
printf "\nMemory Status\n" | |
ps aux | grep '^apache' | awk '{print $1, $2, $11, $6/1024 " MB";}' | |
printf "\nSum: " | |
ps aux | grep '^apache' | awk '{sum+= $6;} END {print sum/1024 " MB";}' | |
printf "Average: " | |
ps aux | grep '^apache' | awk '{print $6/1024;}' | awk '{avg += ($1 - avg) / NR;} END {print avg " MB";}' |