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/sh | |
cpanm \ | |
https://github.com/masiuchi/Mixin-Linewise/archive/refs/tags/0.110_01.tar.gz \ | |
https://github.com/masiuchi/Config-INI-Reader-Ordered/archive/refs/tags/0.022_01.tar.gz \ | |
Reply |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
# https://app.vagrantup.com/fedora/boxes/30-cloud-base | |
config.vm.box = 'fedora/30-cloud-base' | |
config.vm.provider "virtualbox" do |vb| | |
# 512 MB is too small to execute dnf command | |
vb.memory = "1024" | |
end |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>KeepAlive</key> | |
<true/> | |
<key>Label</key> | |
<string>com.masiuchi.docker.mysql55</string> | |
<key>ProgramArguments</key> | |
<array> |
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 | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
use Furl; | |
use JSON; | |
use Parallel::Prefork; | |
my $data_api_url = $ARGV[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
#!/bin/bash | |
TOTAL_REQUEST_COUNT=100 | |
PARALLEL_COUNT=5 | |
if [ $# -ne 3 ]; then | |
echo '[usage]: bash create_entries.sh [Data API URL] [USERNAME] [PASSWORD]' | |
exit 1 | |
fi |
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
require 'faraday' | |
require 'json' | |
require 'uri' | |
data_api_url = ARGV[0] | |
username = ARGV[1] | |
password = ARGV[2] | |
if data_api_url.nil? or data_api_url.empty? or username.nil? or username.empty? or password.nil? or password.empty? | |
puts '[usage]: ruby test.rb [data_api_base] [username] [password]' |
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/sh | |
find / -ls 2>/dev/null | perl -pe 'my @fields = split /\s+/, $_; my ($uid, $gid, $file) = @fields[4,5,10]; if (($uid =~ /^\d+$/ && $uid > 65535) || ($gid =~ /^\d+$/ && $gid > 65535)) { $_ = "$uid $gid $file\n" } else { $_ = "" }' |
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
version: '3' | |
services: | |
slapd: | |
image: osixia/openldap | |
environment: | |
LDAP_ORGANISATION: example | |
LDAP_DOMAIN: example.com | |
LDAP_ADMIN_PASSWORD: secret | |
ports: | |
- 389:389 |
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
version: '3' | |
services: | |
mysql: | |
image: mysql:5.7.16 | |
ports: | |
- '3306:3306' | |
environment: | |
- MYSQL_DATABASE=mt_test | |
- MYSQL_USER=mt |
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
version: '3' | |
services: | |
ftp: | |
image: mcreations/ftp | |
ports: | |
- '10021:21' | |
- '65000-65004:65000-65004' | |
environment: | |
- FTP_USER=ftpuser |
NewerOlder