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
test |
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 | |
USER="hogehoge" | |
PORT="20022" | |
echo "ROOT PASS -----"; | |
passwd | |
echo "$USER PASS -----"; | |
useradd $USER | |
passwd $USER |
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 | |
## base config | |
MYSQL_BIN=mysql | |
MYSQL_USER=user | |
MYSQL_PASSWD=password | |
MYSQL_HOST=localhost | |
## dbname | |
if [ "$1" = "" ]; then | |
echo "no database name" |
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
(declare -i i=0; while ((3600-i++)); do clear; date +"%I:%M:%S"; sleep 1; done) |
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
(start=1; end=10; while [[ $start -le $end ]]; do clear; echo $(($end-$start)); sleep 1; start=$(($start+1)); done) |
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
rubyuser01:~/workspace $ ruby -v | |
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux] |
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
user01:~/workspace/demo $ rails generate model user | |
Running via Spring preloader in process 21331 | |
invoke active_record | |
create db/migrate/20160830073718_create_users.rb | |
create app/models/user.rb | |
user01:~/workspace/demo $ |
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
package main | |
import "fmt" | |
func main() { | |
fmt.Println("Hello World!") | |
} |
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
$ sudo yum -y install perl-DateTime perl-Sys-Syslog perl-LWP-Protocol-https perl-Digest-SHA |
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
public (default, active) | |
interfaces: eth0 | |
sources: | |
services: dhcpv6-client ssh | |
ports: | |
masquerade: no | |
forward-ports: | |
icmp-blocks: | |
rich rules: |
OlderNewer