u
This commit is contained in:
		
							parent
							
								
									5cfba6aaa1
								
							
						
					
					
						commit
						5b373f11c3
					
				
							
								
								
									
										7
									
								
								adjust-mac-launchpad.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								adjust-mac-launchpad.sh
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,7 @@ | ||||
| defaults write com.apple.dock springboard-rows 8 | ||||
| 
 | ||||
| defaults write com.apple.dock springboard-columns 10 | ||||
| 
 | ||||
| defaults write com.apple.dock ResetLaunchPad -bool true | ||||
| 
 | ||||
| killall Dock | ||||
							
								
								
									
										18
									
								
								ssh-expect.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										18
									
								
								ssh-expect.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,18 @@ | ||||
| 
 | ||||
| ## Usage: expect this.sh [hostname] [port] [username] [password] | ||||
| 
 | ||||
| set timeout 30 | ||||
| spawn ssh -p [lindex $argv 1] [lindex $argv 2]@[lindex $argv 0] | ||||
| expect { | ||||
|   "(yes/no)?" | ||||
|   {send "yes\n";exp_continue} | ||||
|   "password:" | ||||
|   {send "[lindex $argv 3]\n"} | ||||
|   ":~]" | ||||
|   {send "su\n";exp_continue} | ||||
|   "Password:" | ||||
|   {send "[lindex $argv 3]\n"} | ||||
|   "密码:" | ||||
|   {send "[lindex $argv 3]\n"} | ||||
| } | ||||
| interact | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user