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 | |
| github() { | |
| git remote get-url origin \ | |
| | perl -pe 'if (s|^git@||) { s|\.git$||; s|:|/|; s|^(.)|https://$1| }' \ | |
| | xargs open | |
| } | |
| travis() { | |
| git remote get-url origin \ |
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
| [Unit] | |
| Description=MT | |
| After=network.target | |
| [Service] | |
| Environment=PLACK_ENV=release | |
| ExecStart=/usr/bin/start_server --port=5000 --pid-file=/var/www/mt/mt.pid -- plackup -s Starlet max-workers=1 -e "enable 'SizeLimit', maxx_unshared_size_in_kb => 150 * 1024, check_every_n_requests => 2, log_when_limits_exceeded => 1", mt.psgi | |
| PIDFile=/var/www/mt/mt.pid | |
| Restart=always | |
| SyslogIdentifier=mt |
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
| version: '3' | |
| services: | |
| ftp: | |
| image: mcreations/ftp | |
| ports: | |
| - '10021:21' | |
| - '65000-65004:65000-65004' | |
| environment: | |
| - FTP_USER=ftpuser |
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
| version: '3' | |
| services: | |
| mysql: | |
| image: mysql:5.7.16 | |
| ports: | |
| - '3306:3306' | |
| environment: | |
| - MYSQL_DATABASE=mt_test | |
| - MYSQL_USER=mt |
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
| 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 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 | |
| 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 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 '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 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 | |
| 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 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 Data::Dumper; | |
| use Furl; | |
| use JSON; | |
| use Parallel::Prefork; | |
| my $data_api_url = $ARGV[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
| <?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> |