Skip to content

Instantly share code, notes, and snippets.

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

Block or report user

Report or block mix3

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View L2TP_IPSec_vpn_setup_for_centos7.sh
#!/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
View cpanfile
requires "SQL::Translator::Producer::PlantUML";
requires "DBD::mysql";
View dummy_daemon.sh
#!/bin/bash
echo $$
while :
do
sleep 1
done
View .beacon.sh
#!/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
View all_install_and_add_service.yml
---
- 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
View cas_test.pl
#!/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;
View no_cas.pl
#!/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;
View 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`")
View t16.pl
package Sample;
use strict;
use warnings;
use utf8;
sub type_a { return "a" }
sub type_b { return "b" }
View eg.pl
use JQueryPresentationHelper;
my $title = title q{$.presentation};
top qq{
# $title
Takeshi Takatsudo (<mailto:takazudo\@gmail.com>)
};
You can’t perform that action at this time.