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
package main | |
import ( | |
"encoding/json" | |
"io/ioutil" | |
"log" | |
"os" | |
"path" | |
"runtime" | |
) |
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
#preview body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; } | |
#preview body > *:first-child { |
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 | |
echo $$ | |
while : | |
do | |
sleep 1 | |
done |
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 | |
if [ "" == "$(ps aux | grep ScreenSaverEngine | grep -v grep)" ]; then | |
/usr/local/opt/mysql/bin/mysql -u root beacon_receiver -e "insert into receive values (now());" | |
fi |
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
--- | |
- hosts: all | |
user: vagrant | |
sudo: yes | |
vars: | |
version: 2.4.6 | |
src: /tmp | |
tasks: | |
- include: httpd_and_fcgi_with_mod_fastcgi_install.yml version=2.4.6 src=/tmp | |
- include: mysql_package_install.yml version=5.1.58-1 |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Test::More; | |
use Test::TCP qw/empty_port wait_port/; | |
use File::Which qw/which/; | |
use Proc::Guard; | |
use Parallel::ForkManager; | |
use Cache::Memcached::Fast; |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Test::TCP qw/empty_port wait_port/; | |
use File::Which qw/which/; | |
use Proc::Guard; | |
use Parallel::ForkManager; | |
use Storable; |
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 | |
# Fix the 64bit c++ patch for PHP5.3 | |
# https://bugs.php.net/bug.php?id=48795 | |
# | |
# install to {path_to_php-build}/share/php-build/before-install.d/ | |
function version { echo "$@" | awk -F. '{ printf("%d.%d.%d\n", $1,$2,$3); }'; } | |
phpver=$(basename "`pwd`") |
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
package Sample; | |
use strict; | |
use warnings; | |
use utf8; | |
sub type_a { return "a" } | |
sub type_b { return "b" } |
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
use JQueryPresentationHelper; | |
my $title = title "JQueryPresentation"; | |
header q{<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js?lang=perl&skin=sunburst"></script>}; | |
hook 'pretty' => sub { $_[0] =~ s/<pre>/<pre class="prettyprint" style="font-size:24px;">/g; $_[0] }; | |
plain q{ | |
## コードハイライトするよ!!! |