This file contains hidden or 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
my ( $name, @u ); | |
while ( @u = getpwent() ) { | |
if ( $u[0] =~ /^\w+\.\w+$/ && $u[6] eq '' ) { | |
( $name = $u[0] ) =~ s/(\w+)\.(\w+)/ucfirst($1).' '.ucfirst($2)/e; | |
system( '/usr/sbin/usermod', '-c', $name, $u[0] ); | |
} | |
} |
This file contains hidden or 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
my @HEX_CHARS = qw( 0 1 2 3 4 5 6 7 8 9 A B C D E F ); | |
my $hex = $HEX_CHARS[($value >> 4) & 0xF] . $HEX_CHARS[($value) & 0xF]; |
This file contains hidden or 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
{ | |
[ | |
( Blip.ar( XLine.kr( 233, 200, 6 ), 100, 2.5 ) ), | |
( Blip.ar( 466, Line.kr( 1, 100, 1 ), 2.5 ) ), | |
( Blip.ar( 932, Line.kr( 1, 100, 1 ), 2.5 ) ), | |
( Blip.ar( 1864, Line.kr( 1, 100, 1 ), 2.5 ) ) | |
] | |
}.play; |
This file contains hidden or 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/sh | |
# | |
# Use this as Jenkins Build "Execute shell" script | |
# | |
# Pedro Melo <[email protected]> | |
## Die on any errors | |
set -ex | |
export OUTPUT=$WORKSPACE/logs |
This file contains hidden or 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
Alternative Christmas Part Working Group | |
Request for Comments: TBC | |
Category: Entertainment | |
November 2011 | |
Alternative Christmas Party Escape Protocol | |
Status of this Memo |
This file contains hidden or 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
event_name |
This file contains hidden or 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 | |
# from | |
# http://bergamini.org/computers/creating-favicon.ico-icon-files-with-imagemagick-convert.html | |
convert source-WxW.png -resize 256x256 -transparent white favicon-256.png | |
convert favicon-256.png -resize 16x16 favicon-16.png | |
convert favicon-256.png -resize 32x32 favicon-32.png | |
convert favicon-256.png -resize 64x64 favicon-64.png | |
convert favicon-256.png -resize 128x128 favicon-128.png |
This file contains hidden or 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
require 'rubygems' | |
require 'less' | |
require 'rake' | |
SOURCE = "." | |
LESS = File.join( SOURCE, "path", "to", "less", "files" ) | |
CONFIG = { | |
'less' => File.join( LESS, "less" ), | |
'css' => File.join( LESS, "css" ), | |
'input' => "style.less", |
This file contains hidden or 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
# | |
# Save this in _rake/lessc.rake | |
# | |
require 'less' | |
LESS = File.join(SOURCE, "assets", "themes", "twitter") # set theme here | |
CONFIG['less'] = File.join(LESS, "less") | |
CONFIG['css'] = File.join(LESS, "css") | |
CONFIG['input'] = "style.less" |
This file contains hidden or 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 | |
set -e | |
./configure \ | |
--prefix=/usr/local \ | |
--conf-path=/usr/local/etc/nginx/nginx.conf \ | |
--error-log-path=/var/log/nginx/error.log \ | |
--pid-path=/var/run/nginx.pid \ | |
--lock-path=/var/run/nginx.lock \ |
OlderNewer