Skip to content

Instantly share code, notes, and snippets.

View mix3's full-sized avatar

mix3@サタデーナイトフィーバー mix3

View GitHub Profile
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Map;
import java.util.Map.Entry;
import com.google.appengine.repackaged.com.google.common.base.StringUtil;
#!/bin/bash -x
# Description:L2TP/IPsec for CentOS7 64bit
# 2015/05/09 @mix3
(
## setting
cat << _SECRETS_ > /tmp/SECRETS_TMP.txt
#==============================================
# username auth_server password auth_ipaddress
requires "SQL::Translator::Producer::PlantUML";
requires "DBD::mysql";
#!/bin/bash
echo $$
while :
do
sleep 1
done
@mix3
mix3 / .beacon.sh
Last active December 31, 2015 10:29
#!/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
---
- 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
#!/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;
#!/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;
@mix3
mix3 / fixes-5.3.sh
Last active December 25, 2015 02:48 — forked from nojimage/fixes-5.3.sh
#!/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`")
package Sample;
use strict;
use warnings;
use utf8;
sub type_a { return "a" }
sub type_b { return "b" }